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

Changing Shirt/Pants doesn't work?

Asked by 8 years ago

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

Log in to vote
0
Answered by 8 years ago

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

0
I totally forgot bout that, thanks! fight4moneyalt2 27 — 8y
Ad

Answer this question