Hi, im not very good at scripting, i was woundering if someone would help me with something. I would really like to make a game where people spawn in sertain clothes like in the game "The Stalker." But i have no idea how.
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
First, add a team to "Teams" in explorer and choose any color for it. Now, insert this script in StarterGui, then change "COLOR HERE" to the color of the team you made and change "ID HERE" to the ID of the clothes you want.
NOTE: You can thank me by accept this answer and +1 it.
The purpose of this website is to help people FIX scripts, not make it for them.
Closed as Not Constructive by evaera
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?