Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Changing Shirt/Pants doesn't work?

I was trying to change Shirt/Pants of players by using my own shirt/pants. (I have put them into the actual character in test mode, they are working shirt/pants.) This doesn't work though. Help? No probs from output, a localscript was used.

local player = game.Players.LocalPlayer

if player:FindFirstChild("Shirt") then
	player.Shirt:Destroy()
	game.Lighting["Shirt/Pants"].Shirt:Clone().Parent = player
else
	game.Lighting["Shirt/Pants"].Shirt:Clone().Parent = player
end

1 answer

✓ Accepted answer

Shirt is not a child of Player, You have to go into the character to get it.

1 comment

0

I totally forgot bout that, thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.