I have been working on a roleplay game that is closely related to my group. I have figured out how to make a script that puts group roles on different team, and I know how to give that a different loadout.
game.Players.PlayerAdded:connect(function(newPlayer) local rank = newPlayer:GetRankInGroup(3803596) local teamName = "" if rank >= 200 then teamName = "Executive" elseif rank == 4 then teamName = "Operatives" elseif rank == 3 then teamName = "Junior Operatives" elseif rank == 2 then teamName = "Trainees" end newPlayer.TeamColor = game.Teams[teamName].TeamColor end)
But, I was wondering if there was a way, that group ranks could have their own loadout, but still be on the sane team.
Put the tools you need somewhere into Replicated Storage and put these lines into that script for each team:
team = "Executive" local tool = game.ReplicatedStorage:WaitForChild"tool":Clone() tool.Parent = player:WaitForChild"StarterGear"
simple script, hope it helps.