So I made a noclip script, but for some reason it breaks as soon as the player dies (which it shouldn't) Script is in a LocalScript in the playergui, with ResetPlayerGuiOnSpawn set to false.
Run, PlrChar, PlrHum, and NoClip are declared.
Anybody know the problem i'm at a complete loss.
Run.RenderStepped:connect(function()
local Find = PlrChar:FindFirstChild("Humanoid")
if (Find) then
PlrHum = Find
end
if (NoClip) then
PlrHum:ChangeState(Enum.HumanoidStateType.StrafingNoPhysics)
end
end)

3 comments
Try reseting PlrChar, PlrHum, and NoClip when you respawn.
Put your second if statement inside of your first one.
Nothing still, tried putting the second if statement in the first one.