game.Workspace.ControlStationForTruck.Button.ClickDetector.MaxActivationDistance = 0
wait(10)
game.Workspace.ControlStationForTruck.Button.ClickDetector.MaxActivationDistance = 32
Is there a better way to write that?
game.Workspace.ControlStationForTruck.Button.ClickDetector.MaxActivationDistance = 0
wait(10)
game.Workspace.ControlStationForTruck.Button.ClickDetector.MaxActivationDistance = 32
Is there a better way to write that?
you can just add a wait and a debounce
local debounce = true
script.Parent.MouseButton1Click:Connect(function()
if debounce then
debounce = false
wait(10)
debounce = true
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Thanks!
I'm accepting your answer because I'm not letting this kid just get an answer and not accepting it.