Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do you make Team Uniform GUIs?

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.

2 answers

wait(2)
if script.Parent.Parent.TeamColor == BrickColor.new("COLOR HERE") then
if workspace:FindFirstChild(script.Parent.Parent.Name):FindFirstChild("Shirt") == nil then
if workspace:FindFirstChild(script.Parent.Parent.Name):FindFirstChild("Pants") ~= nil then
workspace:FindFirstChild(script.Parent.Parent.Name).Pants:remove()
a = Instance.new("Shirt")
a.ShirtTemplate = ("http://www.roblox.com/asset/?id=ID HERE")
a.Parent = workspace:FindFirstChild(script.Parent.Parent.Name)
b = Instance.new("Pants")
b.PantsTemplate = ("http://www.roblox.com/asset/?id=ID HERE")
b.Parent = workspace:FindFirstChild(script.Parent.Parent.Name)
else
a = Instance.new("Shirt")
a.ShirtTemplate = ("http://www.roblox.com/asset/?id=ID HERE")
a.Parent = workspace:FindFirstChild(script.Parent.Parent.Name)
b = Instance.new("Pants")
b.PantsTemplate = ("http://www.roblox.com/asset/?id=ID HERE")
b.Parent = workspace:FindFirstChild(script.Parent.Parent.Name)
end
else
if workspace:FindFirstChild(script.Parent.Parent.Name):FindFirstChild("Pants") ~= nil then
workspace:FindFirstChild(script.Parent.Parent.Name).Shirt:remove()
workspace:FindFirstChild(script.Parent.Parent.Name).Pants:remove()
a = Instance.new("Shirt")
a.ShirtTemplate = ("http://www.roblox.com/asset/?id=ID HERE")
a.Parent = workspace:FindFirstChild(script.Parent.Parent.Name)
b = Instance.new("Pants")
b.PantsTemplate = ("http://www.roblox.com/asset/?id=ID HERE")
b.Parent = workspace:FindFirstChild(script.Parent.Parent.Name)
else
workspace:FindFirstChild(script.Parent.Parent.Name).Shirt:remove()
a = Instance.new("Shirt")
a.ShirtTemplate = ("http://www.roblox.com/asset/?id=ID HERE")
a.Parent = workspace:FindFirstChild(script.Parent.Parent.Name)
b = Instance.new("Pants")
b.PantsTemplate = ("http://www.roblox.com/asset/?id=ID HERE")
b.Parent = workspace:FindFirstChild(script.Parent.Parent.Name)
end
end
end

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

if Player.TeamColor == "TeamColorHere" then

This discussion is preserved as it was. New answers, comments, and votes are closed.