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

removing hats when a player joins?

Asked by 3 years ago

i am making a game where players are only legs. i want to remove hats from the player when they join but i am unsure how, help?

1 answer

Log in to vote
0
Answered by
Dec_ade 47
3 years ago
game.Players.PlayerAdded:Connect(function(plr)
    plr.CharacterAppearanceLoaded:Connect(function(char)
        local hum = char:WaitForChild("Humanoid")
        hum:RemoveAccessories()
    end)
end)
Ad

Answer this question