Script end if team =

Hi, I need to make a couple of my scripts end if team = “UNDEAD”. I know I need something like this


if team = "UNDEAD" then end

at the top of the scripts that I don’t want to be used by them. Some input would be great.


if team.GetName(ply:Team()) == "UNDEAD" then return end

-snip-

I was faster c:

-nvm i’m dumb-

Its only ONE if statement, therefore only ONE end requiered.

Edit:

c: