01 | game.Players.PlayerAdded:connect(onPlayerRespawned) |
02 | function onPlayerRespawned(newPlayer) |
03 | wait(. 1 ) |
04 | newPlayer.Character.Head [ "face" ] :remove() ---- this line |
05 | newPlayer.Character.Head.Transparency = 0.99 |
06 | newPlayer.Character.Torso.Transparency = 1 |
07 | newPlayer.Character [ "Left Leg" ] .Transparency = 1 |
08 | newPlayer.Character [ "Right Leg" ] .Transparency = 1 |
09 | newPlayer.Character [ "Left Arm" ] .Transparency = 1 |
10 | newPlayer.Character [ "Right Arm" ] .Transparency = 1 |
11 | end |
12 | function onPlayerEntered(newPlayer) |
13 | newPlayer.Changed:connect( function (property) -- to see |
14 | if (property = = "Character" ) then |
15 | onPlayerRespawned(newPlayer) |
16 | end |
17 | end ) |
18 | end |
19 |
20 | game.Players.PlayerAdded:connect(onPlayerEntered) |
everything is fine except removing the face. did i do something wrong?
Hello. I have experienced this same problem also. I tried many different things, but what I believe worked was a small wait of 5 seconds before removing the face.
Another reason it may not work is because :remove()
has been deprecated (which means it no longer works). Try :destroy()
instead.