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

How would you remove T-Shirts from a Character?

Asked by 9 years ago

Part of the script I have below removes only have of the T-Shirt on the character, how would I make/add another part of the script to remove the T-Shirt completely?

if speaker.Character:findFirstChild("Shirt Graphic") then
    speaker.Character["Shirt Graphic"]:Destroy()
end

1 answer

Log in to vote
0
Answered by
Goulstem 8144 Badge of Merit Moderation Voter Administrator Community Moderator
9 years ago
thing = speaker.Character:FindFirstChild("ShirtGraphic")
if thing ~= nil then
    thing:Destroy()
end

-Goulstem

0
That's the shirt.. Not the T-Shirt.. Pawsability 65 — 9y
0
Oh sorry, edit. Goulstem 8144 — 9y
Ad

Answer this question