thats some lazy crap ^
-----------------
Make sure, inside of your button, there is a ClickDetector
Insert a script onto the button, and paste this code in:
ClickDetector = script.Parent:WaitForChild("ClickDetector")
CanSpawn = true
ClickDetector.MouseClick:connect(function()
HumveeClone = game.ServerStorage.Humvee:Clone()
if CanSpawn then
CanSpawn = false
if workspace:FindFirstChild("Humvee") then
workspace.Humvee:Destroy()
end
HumveeClone.Parent = workspace
wait(10)
CanSpawn = true --This to prevent mass regen
end
end) |