Back to Library
Utility
Nov 22, 2025
Slow Motion
T
by terrorsoul
Toggles slow motion by changing the physics time scale
LUA
function ToggleSlowmo(isActive)
if isActive then
-- Set physics time scale to 30% speed
tm.physics.SetTimeScale(0.3)
tm.playerUI.ShowIntrusiveMessageForAllPlayers("SLOWMO", "Time Slowed!", 2)
else
-- Reset to normal speed (1.0)
tm.physics.SetTimeScale(1.0)
tm.playerUI.ShowIntrusiveMessageForAllPlayers("NORMAL TIME", "Time Restored", 2)
end
end