So as I was aware, people had Display Names and were able to keep it
As a result they have their names above their head display their Display Name.
But there’s a problem with that
When my code tries to WaitForChild(“Torso”) a player with a Display Name, it returns an infinite yield.
He reset his character twice before this screenshot was taken:
There were about 20 people in the server, but only he (as far as I know) have this problem.
He tried resetting, and even rejoining the game and same results occurred.
Only he (as far as I know) has a Display Name in that following server, therefore I suspect that the Display Names are causing this problem.
local char = workspace:WaitForChild(plr.Name)
local T = char:WaitForChild("Torso")
Is your game R6 or R15 since if it’s R15 you would look for the upper torso or lower torso also why are you looking for the torso in workspace instead of using
local plr = game:GetService(“Players”).LocalPlayer
local char = plr.character
Local t = char:WaitForChild(“Torso”)
An infinite yield is a warning that warns that you that a script might wait forever to wait for a child that either hasn’t loaded in, is non-existent, or is parented somewhere else.
– scripting helpers, Rare_tendo
When you reset, you will get a new torso and it might not have loaded in for 5 seconds when the script ran the
WaitForChild()
so therefore it gave you a warning it might wait forever
The script that used it is located in a tool, in Starterpack, so it would reset along with the player. That shouldn’t be worried because it worked fine before and suddenly it doesn’t
Its actually a warning so it shouldn’t affect your script…
It did not affect your script as some famous script has it too but it still worked perfectly