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

How Do I Remove EVERY Hat When A player joins?

Asked by 8 years ago

Using IsA: functions I know but I have no idea how to remove then and detect if they have one All i want to do is find every hat in the player and :Destroy() them.

1 answer

Log in to vote
2
Answered by 8 years ago

Problem

You should really try adding a script into your questions or atleast try doing it.

Answer Local Script Inside StarterPack

local player = game.Players.LocalPlayer
repeat wait() until player.Character
wait(2)
for i,v in pairs(player.Character:GetChildren()) do
if v.ClassName == "Hat" then
v:remove()
end
end
0
Oh sorry I ask alot of questions >_< I just need this done.Thx Clakker200 5 — 8y
Ad

Answer this question