I did this but I found no error, its a part of the script.
elseif player.TeamColor == "Bright red" then Character.Humanoid.Health = Character.Humanoid.MaxHealth player.Character:MakeJoints()
If we detect when the property health is changed and immediately change it, the humanoid will never die.
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) repeat wait() until character.Humanoid character.Humanoid.Changed:connect(function(property) if property == 'Health' then print('health changed') character.Humanoid.Health = character.Humanoid.MaxHealth end end) end) end)
NOTE: The health bar will not update back to what it should be and the damage GUI will still be shown, however the health will always stay at the Humanoid's MaxHealth.
Try this
while true do game.Players.Player1.Humanoid.Health = 100 wait(0.1) end
elseif player.TeamColor == "Bright red" then Character.Humanoid.Health = Character.Humanoid.MaxHealth player.Character:MakeJoints()
Correct Code :
elseif player.TeamColor =="Bright red" then Character.Humanoid.Health = math.huge
Also might want to use a function(player)