Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i edit my script so it runs it, then cancels any kind of clicking on it?

Asked by 10 years ago

This script works good, but i need to make this script so right after when i click it, i cant click it anymore, because now when i click it, it just goes back to the (8,8,8) size and starts over, i don't want this, i just want it to run the script one time and make it so you cant do anything else to it. thanks.

script.Parent.ClickDetector.MouseClick:connect(function() 
p=game.Workspace.Dirt
p.Size=Vector3.new(8,8,8)
wait(1)
 p.Size=Vector3.new(7,7,7)
wait(1)
p.Size=Vector3.new(6,6,6)  
wait(1)
p.Size=Vector3.new(5,5,5)
wait(1)
 p.Size=Vector3.new(4,4,4)
wait(1)
p.Size=Vector3.new(3,3,3)
wait(1)
p.Size=Vector3.new(2,2,2)
 wait(1)
p.Size=Vector3.new(1,1,1)
end)

Answer this question