So I basically made a game for a group. It has different teams. Such as Criminal, Outsider, Military and Villagers. I added a script that makes sure the people get auto teamed.
function onPlayerEntered(plyr) if plyr:IsInGroup(5084542) then plyr.TeamColor = BrickColor.new("Institutional white") end end
game.Players.PlayerAdded:connect(onPlayerEntered)
The only problem is, that when they spawn. They spawn in the criminal spawn. But if you reset you spawn on the correct place. So, who has a script that makes you respawn once when you join the game? Or do you have a different solution?
Please use Lua text box but here is a solution anyways:
local function onPlayerEntered(plyr) if plyr:IsInGroup(5084542) then plyr.TeamColor = BrickColor.new("Institutional white") wait(1) plyr:LoadCharacter() end end game.Players.PlayerAdded:Connect(onPlayerEntered)