I'm trying to make it so if someone joins my game, it'll remove this hat https://www.roblox.com/item.aspx?seoname=Flintstones-Car&id=439315202
I've stumbled into a problem though, because I haven't found a definitive way to determine if the hat is in the character, because elements such as the hat and clothes load after the character is instanced.
How do I yield for the hats and everything else to be loaded?
I just figured a way out after the fact of posting this, but it may not be most efficient way.
pcall(function() local Hat = Player.Character:WaitForChild('Flintstones Car') if Hat then stupidHat:Destroy() end end)