if Key == "t" and Move == false then if workspace:FindFirstChild("IsTimeAccelerating") then if workspace.IsTimeAccelerating.Value ~= Player.Name then return

		end
	end
	if workspace:FindFirstChild("IsTimeStopped") then
		if workspace.IsTimeStopped.Value ~= Player.Name then
			return
		end
	end
	if TimeStopped == true then
		TimeResume()
	else
		TimeStop()
	end
end

if I can put a cooldown on it please tell me.

6 comments

0

Can you format all of your code in lua formatting?

0

im not sure exactly what you want to do but search up debounces on youtube

0

Yes, you should put a cooldown (also known as debounce). Not sure if it's the solution, but I think it will help.

0

what is ts

0

Time stop.

0

Could we have more snippets of your code please?