I am making a fort for The Great British Dominic. There are uniforms, but I want to avoid making our NBC friends waiting 20 days to buy the full uniform. Any help please? I would be grateful.
01 | wait( 2 ) |
02 | if script.Parent.Parent.TeamColor = = BrickColor.new( "COLOR HERE" ) then |
03 | if workspace:FindFirstChild(script.Parent.Parent.Name):FindFirstChild( "Shirt" ) = = nil then |
04 | if workspace:FindFirstChild(script.Parent.Parent.Name):FindFirstChild( "Pants" ) ~ = nil then |
05 | workspace:FindFirstChild(script.Parent.Parent.Name).Pants:remove() |
06 | a = Instance.new( "Shirt" ) |
07 | a.ShirtTemplate = ( "http://www.roblox.com/asset/?id=ID HERE" ) |
08 | a.Parent = workspace:FindFirstChild(script.Parent.Parent.Name) |
09 | b = Instance.new( "Pants" ) |
10 | b.PantsTemplate = ( "http://www.roblox.com/asset/?id=ID HERE" ) |
11 | b.Parent = workspace:FindFirstChild(script.Parent.Parent.Name) |
12 | else |
13 | a = Instance.new( "Shirt" ) |
14 | a.ShirtTemplate = ( "http://www.roblox.com/asset/?id=ID HERE" ) |
15 | a.Parent = workspace:FindFirstChild(script.Parent.Parent.Name) |
after adding a team and choosing a color for it, put this script in "StarterGui" and change "COLOR HERE" to the color of the team then change "ID HERE" statements to the ID of the clothes. PLEASE accept my answer and +1 it.
You would have to check if the player's teamcolor is set to that Team's color that needs uniform. Like so
1 | if Player.TeamColor = = "TeamColorHere" then |