script.Parent.MouseClick:connect(function(plr)
local c = game.Lighting.Apple:Clone() c.Parent = plr.Backpack
end)
script.Parent.MouseClick:connect(function(plr)
local c = game.Lighting.Apple:Clone() c.Parent = plr.Backpack
script.Parent.Parent:remove()
end)
how do i make this happen over and over? every time the tree is clicked i want to have a delay of 2 minutes before the tree to reappears... can u help?
Trees = game.ServerStorage.Trees:GetChildren() -- Put a few trees in server storage Tree = script.Parent.Parent -- This script would be inside the trunk! script.Parent.ClickDetector.MouseClick:connect(function() Tree:Destroy() wait(120) c = Trees[math.random(1, #Trees)] c.Parent = workspace end)