im working on a tycoon game and for some reason the droppers are spawning before you own the tycoon or anything this is the link if you wanna see the error
https://www.roblox.com/games/214418744/slenderman-tycoon-v-0-0-1-beta
heres the dropper script
wait(2)
workspace:WaitForChild("PartStorage")
while true do
wait(1.5) -- How long in between drops
local part = Instance.new("Part",workspace.PartStorage)
part.BrickColor=script.Parent.Parent.Parent.DropColor.Value
part.Material=script.Parent.Parent.Parent.MaterialValue.Value
local cash = Instance.new("IntValue",part)
cash.Name = "Cash"
cash.Value = 5 -- How much the drops are worth
part.CFrame = script.Parent.Drop.CFrame - Vector3.new(0,1.4,0)
part.FormFactor = "Custom"
part.Size=Vector3.new(1.2, 1.2, 1.2) -- Size of the drops
part.TopSurface = "Smooth"
part.BottomSurface = "Smooth"
game.Debris:AddItem(part,20) -- How long until the drops expire
end
I have no script for the button because I have my scripts based off zednovs

4 comments
And, I highly unrecommend just inserting free models and just saying "Oh, thats my game!" No NO dont do that!
@SH_Helper The use of freemodels is not completely evil contrary to popular belief. Believe it or not some of the top developers on ROBLOX started with freemodels. They learned to program by looking at freemodels. As have I. Heck, even members of stylis studios have use freemodels to start.
@AZDev free models for learning is fine- copying someone elses work and calling it your game is not. also most free models are malicous
What i mean is dont put down a hundred trees and observation towers and call that a proper game.