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

How to make a hat remover button? [closed]

Asked by 6 years ago

Can someone tell me how to make a hat remover button?

0
Have you tried looking at free models or tutorials in order to see the basics so you can make your own script? RockerCaleb1234 282 — 6y

Closed as Not Constructive by hiimgoodpack and Andorks

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
Nowaha 459 Moderation Voter
6 years ago
Edited 6 years ago
script.Parent.Touched:connect(function(a)
    for i,v in pairs(a.Parent:GetChildren()) do
        if v.ClassName == "Accessory" then
            v:Destroy()
        end
    end
end)
Ad