|
| 07 Aug 2013 10:45 AM |
| How would I use a billboard GUI to show a number above a player's head? |
|
|
| Report Abuse |
|
|
ZachBloxx
|
  |
| Joined: 26 Jun 2013 |
| Total Posts: 2833 |
|
|
| 07 Aug 2013 10:47 AM |
| Set the billboard gui's Adornee property to the character's head. Put a text label in the billboard gui, then put some number on the text label. |
|
|
| Report Abuse |
|
|
|
| 07 Aug 2013 10:50 AM |
| How do I set the Adornee? It's greyed out. |
|
|
| Report Abuse |
|
|
ZachBloxx
|
  |
| Joined: 26 Jun 2013 |
| Total Posts: 2833 |
|
| |
|
|
| 07 Aug 2013 10:53 AM |
Something like this?
BillboardGui.Adornee = Head
Because it doesn't seem to be working. |
|
|
| Report Abuse |
|
|
|
| 07 Aug 2013 10:54 AM |
Would you simply set it like this?
script.Parent.Adornee = game.Workspace.Player1.Head or? |
|
|
| Report Abuse |
|
|
|
| 07 Aug 2013 10:55 AM |
@Essentially
I tried that and it didn't seem to work. |
|
|
| Report Abuse |
|
|
TellerMan
|
  |
| Joined: 23 Apr 2010 |
| Total Posts: 237 |
|
|
| 07 Aug 2013 10:56 AM |
player = game.Players.LocalPlayer
bg = game.Workspace.BillboardGui
bg.Adornee = player
This might work in a local script... |
|
|
| Report Abuse |
|
|
ZachBloxx
|
  |
| Joined: 26 Jun 2013 |
| Total Posts: 2833 |
|
|
| 07 Aug 2013 10:56 AM |
| Yes, that would set it. You're probably doing something wrong... |
|
|
| Report Abuse |
|
|
|
| 07 Aug 2013 11:00 AM |
| There's no errors in the output either. |
|
|
| Report Abuse |
|
|
ZachBloxx
|
  |
| Joined: 26 Jun 2013 |
| Total Posts: 2833 |
|
|
| 07 Aug 2013 11:02 AM |
| I didn't mean an error within the script. It could be any error. Parenting, script execution, etc. |
|
|
| Report Abuse |
|
|
|
| 07 Aug 2013 11:04 AM |
| Parenting is correct and the script is executing fine. |
|
|
| Report Abuse |
|
|
TellerMan
|
  |
| Joined: 23 Apr 2010 |
| Total Posts: 237 |
|
|
| 07 Aug 2013 11:04 AM |
player = game.Players.LocalPlayer
bg = game.Workspace.BillboardGui
bg.Adornee = player.Character.Head
This should work in a local script. But this isnt the only way to do it obviously. |
|
|
| Report Abuse |
|
|
|
| 07 Aug 2013 12:21 PM |
| Post the script, we cant work with thin air. |
|
|
| Report Abuse |
|
|
|
| 07 Aug 2013 12:36 PM |
while true do player = game.Figure
bg = game.Workspace.Figure.Head.BillboardGui
bg.Adornee = player.Head
end |
|
|
| Report Abuse |
|
|
|
| 07 Aug 2013 12:38 PM |
Put in localscript wait() while wait() do player = game.Players.LocalPlayer bg = game.Workspace[player.Name].Head.BillboardGui bg.Adornee = player.Head end |
|
|
| Report Abuse |
|
|
ZachBloxx
|
  |
| Joined: 26 Jun 2013 |
| Total Posts: 2833 |
|
|
| 07 Aug 2013 12:39 PM |
| ... this would crash. Your second like would also error. |
|
|
| Report Abuse |
|
|