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

How do I make it so that player wears their own clothes instead of a picked clothes for them? [closed]

Asked by 5 years ago
Edited 5 years ago
if p.Data.Race.Value == "Visored" then -- should be wearing player clothes
elseif p.Data.Race.Value == "Shinigami" then -- already picked out clothes
if c:FindFirstChildOfClass("Shirt") == nil then
shirt = Instance.new("Shirt",c)
shirt.ShirtTemplate = "rbxassetid://655625349"
pants = Instance.new("Pants",c)
pants.PantsTemplate = "rbxassetid://203653190"
elseif c:FindFirstChildOfClass("Shirt") and c:FindFirstChildOfClass("Shirt").ShirtTemplate ~= "rbxassetid://655625349" then
c:FindFirstChildOfClass("Shirt"):Destroy()
c:FindFirstChildOfClass("Pants"):Destroy()
end
elseif p.Data.Race.Value == "Arrancar" then -- already picked out clothes
if c:FindFirstChildOfClass("Shirt") == nil then
shirt = Instance.new("Shirt",c)
shirt.ShirtTemplate = "rbxassetid://429526385"
pants = Instance.new("Pants",c)
pants.PantsTemplate = "rbxassetid://429550268"
elseif c:FindFirstChildOfClass("Shirt") and c:FindFirstChildOfClass("Shirt").ShirtTemplate ~= "rbxassetid://429526385" then
c:FindFirstChildOfClass("Shirt"):Destroy()
c:FindFirstChildOfClass("Pants"):Destroy()
end
elseif p.Data.Race.Value == "Quincy" then -- a;ready picked out clothes
if c:FindFirstChildOfClass("Shirt") == nil then
shirt = Instance.new("Shirt",c)
shirt.ShirtTemplate = "rbxassetid://245627132"
pants = Instance.new("Pants",c)
pants.PantsTemplate = "rbxassetid://468488630"
elseif c:FindFirstChildOfClass("Shirt") and c:FindFirstChildOfClass("Shirt").ShirtTemplate ~= "rbxassetid://245627132" then
c:FindFirstChildOfClass("Shirt"):Destroy()
c:FindFirstChildOfClass("Pants"):Destroy()
end
end


Closed as Too Broad by User#24403 and TheeDeathCaster

This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.

Why was this question closed?