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

How Do I Remove EVERY Hat When A player joins?

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

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

1 comment

0

Oh sorry I ask alot of questions >_< I just need this done.Thx

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