This is part of a local script
--#Basic player variables local Character local Human local HumanRoot --#Original values of stuff local OGravity local OWalkSpeed local OJumpPower local _Delay = false --#Assigning variables game.Players.LocalPlayer.CharacterAdded:Connect(function(char) Character = char Human = char:WaitForChild("Humanoid") HumanRoot = char:WaitForChild("HumanoidRootPart") OWalkSpeed = Human.WalkSpeed OJumpPower = Human.JumpPower OGravity = workspace.Gravity end) --#Make sure the player exists repeat wait() until Character ~= nil and HumanRoot ~= nil and Human ~= nil
the script does not make it past the repeat until line nor does it output an error. The last time i ran this script(4/9/21) it did work but now it no longer does.
I really dont understand why did you just do that, since i dont recommend doing it that way, you can just use the repeat wait() until char
in the characteradded function, it would simplify a lot of code, and you really dont need to wait for the humanoid and humanoidrootpart if the character is loaded then so is the hum, and humrootpart. I dont think this will fix your code, but this is how its done better.
--#Original values of stuff local OGravity local OWalkSpeed local OJumpPower local _Delay = false --#Assigning variables game.Players.LocalPlayer.CharacterAdded:Connect(function(char) OWalkSpeed = Human.WalkSpeed OJumpPower = Human.JumpPower OGravity = workspace.Gravity repeat wait() until char print("Congrats! The player exists") end)