Removing a hat from the player

How would I remove hats from the player in a local script?

1 Like

Humanoid | Documentation - Roblox Creator Hub You can remove hats from player from that. Or

local Players = game:GetService(“Players”)
local function playerAdded(player)
player.CharacterAppearanceLoaded:Connect(function(character)
local humanoid = character:WaitForChild(“Humanoid”)
humanoid:RemoveAccessories()
end)

1 Like