I am trying to make a Group Only Spawn, but it just isn't working out for me. I am inserting the script into the spawn pad, but I can still change to that team even without being in the group through the team change gui that I have set up. Can somebody tell me what I am doing wrong?
group = 2960649
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
if player:IsInGroup(group) then
player.TeamColor = BrickColor.new("Really Red")
end
end
end
end
end
script.Parent.Touched:connect(Check)

1 comment
Explain how this works to the asker?