Now the fun part: making money literally fall from the sky. A dropper is just a forever loop that creates a small part every few seconds. You already know forever loops and Instance.new, so this is your skills teaming up to do something genuinely game-like.
The pattern is a while true do loop, because a dropper should run for as long as the game is open, with a wait() to set how often it drops:
local dropper = script.Parent
while true do
local cash = Instance.new("Part")
cash.Size = Vector3.new(1, 1, 1)
cash.Position = dropper.Position + Vector3.new(0, -3, 0)
cash.BrickColor = BrickColor.new("Bright green")
local value = Instance.new("IntValue")
value.Name = "CashValue"
value.Value = 5
value.Parent = cash
cash.Parent = workspace
wait(2)
end
See the wait lesson paying off? wait(2) drops one cash part every two seconds. Shrink it and money rains faster; that single number is your first balancing dial. The CashValue tucked inside each cash part is a slick trick: when the player collects it later, your collector reads that value to know how much to pay out. It’s a dictionary-style idea, data riding along with the object.
Run the checklist and watch your dropper spit out a steady stream of green. When cash is spawning on a beat, you’re two-thirds of the way to a working tycoon. Next: catching that cash and turning it into score.