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)