problems with pause game script

hey gyus, im having this hilarious pause glitch… when i pause the game, all the scripts like jumping and shooting still works

like… if i pause the game, and then press the button for shooting, the projectile apears in front of my character (offcourse the projectile does not go forward because the timescale is set to zero ) but, that happens with jumping two, if i pause and then press jump, as soon as i unpause the character goes jumping

how do i deactivate all the scripts and leave only the pause on?

try use the Time.timeScale = 0; to the Update function that controlls your character.

can i do an if statement to check if the timescale is zero?

what about that? if timescale is zero, then the functions of jumping and shooting are not updated

I’ve been using Time.timeScale = 0 since day one, and I’ve been looking for a better substitute ever since, main reason is because Time.timeScale = 0 messes up your scene if you’re using physics, everything will start bouncing and flying around. Anyone have a workaround or a better alternative?