Hello! im new at scripting, and i want to know if have any way to
save player shirt/pants
remove old player shirt/pants
give a new shirt/pants
wait(10)
remove the shirt/pants the script gave to player
and give player shirt/pants again
is there any method to do this?
This is my script, it just change player shirt/pants! ![]()
local ChangerPart = script.Parent
local ShirtTemplate = "http://www.roblox.com/asset/?id=nicenumberhere"
local PantsTemplate = "http://www.roblox.com/asset/?id=nicenumberhere"
ChangerPart.Touched:Connect(function(TouchPart)
if TouchPart and TouchPart.Parent and TouchPart.Parent:FindFirstChild("Humanoid") then
print(TouchPart.Parent.Name .. " - Changed clothes")
local Character = TouchPart.Parent
local shirt = Character:FindFirstChildOfClass("Shirt")
local pants = Character:FindFirstChildOfClass("Pants")
if not shirt then
shirt = Instance.new("Shirt", Character)
shirt.Name = "Shirt"
end
if not pants then
pants = Instance.new("Pants", Character)
pants.Name = "Pants"
end
Character.Shirt.ShirtTemplate = ShirtTemplate
Character.Pants.PantsTemplate = PantsTemplate
wait(3)
end
end)