|
| 06 Apr 2014 06:13 AM |
bin = script.Parent
ItemName = "Explosive" -- The name of the item in the stand. WaitTime = 10 -- The amount of time to wait before regenerating the item.
Item = bin:findFirstChild(ItemName) backup = Item:clone()
function regen() local regen = backup:clone() regen.Parent = bin end
debounce = false function onTaken(property) if (debounce == true) then return end debounce = true if (bin:findFirstChild(ItemName) == nil) then wait(WaitTime) regen() end debounce = false end
Item.Changed:connect(onTaken)
-- The script works, however it will randomly stop working. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|