Hi,
I have 2 teams, SFU (a group, TeamColor "Bright green") and Otherwise (anything else, TeamColor "White").
I have a script in the SFU spawn, which is this:
group = 825311
deb = true
function Check(p)
if p ~= nil then
deb = false
local human = p.Parent
if human ~= nil then
local player = game.Players:GetPlayerFromCharacter(human)
if player ~= nil then
end
if player:IsInGroup(group) then
print("Yep!")
player.TeamColor = BrickColor.new("Bright green")
else
print ("Nope!")
end
end
end
end
script.Parent.Touched:connect(Check)
The scoreboard says I'm on the "Otherwise" team, but I spawn at the SFU spawn, and I checked the output, and it said
Nope!
Nope! (Yes it did it twice)
What is going wrong?

2 comments
Didn't help, but I don't have enough rep to thumb you down, so I'll just post this.
;(