Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you make Team Uniform GUIs?

Asked by 10 years ago

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

Log in to vote
1
Answered by 10 years ago
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.

Ad
Log in to vote
0
Answered by 10 years ago

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

Answer this question