I have a Group Only spawn script that seems like it would work properly, but whenever someone clicks it, it makes a Neutral team and teams them to Neutral. To my understanding, I am doing everything right. Can somebody tell me what is wrong with it?
group = 2964900
deb = true
script.Parent.Touched:connect(function(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
if player:IsInGroup(group) then
player.TeamColor = BrickColor.new("Navy Blue")
end
end
end
end
end)

3 comments
I believe you have to add the team as well?
What do you mean?
Do you already have a "Navy Blue" team placed in "Teams"? Also, the color is called, "Navy blue", without the capital B. Gotta be exact with those things.