generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: A number above a player's head

Previous Thread :: Next Thread 
barnslig101 is not online. barnslig101
Joined: 29 Aug 2008
Total Posts: 3225
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 is not online. 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
barnslig101 is not online. barnslig101
Joined: 29 Aug 2008
Total Posts: 3225
07 Aug 2013 10:50 AM
How do I set the Adornee? It's greyed out.
Report Abuse
ZachBloxx is not online. ZachBloxx
Joined: 26 Jun 2013
Total Posts: 2833
07 Aug 2013 10:51 AM
With a script.
Report Abuse
barnslig101 is not online. barnslig101
Joined: 29 Aug 2008
Total Posts: 3225
07 Aug 2013 10:53 AM
Something like this?

BillboardGui.Adornee = Head

Because it doesn't seem to be working.
Report Abuse
Essentially is not online. Essentially
Joined: 06 Jun 2012
Total Posts: 30200
07 Aug 2013 10:54 AM
Would you simply set it like this?

script.Parent.Adornee = game.Workspace.Player1.Head or?
Report Abuse
barnslig101 is not online. barnslig101
Joined: 29 Aug 2008
Total Posts: 3225
07 Aug 2013 10:55 AM
@Essentially

I tried that and it didn't seem to work.
Report Abuse
TellerMan is not online. 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 is not online. 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
barnslig101 is not online. barnslig101
Joined: 29 Aug 2008
Total Posts: 3225
07 Aug 2013 11:00 AM
There's no errors in the output either.
Report Abuse
ZachBloxx is not online. 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
barnslig101 is not online. barnslig101
Joined: 29 Aug 2008
Total Posts: 3225
07 Aug 2013 11:04 AM
Parenting is correct and the script is executing fine.
Report Abuse
TellerMan is not online. 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
Rhinocrash is not online. Rhinocrash
Joined: 26 Sep 2010
Total Posts: 106
07 Aug 2013 12:21 PM
Post the script, we cant work with thin air.
Report Abuse
barnslig101 is not online. barnslig101
Joined: 29 Aug 2008
Total Posts: 3225
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
Rhinocrash is not online. Rhinocrash
Joined: 26 Sep 2010
Total Posts: 106
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image