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
1game.Players.PlayerAdded:Connect(function(plr)
2    plr.CharacterAppearanceLoaded:Connect(function(char)
3        local hum = char:WaitForChild("Humanoid")
4        hum:RemoveAccessories()
5    end)
6end)
Ad

Answer this question