Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.ReplicatedStorage.TeamChange.OnServerInvoke = function(plr, teamName)
- local team = game.Teams:FindFirstChild(teamName)
- if team and team:FindFirstChild("MaxPlayers") then
- if team.MaxPlayers.Value > #team:GetPlayers() then
- plr:LoadCharacter()
- plr.Team = team
- return true
- else
- return false
- end
- end
- end]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement