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: Why won't this work? Help!

Previous Thread :: Next Thread 
yankeejr is not online. 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 is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
22 Mar 2014 06:54 PM
bump
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
22 Mar 2014 06:56 PM
So close:

child.Text = Alpha
Should be
child.Text = "Alpha"
Because its a string
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
22 Mar 2014 06:56 PM
The gui won't appear...
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
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 is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
22 Mar 2014 06:59 PM
still wont work...
Report Abuse
UnAdmin is not online. UnAdmin
Joined: 10 Jul 2012
Total Posts: 4706
22 Mar 2014 07:00 PM
You need to set the GUI's adornee.
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
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 is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
22 Mar 2014 07:08 PM
Can somebody fix it?
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
22 Mar 2014 07:11 PM
Please??
Report Abuse
yankeejr is not online. 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 is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
22 Mar 2014 07:16 PM
I can wait.
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
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
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
22 Mar 2014 07:18 PM
Also,add

Label.Text = "Text inside quotation here"
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