this is the error Infinite yield possible on 'Players.Player1:WaitForChild("Character")'
here's a part of the script
game.Players.LocalPlayer:WaitForChild("leaderstats") game.Players.LocalPlayer.leaderstats:WaitForChild("Level") game.StarterGui:WaitForChild("Hp") game.StarterGui.Hp.Frame.Frame:WaitForChild("HpPart") game.StarterGui.Hp.Lv:WaitForChild("LVL DISPLAY SCRIPT")
local player = game.Players.LocalPlayer player:WaitForChild("Character") local Character = player.Character
if game.Players.LocalPlayer.leaderstats.Level.Value == 1 then player.Character.Humanoid.MaxHealth = 250 player.Character.Humanoid.Health = 250 end
the problem is in this part
local player = game.Players.LocalPlayer player:WaitForChild("Character") local Character = player.Character
i can't figure it out? any help ?

1 comment
Players.Player1:WaitForChild("Character") will always return nil, since Character is not a Child, its a redirection.