of     1   

zaniac10
#184929302Monday, March 07, 2016 2:26 PM GMT

No output. Localscript. local plr = game.Players.LocalPlayer repeat wait() until plr.Character local char = plr.Character for _,v in pairs(char:GetChildren()) do if v:IsA("Hat") then v:Destroy() end end
NovusTheory
#184929317Monday, March 07, 2016 2:27 PM GMT

repeat wait() until plr.Character ~= nil ????
zaniac10
#184929329Monday, March 07, 2016 2:28 PM GMT

Still didn't work
NovusTheory
#184929359Monday, March 07, 2016 2:29 PM GMT

Then honestly I have no clue, It looks all correct, My only suspicion is the script doesn't actually run then
zaniac10
#184929400Monday, March 07, 2016 2:30 PM GMT

local plr = game.Players.LocalPlayer repeat wait() until plr.Character ~= nil local char = plr.Character for _,v in pairs(char:GetChildren()) do print("running") if v:IsA("Hat") then v:Destroy() print("hat destroyed") end end prints 'running' several times but not 'hat destroyed'
oni0n
#184929404Monday, March 07, 2016 2:31 PM GMT

local plr = game.Players.LocalPlayer local char = plr.Character while wait() do pcall(function() for _,v in pairs(char:children()) do if v.ClassName == "Hat" then v:Destroy() end end end) end #code cout << "Proof by analogy is fraud" << endl; //Bjarne Stroustrup
AbstractMadness
#184929445Monday, March 07, 2016 2:32 PM GMT

You're using the wrong events. The hats probably haven't even loaded yet. local plr = game.Players.LocalPlayer local chr = plr.CharacterAppearanceLoaded:wait() for i,v in next, chr:GetChildren() do if v:IsA("Hat") then v:Destroy() end end #code R+ | local RAP = "R$436,826"; local robux = "R$8,566"
zaniac10
#184929499Monday, March 07, 2016 2:34 PM GMT

Thanks, Abstract.

    of     1