Zyperion
|
  |
| Joined: 10 May 2014 |
| Total Posts: 184 |
|
|
| 18 May 2015 02:23 PM |
| how would i make a custom UI that displays local health on top of a player? |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 18 May 2015 02:24 PM |
Billboard UI
~Master bug finder twitch.tv/ROBLOX/c/4691695 14:07-14:25~ |
|
|
| Report Abuse |
|
|
|
| 18 May 2015 02:24 PM |
A BillboardGui paired with the .Changed event will work like a treat!
Enjoying your stay at the Scripters Forum? Join this! http://www.roblox.com/My/Groups.aspx?gid=2582784 |
|
|
| Report Abuse |
|
|
Zyperion
|
  |
| Joined: 10 May 2014 |
| Total Posts: 184 |
|
|
| 18 May 2015 02:24 PM |
| kinda like the on in mad paintball i guess? |
|
|
| Report Abuse |
|
|
Zyperion
|
  |
| Joined: 10 May 2014 |
| Total Posts: 184 |
|
|
| 18 May 2015 02:25 PM |
| example? looked all over wiki i neede this like a bullet trhough the head |
|
|
| Report Abuse |
|
|
|
| 18 May 2015 02:25 PM |
Yeah, just put a BillboardGui in StarterGui, Adornee it to the LocalPlayer, and then use the .Changed event of the Humanoid to change the health.
Enjoying your stay at the Scripters Forum? Join this! http://www.roblox.com/My/Groups.aspx?gid=2582784 |
|
|
| Report Abuse |
|
|
vacha
|
  |
| Joined: 06 Jan 2011 |
| Total Posts: 1993 |
|
|
| 18 May 2015 02:25 PM |
bar.Size.X.Scale = humanoid.Health/humanoid.MaxHealth
while true do the do |
|
|
| Report Abuse |
|
|
Zyperion
|
  |
| Joined: 10 May 2014 |
| Total Posts: 184 |
|
|
| 18 May 2015 02:29 PM |
| i cant do this lol, im literally done. i have the UI Designed i just need a script that will put it on top of the players head and size it depending on players health |
|
|
| Report Abuse |
|
|
|
| 18 May 2015 02:30 PM |
LocalPlayer.Character.Humanoid.Changed:connect(function()
BillboardGui.HealthLabel.Size = LocalPlayer.Character.Humanoid.Health/LocalPlayer.Character.Humanoid.MaxHealth
end
Enjoying your stay at the Scripters Forum? Join this! http://www.roblox.com/My/Groups.aspx?gid=2582784 |
|
|
| Report Abuse |
|
|
Zyperion
|
  |
| Joined: 10 May 2014 |
| Total Posts: 184 |
|
|
| 18 May 2015 02:31 PM |
| will this put it on the players head? |
|
|
| Report Abuse |
|
|
vacha
|
  |
| Joined: 06 Jan 2011 |
| Total Posts: 1993 |
|
|
| 18 May 2015 02:32 PM |
Make a billboard gui and set it's parent to the character's head (with a script)
while true do the do |
|
|
| Report Abuse |
|
|
|
| 18 May 2015 02:32 PM |
You need to the other stuff like creating the billboard gui making the Health label and everything. This is just the bones, you need to add the meat on to it.
Enjoying your stay at the Scripters Forum? Join this! http://www.roblox.com/My/Groups.aspx?gid=2582784 |
|
|
| Report Abuse |
|
|
vacha
|
  |
| Joined: 06 Jan 2011 |
| Total Posts: 1993 |
|
|
| 18 May 2015 02:52 PM |
@OP Edit this and learn it brick-by-brick http://www.roblox.com/games/248918051/--
while true do the do |
|
|
| Report Abuse |
|
|
|
| 18 May 2015 03:10 PM |
^
Seriously...
Enjoying your stay at the Scripters Forum? Join this! http://www.roblox.com/My/Groups.aspx?gid=2582784 |
|
|
| Report Abuse |
|
|
vacha
|
  |
| Joined: 06 Jan 2011 |
| Total Posts: 1993 |
|
|
| 18 May 2015 04:09 PM |
*wink*
while true do the do |
|
|
| Report Abuse |
|
|