Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I hide player's display distance?

Roblox recently made that update with the new "StarterPlayer" service in Explorer, and that seems to have all the options a Player would have. But I've tried doing this:

game.StarterPlayer.NameDisplayDistance=0
game.StarterPlayer.HealthDisplayDistance=0

I'm trying to hide everyone's name and health bar that comes in the game but I saw that that apparently didn't work. How would you hide the Name and Health display distance?

1 answer

✓ Accepted answer

It's not because of StarterPlayer, but I believe that it is because name and health hiding doesn't work by that method.

A common alternative to this method is copying the player's head and welding the copy to the head, then making the original head invisible.

local head = game.StarterPlayer.Head:Clone()
head.Name = "Head2"
head.Parent = game.StarterPlayer
weld = Instance.new("Weld",head)
weld.Part0 = head
weld.Part1 = game.StarterPlayer.Head
game.StarterPlayer.Head.Transparency = 1

By the way, this is a suggestion and I have not tested StarterPlayer for myself. Hope it works!

This discussion is preserved as it was. New answers, comments, and votes are closed.