|
| 15 Jul 2015 06:57 PM |
I've got a game that runs in rounds and a main script that runs the game.
I'm trying to make it so when the round begins, all users no longer have the name on their humanoid visible to other players.
Later on in the script, I'd make it so when it ends, the names of all users are visible again.
What code, if any, could I use to do this? |
|
|
| Report Abuse |
|
|
|
| 15 Jul 2015 07:04 PM |
Weld a fake head, and make the original invisible
-Baheeg |
|
|
| Report Abuse |
|
|
|
| 15 Jul 2015 07:05 PM |
Assuming its a local script:
for i = 1, Players pairs(game.Players:GetPlayers()) do Players.Character.Humanoid.DisplayDistanceType = "None" -- After game ends
Players.Character.Humanoid.DisplayDistanceType = "Viewer" end |
|
|
| Report Abuse |
|
|
Scyber
|
  |
| Joined: 21 Jun 2011 |
| Total Posts: 350 |
|
|
| 15 Jul 2015 07:06 PM |
for _,v in pairs(game.Players:GetPlayers())do v.NameDisplayDistance = 0 end |
|
|
| Report Abuse |
|
|
redlo43
|
  |
| Joined: 16 Feb 2011 |
| Total Posts: 4722 |
|
|
| 15 Jul 2015 07:08 PM |
| Or just set namedisplaydistance to 0 |
|
|
| Report Abuse |
|
|
| |
|