Trying to apply clothes to character removes clothing

im trying to change the players clothes to prisoner clothes when they click the van button but it just removes the clothes instead. i looked up a few videos and looked thru the forum but no hope so far. i grabbed the shirt + pants template from the catalog.

gif:
https://gyazo.com/492d11b1756e9119897f7d1e42116cce

script:

	local function AssignClothes(char)
		if not plr:HasAppearanceLoaded() then plr.CharacterAppearanceLoaded:Wait() end
		local shirt = char:FindFirstChildOfClass("Shirt") or Instance.new("Shirt", char)
		local pants = char:FindFirstChildOfClass("Pants") or Instance.new("Pants", char)
		shirt.ShirtTemplate = "rbxassetid://12018511613"
		pants.PantsTemplate = "rbxassetid://12018516081"
	end
	
	AssignClothes(char)

i got it nvm. i put the id in wrong. it shouldve been:

** “http://www.roblox.com/asset/?id=YOURCLOTHESID”**

script:

	--plr clothes
	local function AssignClothes()
		if not plr:HasAppearanceLoaded() then plr.CharacterAppearanceLoaded:Wait() end
		
		local shirt = char:FindFirstChildOfClass("Shirt")
		local pants = char:FindFirstChildOfClass("Pants")
		shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=12018511576"
		pants.PantsTemplate = "http://www.roblox.com/asset/?id=12018516047"
	end
	
	AssignClothes()
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.