I have a problem: when i use this function in a local script to stop the player's movements, then re enable the movements, the player cant move after he respawns. It only happens when i desable and then enable the movements of the player.
Thank you for the help.
The function:
function SetMovements(Activation)
if Activation == true then
require(game.Players.LocalPlayer:WaitForChild("PlayerScripts"):WaitForChild("PlayerModule")):GetControls():Enable()
elseif Activation == false then
require(game.Players.LocalPlayer:WaitForChild("PlayerScripts"):WaitForChild("PlayerModule")):GetControls():Disable()
end
end