Roblox Tycoon Scripting Tutorial (Part 2)

Поділитися
Вставка
  • Опубліковано 1 жов 2024
  • Part 2 where we will learn how to set up the buttons and position items on a player's plot. This series of videos will show you how to make a tycoon on Roblox in 2024, we will be going through everything you need to script in order to make a basic tycoon. More videos coming soon.
    Project files available to Premium channel members: www.youtube.co...
    Video for members on how to download project file: • How To Access Project ...
    Discord: / discord
    Twitter: / alvinblox
    Roblox: www.roblox.com...

КОМЕНТАРІ • 374

  • @AlvinBlox
    @AlvinBlox  8 місяців тому +15

    Become a channel member to get the project file and source code: ua-cam.com/users/alvinbloxjoin / Part 3: ua-cam.com/video/C_k6E_49ldc/v-deo.html

    • @Mr.laurinoss
      @Mr.laurinoss 7 місяців тому +1

      Please give Freee please MAKE ITTTTTT why you want 5$????????????

    • @ns33333
      @ns33333 5 місяців тому +1

      He literally explained it in these videos, why do you need it automatically when you can just make it with his tutorials

  • @MiguelVidal-mh4ie
    @MiguelVidal-mh4ie 8 місяців тому +95

    I'm a 14 year old Brazilian, my dream is to own a great Roblox game, to make it happen I use your videos, the only problem is that I don't have many people to help me with the project, but still, thank you Alvin ❤️ 👍

    • @BubBBleBoy
      @BubBBleBoy 8 місяців тому +13

      Hope your dream comes true 🍀

    • @MiguelVidal-mh4ie
      @MiguelVidal-mh4ie 8 місяців тому +12

      @@BubBBleBoy Thanks man, may the same happen to you, one day you'll be playing my Roblox game 🫡👊🏻

    • @amacszuzayl2322
      @amacszuzayl2322 8 місяців тому +1

      ​@@MiguelVidal-mh4ie.If you want, we can be a team together. We can make games with our experiences.

    • @AlvinBlox
      @AlvinBlox  8 місяців тому +24

      Love to hear this! All the best my friend

    • @ELLA_NOIS
      @ELLA_NOIS 8 місяців тому +1

      I hope your dreams come true Miguel

  • @AsquatranananBananananan
    @AsquatranananBananananan 7 місяців тому +41

    I thought I was a fast typer, now I realised something…

  • @thegamingdeath123
    @thegamingdeath123 7 місяців тому +16

    when you are coding this make sure its the same cuz i was stuck on the button going to the plot and i put cfame not cframe in one of the spots

  • @minehutminehutcreations7938
    @minehutminehutcreations7938 8 місяців тому +10

    can you make it so the buttons gradulaey appear like you purchase the first then second and maybe make it so the items slowly fade in :) also do you release the source code?

    • @AlvinBlox
      @AlvinBlox  8 місяців тому +2

      Source code is available to Premium Channel Members via my Discord server. You will need to connect your UA-cam account with Discord in order to view the project-files channel.

    • @nevertrustfin
      @nevertrustfin 3 місяці тому

      @randomguy69697 paying so he can get money and u can use it

    • @mahirahmed4992
      @mahirahmed4992 Місяць тому

      @randomguy69697 it is what it is. Deal with it.

  • @berndonclin7437
    @berndonclin7437 8 місяців тому +11

    Hey Alvin, keep up the good work, your videos are the reason I´m interested in scriptinh

  • @NotPom16
    @NotPom16 8 місяців тому +4

    Can someone please share their working code I have been trying to see what I did wrong for hours but I cant find anything.

  • @Yaro453
    @Yaro453 2 місяці тому +6

    am i the only oen where the buttons don't generate on plots??

    • @TheSphere_YT
      @TheSphere_YT Місяць тому

      Ur not the only one also me

    • @ChristOnTop-t4z
      @ChristOnTop-t4z Місяць тому

      check if the buttons and items folder has smth in it it should have the button and poster

    • @Ins3rtt_
      @Ins3rtt_ 16 днів тому

      yeah ☠️

    • @AxDel
      @AxDel 15 днів тому

      try adding: TemplateButtons.Parent = tycoon

  • @Slowz3y
    @Slowz3y 3 місяці тому +5

    hey alivn so when i joined i didnt see the button on my plot is there somthing i did wrong?

    • @supersamuel1413
      @supersamuel1413 3 місяці тому +1

      probably not anchored or somthing is destryoying it so figure out whats destroying it

    • @GraysonLovesHisMama
      @GraysonLovesHisMama 2 місяці тому

      that happened to me for me it was i mixed the model code with the part code

  • @thegamingdeath123
    @thegamingdeath123 7 місяців тому +4

    something is not working at the end of the video and i noticed that you put local itemcframe but did not put = ... i wonder if that is what making it not work but it works for you

  • @yee969
    @yee969 4 місяці тому +3

    I have a squiggly under "itemToUnlockId" in Line 40 saying 'Unknown global 'itemToUnlockId' 😔

    • @69Mongo69
      @69Mongo69 Місяць тому

      had the same thing u just have to add and end at the end

    • @VideoCatGames
      @VideoCatGames 24 дні тому

      I am following this now. For me I had to change it from "itemToUnlockId" to "itemToUnlock" and it fixed it.

  • @Rio-gg78
    @Rio-gg78 8 місяців тому +5

    Thx for the help alvian also could you make a series on how to make a story game i know you have done this topic before but can you do a video on how to make a modern story game with all of the cutsence Boss Fights badges and Vote to get an ending?

  • @gamerboy2000-wn2lz
    @gamerboy2000-wn2lz 5 місяців тому +4

    @AlvinBlox, can you help me? Even though I touch the part, the poster is not appearing. PLEASE HELP!!!

  • @nthnwill
    @nthnwill 5 місяців тому +3

    Isn't there a more organized way to identify an purchable item? because using numbers(ID) can make you easily lose the item in the middle of the tycoon, and if to change one item you will have to look around the ID of the item all across the tycoon.
    I wonder if this will work well with strings instead of numbers...

  • @Sergeant_Squid
    @Sergeant_Squid 5 місяців тому +3

    I noticed near the end when you step on the button and the item multiplies, they say to do a certain code to delete the button after you step on it that did not work for me. Instead of doing that, insert a script into the button with this next set of code and it will delete on touch; function touch()
    script.Parent:remove()
    end
    script.Parent.Touched:connect(touch)

  • @fungaming1100
    @fungaming1100 2 місяці тому +2

    my button isnt there...

  • @ActuallyRealGalaxy
    @ActuallyRealGalaxy 8 місяців тому +4

    Alvin can u pin me
    i like ur vids

  • @NikolasH123
    @NikolasH123 8 місяців тому +6

    👋As a roblox developer i dont agree with your way of asigning models to the buttons, it would be really tedios to every time you add a model scroll down to the attributes, click add atribute, set the type to number (allthough as you pointed out it can be a string) and remember witch id it is supposed to be and do the same for the coresponding button,
    i would just add an... i think its called object value or instance value into the button and set it to the instance model it is supposed to be connected to.. also it would be much more efficient cuz the code does not have to check everything, it can just get the instance from the value
    that said your solution is valid and coded good just not really efficient... i hope you see this actually, i want to know why you didnt use the instance values, did you just not think of it?

    • @frankie4073
      @frankie4073 8 місяців тому

      I work with object values all the time, it definitely saves a lot of time (and loc), I've done the old way as well and its an absolute horror to work with now

    • @NikolasH123
      @NikolasH123 8 місяців тому +1

      yeah uhh.. so alvin, if you read this and you dont have more like pre-made episodes, you can change it if you want, feel like it would be a better example of tycoon game code that way

    • @NikolasH123
      @NikolasH123 8 місяців тому

      @@frankie4073 yeah they can be usefull, its a shame we cant make object attributes

    • @human721
      @human721 8 місяців тому

      I agree. I really dislike the style in which he makes these games. A lot of inefficient scripts and overcomplicated things for no reason..

    • @frankie4073
      @frankie4073 8 місяців тому

      @@NikolasH123 object attributes could be useless though, object values are there to exist to get object in the game via scripts more easily and without worries of filtering enabled.
      For example, I use dynamic object values from time to time, that would get useless sometimes, means more workarounds for me

  • @cw4x
    @cw4x 2 місяці тому +2

    Hello, im a 11 yo brazilian, i really want to make a military like tycoon, im sure these tutorials will help me a lot! Thx man

  • @areuPlayer
    @areuPlayer 8 місяців тому +4

    It would be nice if you could teach us the "Proximity prompt" alternative. Thanks! Love your vids!!

    • @thejackalope6093
      @thejackalope6093 2 місяці тому +1

      Just use a proximity prompt activated event instead of a touched event.

  • @tredamone443
    @tredamone443 2 місяці тому +3

    had a sigh of relief when he used a billboard gui instead of a viewer humanoid

  • @ActuallyRealGalaxy
    @ActuallyRealGalaxy 8 місяців тому +5

    hi

  • @Just_Cat_ae
    @Just_Cat_ae 8 місяців тому +2

    I put the item as a conveyor and near the end of the video I was confused why the conveyor wasn't appearing so I checked the output multiple times and it kept saying that I forgot to put the id thing and after 10 minutes I was looking at id part of the video and I looked at the id name I put and I accidentally put "IdOfItemToUnlocked" LOL

  • @Zenitsuandbfbfanxd
    @Zenitsuandbfbfanxd 3 місяці тому +2

    nvm my other comment it works but sometimes it shows my model on the items folder but it dosent show the button even though the button loads, if i stand on the button it works but my model gets created at the bottom of the map close to the spawnpoint. sometimes its vice-versaand even if i stand on the button then nothing happends (pls excuse my grammar)

  • @gospodinpalacinka4269
    @gospodinpalacinka4269 6 місяців тому +3

    Would this script work for more droppers/models/parts? To include them would I need to write more code on my own or can I use the one provided in the video? Thanks for an answer in advance

    • @BlackFoxPlayz
      @BlackFoxPlayz 5 місяців тому +1

      works for more. As long as they have all of the attributes you don't need to write any more code

  • @MrEelement
    @MrEelement 4 місяці тому +2

    Hey, great video, but i am having trouble with the BaseParts not spawning at the new plot and only on the original Template plot

    • @Extyz________
      @Extyz________ 3 місяці тому

      Guys I need help when u said that the starter pack would spawn on ur plot it didn't spawn and I don't know how to get a plot or make it spawn so pls someone respond on this

  • @ARandomPersonsChannel911
    @ARandomPersonsChannel911 Місяць тому +1

    Bro, I need help ASAP
    For some reason when I do Button:Destroy()
    It just completely deletes the buttons folder, what am I doing wrong??????

    • @EKEKEKEKEKEKEKEKEKEKEKEKEKEKEK
      @EKEKEKEKEKEKEKEKEKEKEKEKEKEKEK 29 днів тому

      Either your Buttons folder is labeled as “Button,” or you accidentally typed Buttons:Destroy() in your code.
      Although I have no idea what I’m talking about, I code in C and want to learn Lua so I could get some passive income while I study for engineering.

    • @zionicus
      @zionicus 3 дні тому

      @@EKEKEKEKEKEKEKEKEKEKEKEKEKEKEK in the exact same boat as me lol

  • @janeshereza9236
    @janeshereza9236 6 місяців тому +3

    thx you dude! ive been wanting to make one for like.. years!

  • @2_ukk
    @2_ukk 4 місяці тому +2

    it doesnt work when i step on the button idk why

    • @Fonzi2
      @Fonzi2 2 місяці тому

      same

  • @Stukafn
    @Stukafn 4 місяці тому +2

    the model spawns right where the button was how do i fix it? great tut btw!

    • @ydapepper2116
      @ydapepper2116 2 місяці тому +1

      make sure in worldCFrameOfNewPlot it says relativeItemCFram not just relativeCFrame had the same issue

  • @yasboy8268
    @yasboy8268 8 місяців тому +3

    this took me so long😅

  • @MegaBlox_YT
    @MegaBlox_YT 8 місяців тому +3

    WHAT DOES Touched is not a valid member of Model "Buttons.Button" MEAN??

    • @the_big_cheez
      @the_big_cheez 8 місяців тому +1

      It means that button is likely a model and not a part

    • @the_big_cheez
      @the_big_cheez 8 місяців тому +1

      make sure "CanTouch" is true in properties

    • @a1bot_robotroid
      @a1bot_robotroid Місяць тому

      @@the_big_cheez I don't see that property, you got any idea what I can do?

    • @the_big_cheez
      @the_big_cheez Місяць тому

      @@a1bot_robotroid Its a model not a part

    • @a1bot_robotroid
      @a1bot_robotroid Місяць тому +1

      @@the_big_cheez i fixed it, thx anyway

  • @byhelvete4757
    @byhelvete4757 8 місяців тому +2

    Hey, for some reason the things from the TemplatePlot are not spawning to the plots given to the players. I have seen quite many other people in the comments having the same issue.

    • @BobBloxer
      @BobBloxer 8 місяців тому

      Use the output to check if theres an obvious issue its seeing

  • @Turtle_games15
    @Turtle_games15 2 місяці тому +1

    Hi guys! I was just wondering what to do if my button is a model. The Touched thing doesn’t work!😅 it would make my day if anyone’s could help!

    • @bgducoin
      @bgducoin 2 місяці тому

      use a proximityPrompt

    • @Turtle_games15
      @Turtle_games15 2 місяці тому

      @@bgducoin so button.ProximityPromt:Connect(function(hit) ?

    • @Fonzi2
      @Fonzi2 2 місяці тому

      @@Turtle_games15 did u figure it out?

    • @Turtle_games15
      @Turtle_games15 2 місяці тому

      @@Fonzi2no 😅

  • @PixelPaws104
    @PixelPaws104 7 місяців тому +1

    Hi Alvin great tutorial, just need help it says TemplatePlot not apart of workspace how to i fix it

  • @RealDomejnik
    @RealDomejnik 6 місяців тому +1

    Guys can you help me, my model isnt spawning in good place, how to fix this?

  • @magdalenapawlowska3117
    @magdalenapawlowska3117 7 місяців тому +1

    DONT WORKED 😭😭😭

  • @KingEgg-q7u
    @KingEgg-q7u 2 місяці тому +1

    This is 100% me ):

  • @voidplayzyt2097
    @voidplayzyt2097 5 місяців тому +1

    Just so yall know, when i wrote the code, I had bugs. Few capitalization errors and using . Instead of : (used to java programs). Chat gpt can help identify and explain the problems if needed

  • @IanCokhv
    @IanCokhv 5 місяців тому +1

    can you help me it says Touched is not a valid member of Model "Buttons.ButtonModel" - Server - PlotHandler:35

  • @KanyeNorth
    @KanyeNorth 6 днів тому

    Can someone reply to me with the scripts I keep messing it up and to lazy to keep on checking them

  • @da_boss_man_joofu5
    @da_boss_man_joofu5 4 місяці тому +1

    im so lost 30:46

  • @PopsicleGamesRoblox
    @PopsicleGamesRoblox Місяць тому

    Im at 18:06 and i got the message "parent is not a valid member of Folded "Buttons""
    How do i fix this?

  • @Nose_guy
    @Nose_guy 2 місяці тому

    shoutout for the worldCFramOfNewPlot and for the itemToUnlockId / item to unlock kid

  • @MrMuffinIsCool
    @MrMuffinIsCool 8 місяців тому +2

    What’s that plugin that’s displaying the parts size when you scale it

  • @Zappylol11
    @Zappylol11 Місяць тому

    When the button is supposed to go to your plot, it’s not going to my plot, can someone help?

  • @BENDYLOLdrea
    @BENDYLOLdrea 2 місяці тому +1

    i. give. up. EVERYTIME I TRY TO DO THE SAME THING AS 5:08 THE TEXT IS CUT IN HALF

    • @sooup6909
      @sooup6909 2 місяці тому +1

      Size: {0.95, 0},{1, 0}
      Position: {0.5, 0},{0, 0}
      AnchorPoint: 0.5, 0
      in the data section of TextLabel's property, correct ?

  • @ceres-1-1
    @ceres-1-1 2 місяці тому

    i have an error it says CFrame is not a valid member of Folder "Buttons" and i did everything right

  • @johnhenning898
    @johnhenning898 Місяць тому +1

    I really like this series because when i make a mistake i'm able to go back and fix it very easily

  • @joe8606
    @joe8606 Місяць тому

    Alvin can you please help me bc when I do itemClone.Parent = ItemFolder the code gives me a orange under line plsss help me😢 bc I worked so hard :(

  • @masterforce9967
    @masterforce9967 2 місяці тому

    When i noted the video time in the code the coding assistant suggested "lol" IT WAS LATHING AT ME!

  • @Cyber5070
    @Cyber5070 5 місяців тому +1

    Alvin if u have any time i rly need help as i did smth wrong but i cant find it as i got 2 problems, first the poster spawns in the button and second when the button dissapears when i step on it it stills spawns 4 posters and not one

  • @TylerDaMonkey
    @TylerDaMonkey 2 місяці тому +1

    what if you're part is a mesh?! 🗿

  • @L3sty-yg4ux
    @L3sty-yg4ux 8 місяців тому +2

    WHERE IS SCRIPT

  • @kippoz
    @kippoz Місяць тому

    why is my button not cloning onto my other plots? all the script is identical

  • @SPEEDYPRIME01
    @SPEEDYPRIME01 2 місяці тому

    Hi alvin i need help my item is spawning in the middle of the button. Pls help🙏

  • @Whyd069
    @Whyd069 9 днів тому

    ALL MY SCRIPTS IN PLOT HANDLER GOT DELETED

  • @IcosahedronDodecahedralDual
    @IcosahedronDodecahedralDual 2 місяці тому

    No idea why but the button didn’t work. Can you please help?
    Edit: I got it working, it was two typos.

  • @LiviaStr-le7dh
    @LiviaStr-le7dh 13 днів тому

    You said that sometimes the button does not come up. Can you tell me why? My button is not working. I'm not getting the button on the plot.

  • @urachimp
    @urachimp 12 днів тому

    When a plot gets assigned to me, all the template plot does is just goes into the folder where my plot is, and it doesn't make a copy. Can someone give me a solution?

  • @Supercaty468
    @Supercaty468 Місяць тому

    Idk why but im 10 and i try to make roblox games learn scripts idk why

  • @ChristOnTop-t4z
    @ChristOnTop-t4z Місяць тому

    For yall who are stuck on the first button. Check if there is a button(part) in the buttons folder.

  • @butterboi.G.I.F
    @butterboi.G.I.F Місяць тому

    My button doesn’t work and I have spent hours trying to spawn my model - can anyone help me

  • @butterboi.G.I.F
    @butterboi.G.I.F Місяць тому

    I’m having problems with the CFrame - it doesn’t know what one is

  • @ryanhess7988
    @ryanhess7988 3 місяці тому

    im confused? itemToUnlockId is underlined.. What do i do

  • @ÁngelTorresbonilla
    @ÁngelTorresbonilla Місяць тому

    Guys how to I fix that the model spawns very far from the button? 😢

  • @Jxdemxn
    @Jxdemxn Місяць тому

    It says in output screen the you forgot to add an idofitemtounlock attribute even though i have. what do i do ?

  • @mrelijeli
    @mrelijeli 3 місяці тому

    When i tried running the script, i got an error that says “Touched is not a valid member of model “Buttons.Button” anyone know how to fix this?

    • @viirgooo
      @viirgooo 3 місяці тому

      I had the same error, you just need to map it to a part instead of the whole Model of the button. Ex.:
      Button.ClickablePart.Touched etc.
      Btw, I noticed you used "Buttons" but it should be "Button" singular since you're already going through all the "TemplateButtons" in the for loop.
      Hope this helps! :D

  • @teos-ow4cl
    @teos-ow4cl 6 місяців тому

    10:42:01.739 name is not a valid member of Folder "Folder" - Server - PH:18

  • @teos-ow4cl
    @teos-ow4cl 6 місяців тому

    10:42:01.739 name is not a valid member of Folder "Folder" - Server - PH:18

  • @johnw3162
    @johnw3162 Місяць тому

    I did the code exactly how you did it but the model doesn't clone inside of the Items folder, only the folder.

  • @BananaMonkeyy_VR
    @BananaMonkeyy_VR 2 місяці тому

    when i join the game it doesnt duplicate the stuff

  • @ooaktree
    @ooaktree 8 місяців тому +2

    you know what would be great, a incremental tutorial (games like grass cutting incremental, generator incremental, etc)

    • @ooaktree
      @ooaktree 8 місяців тому

      im starting trying to learn coding on roblox but i hit a roadblock where i don't know how to make a textlabel change based on the varabile of how many times a part is clicked (my first game is gonna be very simple)

    • @RandomGuyOnDaFreakingNet
      @RandomGuyOnDaFreakingNet 7 місяців тому

      @@ooaktree its really not that hard, just get a ClickDetector setup on the button you wanna click, add a script to your button, then just make a variable like 'local clicks' and then write script.Parent.ClickDetector.MouseButton:Connect(function)
      clicks = clicks + 1(or your desired amount)
      end

    • @AaronLyNxAI
      @AaronLyNxAI 6 місяців тому

      @@ooaktree use linear copilot or similar resources, also for updating a text label for cash I currently use this:
      -- LocalScript under the GUI button
      local ReplicatedStorage = game:GetService("ReplicatedStorage")
      local UpdateCashEvent = ReplicatedStorage:WaitForChild("UpdateCashEvent")
      script.Parent.MouseButton1Click:Connect(function()
      -- Assume the amount is predetermined or maybe calculated based on some logic
      local amountToAdd = 1
      UpdateCashEvent:FireServer(amountToAdd)
      end)
      on the client side, and this:
      -- Script in ServerScriptService
      local ReplicatedStorage = game:GetService("ReplicatedStorage")
      local UpdateCashEvent = ReplicatedStorage:WaitForChild("UpdateCashEvent")
      local function updatePlayerCash(player, amount)
      -- Safeguard to ensure leaderstats and Cash exists
      local leaderstats = player:FindFirstChild("leaderstats")
      if not leaderstats then return end
      local cash = leaderstats:FindFirstChild("Cash")
      if not cash then return end
      -- Update the player's cash
      cash.Value = cash.Value + amount
      end
      UpdateCashEvent.OnServerEvent:Connect(updatePlayerCash)
      on the server side. Keep in mind, this uses another script for a button in the GUI the player can click to earn money. This code may be helpful for you, so long as you modify it some to better suit your needs

  • @GunasekaranRamasamy
    @GunasekaranRamasamy 3 місяці тому

    ALVINBLOX ARE GOAT!!!
    👇WHO AGREES!!!

  • @SimonDeMonte0
    @SimonDeMonte0 8 місяців тому +1

    The clone to other plot doesnt work for me 18:05

    • @angrygamez7750
      @angrygamez7750 6 місяців тому

      same here, everything was going smooth until this point. i need help as well :/

  • @EKEKEKEKEKEKEKEKEKEKEKEKEKEKEK
    @EKEKEKEKEKEKEKEKEKEKEKEKEKEKEK 29 днів тому

    Lmao my tree is spawning, but not in the correct position. It’s so over for me.

  • @YoussefNEggdog
    @YoussefNEggdog 7 місяців тому +1

    fixed it but the other parts of my model arent coming to the place theyre supposed to be in and theyre not in the folder

  • @luxmilYT
    @luxmilYT 2 місяці тому

    5:41 I'm saving this for later.

  • @Purpledude1987
    @Purpledude1987 Місяць тому

    Can someone pls send this script in the comments because it doesnt work for me ? pls

  • @akelleher3733
    @akelleher3733 Місяць тому

    some of the things aren't their like the adornee for the button or the thing to make the text say something :/

  • @itsme_Ali2102
    @itsme_Ali2102 23 дні тому

    @Alvinblox please help how to make a tycoon 1 i completed and it worked and i followed all of you steps from name of item to mouse clicks basically a copy of what you did, and tycoon part to the script wont work! it assigns me a Plot but wont copy over the button and item to the plot im assigned! ive been retrying this for 2 months now evey other week i try the whole thing again and again!

    • @itsme_Ali2102
      @itsme_Ali2102 23 дні тому

      12 year old, from pakistan! 13 in a 6 months

  • @Mr_TommyGun_
    @Mr_TommyGun_ 4 місяці тому +1

    If all plots are to have the same items, would the IDs mess that up? So take the poster for example, which has been given an ID of 1, if I were to copy/paste that poster and its button to all plots would it matter that they have the same ID on different plots or would it not matter because it's a different plot? I don't want to end up buying a poster on someone else's plot if you get what I mean. Sorry if I didn't explain very well.

    • @AlvinBlox
      @AlvinBlox  4 місяці тому

      no it wouldn’t matter

  • @rainbowryan
    @rainbowryan 17 днів тому

    i got an error message saying that touched is not a valid member of my model

  • @CJBeast
    @CJBeast Місяць тому

    im confused. where can i get the code or is it what he is typing in the vid because i wanna copy and paste

  • @dwindra29723
    @dwindra29723 2 місяці тому

    Hello, great video! I learnt quite a lot! But I do stumbled across a problem with the last line of the code, which is the Button:Destroy()
    it seems to remove the button before I even pressed it. Any tips on that?

  • @thedogeofdestruction
    @thedogeofdestruction 4 місяці тому

    It is saying parent is not a valid member of folder buttons

  • @littlewarp
    @littlewarp 4 місяці тому

    how can a video be this long rtgthrytdgfsfsgghfd

  • @White_Ninja_Squirrel
    @White_Ninja_Squirrel Місяць тому

    im a 9 year old bulgarian i rlly wanna make a game, i hope i make it work :)

  • @kojjiebotanical
    @kojjiebotanical 15 днів тому

    Anyone have any idea why the poster would spawn exactly where the button was after stepping on the button? Its causing me some real struggle.

    • @r7aggr096
      @r7aggr096 4 дні тому

      Same have you fixed this?

    • @kojjiebotanical
      @kojjiebotanical 3 дні тому

      @@r7aggr096 SO oddly enough, NO! My friend who is learning along side me, it worked for her and she passed me her code. I cant see much difference between our codes... but if i run hers, poster goes up just fine.. :/

  • @DCX2014
    @DCX2014 2 місяці тому

    the AI coding thing suggested almost the same code

  • @andrewmaster1216
    @andrewmaster1216 3 місяці тому +1

    25:11 just saving my spot

  • @Keep_dirty
    @Keep_dirty 6 місяців тому +1

    i dont know how to make the dropper pls explain it next time

  • @ultima-ir7ue
    @ultima-ir7ue Місяць тому

    For those who button is not appearing when u join the game try this game.Players.PlayerRemoving:Connect(function(player)
    for _, plot in Plots:GetChildren() do
    if plot:GetAttribute('Owner') == player.UserId then
    plot:SetAttribute('Taken', false)
    plot:SetAttribute('Owner', nil)
    local ItemsFolder = plot:FindFirstChild('Items')
    if ItemsFolder then
    ItemsFolder:Destroy()
    end
    end
    end
    end)

  • @rajeevmajumdar2521
    @rajeevmajumdar2521 3 місяці тому

    Bro I can’t place the model in the items folder please help me😢

  • @Ftopayrespects
    @Ftopayrespects День тому

    6:50

  • @ScribbleNodes
    @ScribbleNodes Місяць тому

    Studs offset doesn’t appear for me on my properties

  • @FROSTOEDITS
    @FROSTOEDITS Місяць тому

    how to set adornee to button?

  • @Septendecillionandfriends
    @Septendecillionandfriends 4 місяці тому

    But this tutorial for..... old

  • @HaydenHaydog2212
    @HaydenHaydog2212 3 місяці тому +1

    How do you measure studs

  • @kacperNFS
    @kacperNFS Місяць тому

    If someone else like me had a problem of the model spawning additional times (2 or 3 even), even despite destroying the button, you can do this:
    Add a line:
    "local itemClone = nil" under the "-- load buttons" comment.
    Then you can check if an object has already been spawned with this line:
    "if itemClone ~= nil then return end"
    right after the
    "if item:GetAttribute("id) ~= itemToUnlockId then continue end".
    If the item has already spawned, the itemClone won't be a nil, and the loop will perish. Also cool if you don't want to remove the button for some reason. Thanks for the tutorial, really help to understand how stuff is made in lua and also glad that you're making it modular and reusable already.