Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Dropper script Stops?

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

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)

1 comment

0

Seriously? That doesn't help me.

This discussion is preserved as it was. New answers, comments, and votes are closed.