I’m using player controls to completely disable controls for certain things so they can’t move during an action for example. Everything works fine, I don’t use this anywhere else, no issues at all until I respawn. I made sure and checked that Controls:Disable()
is only used in one spot within the script and that’s not called during player death or anything like that
local Controls = require(game.Players.LocalPlayer.PlayerScripts:WaitForChild("PlayerModule")):GetControls()
However, when I respawn I’m completely stuck and can’t move. I even have this in the script but it doesn’t help
--//Fix Script On Player Death\\--
Player.CharacterAdded:Connect(function(Char)
Character = Char
--//Animations\\--
Animations = RepStorage.Animations
OpeAnims = {}
Animator = Character:WaitForChild("Humanoid"):FindFirstChildOfClass("Animator")
Functions.CreateAnimListFromFolder(Animator, OpeAnims, Animations.OpeAnims)
--//Fix Character\\--
Controls:Enable()
end)
This script is inside of a tool in StarterPack