SUPERHOT (Time only moves when you move) gamemode help

Hey!
I want to make a SUPERHOT gamemode and for that i need a “Time only moves when you move” mechanic.
Now… I dont know how to program that. I looked through the docs and i didnt find anything interesting. Can somebody help me out here?

game.SetTimeScale

Sorry but that doesnt help very much…
I need something that makes it slow motion when you stand, and normal motion when you are moving.

You could check if the player is moving in a GM:SetupMove hook by checking if Entity:GetVelocity:Length2DSqr doesn’t equal 0 and set the timescale accordingly.

Thank you! It worked!