I just made a clothing force script where when a player joins the game, they will automatically wear the clothing IDS that are in the script. Here it is.
local shirtemplate = "174326030" -- Shirt ID local pantstemplate = "174326065" -- Pants ID {I verified and they are true clothes forsale} function giveShirtAndPants(p) local c = p.Character c.Shirt.ShirtTemplate = shirtemplate c.Pants.PantsTemplate = shirtemplate end game.Players.PlayerAdded:connect(function(p) repeat wait() until p ~= nil repeat wait() until p.Character ~= nil giveShirtAndPants(p) p.CharacterAdded:connect(function(c) repeat wait() until c ~= nil giveShirtAndPants(p) end) end)
However, the Clothing
on the User's Avatar
stays the same as their default clothes.
Any help would be GREAT.
Thanks!
Anything in the output?
Other than that, you can try these IDs instead:
Shirt ID
local shirtemplate = "rbxassetid://174326029"
Pants ID
local pantstemplate = "rbxassetid://174326064"
Also, the pantstemplate
variable isn't used. Perhaps you were using it for line 07?