yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
|
| 22 Mar 2014 06:51 PM |
-- IT WORKS, BUT THE GUI WON'T APPEAR...
function CharLoaded(char) local main = Instance.new("BillboardGui", char.Head) local child = Instance.new("TextLabel", main) child.Text = Alpha end
function Added(plr) plr.CharacterAdded:connect(CharLoaded) end
game.Players.PlayerAdded:connect(Added) |
|
|
| Report Abuse |
|
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
| |
|
|
| 22 Mar 2014 06:56 PM |
So close:
child.Text = Alpha Should be child.Text = "Alpha" Because its a string |
|
|
| Report Abuse |
|
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
| |
|
|
| 22 Mar 2014 06:57 PM |
Btw,make sure to set the sizze!
child.Size =UDim2.new(0,100,0,100) child.Position = UDim2.new(0,100,0,100)
And position
Tweak this a bit If needed |
|
|
| Report Abuse |
|
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
| |
|
UnAdmin
|
  |
| Joined: 10 Jul 2012 |
| Total Posts: 4706 |
|
|
| 22 Mar 2014 07:00 PM |
| You need to set the GUI's adornee. |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2014 07:01 PM |
Dude,yes it will.. You have to set size accordingly,I don't usually use billboardGuis,so.. Yeah
Oh BTW
main.Adornee = char.Head--otherwise adornee is nil,might be the prob |
|
|
| Report Abuse |
|
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
| |
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
| |
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
|
| 22 Mar 2014 07:13 PM |
| You will save my time if you fix this :D! |
|
|
| Report Abuse |
|
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
| |
|
|
| 22 Mar 2014 07:18 PM |
function CharLoaded(char) wait() Gui = Instance.new("BillboardGui",char.Head) Label = Instance.new("TextLabel",Gui) Label.Size = UDim2.new(0.9,0,0.9,0) Label.Position = UDim2.new(0,0,0,0) Gui.Adornee = char.Head end
function Added(plr) plr.CharacterAdded:connect(CharLoaded) end
game.Players.PlayerAdded:connect(Added)
Make sure to test in server :p
Start server Start player |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2014 07:18 PM |
Also,add
Label.Text = "Text inside quotation here" |
|
|
| Report Abuse |
|
|