Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Dropper script Stops?

Asked by
Vezious 310 Moderation Voter
9 years ago
01while true do
02repeat wait() until script.Parent.Parent.Parent.Name == "PurchasedObjects"
03wait(script.WaitTime.Value)
04local Drop = Instance.new("Part")
05Drop.Name = "Drop"
06Drop.Size = Vector3.new(1,1,1)
07local Worth = script.DropValue:Clone()
08Worth.Name = "Worth"
09Worth.Parent = Drop
10Drop.CFrame = script.Parent.CFrame
11Drop.Parent = game.Workspace
12local TimeOut = script.Timeout
13TimeOut:Clone().Parent = Drop
14TimeOut.Disabled = false
15end

It does accomplish the job for the first two minutes but then it doesn't work anymore, With no errors... Why?

1 answer

Log in to vote
-1
Answered by 9 years ago

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)

0
Seriously? That doesn't help me. Vezious 310 — 9y
Ad

Answer this question