Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I hide player's display distance?

Asked by 9 years ago

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

Log in to vote
1
Answered by
RedCombee 585 Moderation Voter
9 years ago

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!

Ad

Answer this question