How to Make a Dropper (Tycoon)
Download – Dropper Model
How To – Make a Dropper on Roblox Studio
What’s up everyone welcome to buzzygames, my name is buzzy games beth and today I’ll be teaching you how to make a dropper for your tycoon game!
- First thing I’m going to do is essentially just model my dropper. I’m going to go ahead and grab a few parts and then just build it so that there’s a base in kind of this L shape and then i’m going to go ahead and highlight all of the parts and then union them and then I’m going to rename it to “base”
- I’m going to grab another part and this is going to actually be the part that drops the items. So I’m gonna put a little under the dropper just like that- I think that looks pretty good yeah and then I’m just gonna go ahead and rename it to drop zone
- The last thing we’re going to add onto our model is a switch. So go ahead and grab our last part and then I’m going to put it around the middle of our base and then I’m going to change the color of it to like a neon blue. So that’s done I’m going to go ahead and rename that part to “switch”
- So once that’s all done I’m going to go ahead and grab all the parts and group them together into a model and then rename that to “dropper”
- So we’re going to go ahead and add a boolvalue inside of our dropper and then rename that to “running” inside of our dropper
- We’ll be adding a script inside of our switch. We’ll beadding two things, a click detector and another script
- So we’ll be working on the switch script for now. Firstso first thing we want to do is define our variables. We have a function where any time we click the switch then the brick color is going to change to really red and then if we click it again it’s going to change into lime gree. So if it’s really red it’s off, if it’s lime green it’s on. So you can change the color of the brick color if you would like i’m just going to do the simple red and green.
- I’m going to go ahead and test it out and I forgot to anchor it so go ahead and anchor all of your parts. Hop back into the game just to test out to see if the switch is working and yep looks good to me!
- Cool so then we can go ahead and move on to the next step which is the actual script for the dropper. So we have our variables here and then we’re going to do a while do statement where if the dropper is running meaning if it’s on it’s going to wait two seconds and then it’s going to drop the parts from our dropzone and then we can set the size of our part that we want to be dropped and
- Let’s go ahead and hop back into the game to see if it works and press it on and there you go it should work wait two seconds and then it drops! Perfect looks good!
- So we can actually change the properties of the parts that are being dropped. It’s really easy you’re just going to go ahead and hop back into our script we can do the drop.brickcolor which sets the color of the part. We can change the shape of the part, we can also change the material of our part too!
- I’m going to go ahead and do cracked lava and then once you’re done with that go ahead and just hop back into your game and you’ll see that boom you’re finished with your dropper!