Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local re = game.ReplicatedStorage:WaitForChild("TeamsRE")
- local teams = game:GetService("Teams")
- game.Players.PlayerAdded:Connect(function(plr)
- plr.CharacterAdded:Connect(function(char)
- for i, team in pairs(teams:GetTeams()) do
- if team.TeamColor == plr.TeamColor then
- for i, tool in pairs(team:GetChildren()) do
- tool:Clone().Parent = plr.Backpack
- end
- end
- end
- end)
- end)
- re.OnServerEvent:Connect(function(plr, team)
- if teams:FindFirstChild(team) then
- plr.TeamColor = teams[team].TeamColor
- plr:LoadCharacter()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement