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
Can you format all of your code in lua formatting?
im not sure exactly what you want to do but search up debounces on youtube
Yes, you should put a cooldown (also known as debounce). Not sure if it's the solution, but I think it will help.
what is ts
Time stop.
Could we have more snippets of your code please?