I am made a Roblox Military Group (The Libertarians | Protecting Liberty and Justice). And in my game I want it to be where if you are in the group, you automatically join the green team, and spawn in base. I have tried different codes, but nothing has worked! This is the most recent one, and I put it inside of the team I wanted to have them spawn into.
function Enter(newPlayer) if newPlayer:IsInGroup(3316542) then newPlayer.Camo=script.Parent.Camo end end
game.Players.ChildAdded:connect(Enter)

1 comment
Format your code using Lua Code block