while true do repeat wait() until script.Parent.Parent.Parent.Name == "PurchasedObjects" wait(script.WaitTime.Value) local Drop = Instance.new("Part") Drop.Name = "Drop" Drop.Size = Vector3.new(1,1,1) local Worth = script.DropValue:Clone() Worth.Name = "Worth" Worth.Parent = Drop Drop.CFrame = script.Parent.CFrame Drop.Parent = game.Workspace local TimeOut = script.Timeout TimeOut:Clone().Parent = Drop TimeOut.Disabled = false end
It does accomplish the job for the first two minutes but then it doesn't work anymore, With no errors... Why?
Why don't you just do this:
script:Destroy()
or if you're wanting a wait time, just do this:
Make a variable at the top:
WaitTime = 120 -- 2 Minutes
Then in front of the (end) do this:
wait(WaitTime)