Hello, I am need of help. I am trying to make a certain team godded even if they reset or die. So far this is what I have [Yes I know it is wrong, I don't script much]

game.Teams.Lobby.MaxHealth = 9999999999999999999999999

if game.Teams.Lobby.Humanoid.MaxHealth = 0 do game.Teams.Lobby.MaxHealth = 9999999999999999999999999 end end

It is for a game I am working on in Roblox. It's for a meadows.

Thank you

-DivineAlerio

3 comments

0
  1. You cannot do if Something do, you must have it like if Something then. you also only need one end. To answer your question, you will need to check if a player was added to said team, and set their health + maxhealth.
0

My suggestion is to create a table with each player in it, then check each player's team through the Humanoid. I would need to test this to see if it will work properly, but it should work.

0

Thank you for helping me, it worked properly.