How can you make uniforms for teams?

Hey, I recently developed a huge SCPF Map with different teams (MTF etc)
And I would like to know how can you make uniforms when the player join the team!

Best Regards

1 Like

You can detect when a player joins a team, when they join a team replace their shirt/pants that are in their character.

1 Like

Thanks, and do you have a script for that ? :grinning:

1 Like

No, I don’t, but I can conjure up a quick example:

game.Players.PlayerAdded:connect(function(plr)
 plr:GetPropertyChangedSignal("Team"):Connect(function()
  if plr.Team == "teamNameHere" then
     plr.character.shirt.id = 123123
     plr.character.pants.id = 123123123
  end 
 end
end)

This won’t work, but your script will end up looking something like this.

2 Likes

Thanks ! I will try to make it work.

Found It!

game.Players.PlayerAdded:Connect(function()
	if Player.Team == “Mobile Task Force” then
		local RecruitModel = RecruitModel:Clone()
		local RecruitModel.Name = StarterCharacter
		RecruitModel.Parent = StarterPlayer
	end
	Player:LoadCharacter()
end)

Should work!

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.