#Problem when the player respawn.

1 messages · Page 1 of 1 (latest)

viscid oyster
#

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
mighty geyser