I get no error and the part does not get cloned into all players character.
1 | game.Players.PlayerAdded:connect( function (Player) |
2 | Player.CharacterAdded:connect( function (Char) |
3 | local RS = game.ReplicatedStorage |
4 | local Part = RS:WaitForChild( "DisplayOverHead" ) |
5 | local Head = Char:WaitForChild( "Head" ) |
6 |
7 | Part:Clone().Parent = Char |
8 | end ) |
9 | end ) |
01 | game.Players.PlayerAdded:connect( function (Player) |
02 | Player.CharacterAdded:connect( function (Char) |
03 | local RS = game.ReplicatedStorage |
04 | local Part = RS:WaitForChild( "DisplayOverHead" ) |
05 |
06 |
07 |
08 | Part:Clone().Parent = Char.Head |
09 | end ) |
10 | end ) |
Maybe this might help you, but I am not sure, maybe you need to weld.