Slow motion system

I’m trying to make a script where if you press R, time slows down. Now I was wondering how other people slow everything down. I want to know how I can slow down every tween while slow motion is active, slow down all animation speeds, and slow down physics, like how parts move. For reference see Time slows down and