01 | while true do |
02 | repeat wait() until script.Parent.Parent.Parent.Name = = "PurchasedObjects" |
03 | wait(script.WaitTime.Value) |
04 | local Drop = Instance.new( "Part" ) |
05 | Drop.Name = "Drop" |
06 | Drop.Size = Vector 3. new( 1 , 1 , 1 ) |
07 | local Worth = script.DropValue:Clone() |
08 | Worth.Name = "Worth" |
09 | Worth.Parent = Drop |
10 | Drop.CFrame = script.Parent.CFrame |
11 | Drop.Parent = game.Workspace |
12 | local TimeOut = script.Timeout |
13 | TimeOut:Clone().Parent = Drop |
14 | TimeOut.Disabled = false |
15 | 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)