basically just trying to get the players character model. this doesn't work
1 | game.Players.PlayerAdded:connect( function (player) |
2 | local char = player.Character |
3 | local head = char:FindFirstChild( "Head" ) |
4 | head:Destroy() |
5 | end ) |
if not player.Character then player.CharacterAdded:Wait() end
add this before the local char
line you need to wait until the character has loaded in
you can also do this repeat wait() until player.Character
but it's a bad practice
and this would be even the best player.CharacterAppearanceLoaded:Wait()