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
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?

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