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: RbxGui question

Previous Thread :: Next Thread 
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
22 Oct 2011 03:50 PM
K so I just learned about RbxGui today, and I'm already having a problem. I'm trying to make a simple message box. My problem is that I don't know what to use for the third argument. I have this so far:

wait(5)

local rbx = LoadLibrary("RbxGui")
local message = rbx.CreateMessageDialog("Testing","Lolz",{Derp = function() print('hai') end})
message.Parent = script.Parent.ScreenGui
message.Position = UDim2.new(0,0,0,0)
message.Size = UDim2.new(0,500,0,500)

It creates the message with title "Testing" and message "Lolz", but no buttons show up. I'm confused as to what the third argument needs to be. The wiki says "'buttons' input is an array of tables that contains a 'Text' and 'Function' field for the text/callback of each button." Halp?

-[::ƧѡÎḾḠΰῩ::]-
-[::Maker of stuff and breaker of combos::]-
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
22 Oct 2011 03:53 PM
No views D:

Forever alone.

-[::ƧѡÎḾḠΰῩ::]-
-[::Maker of stuff and breaker of combos::]-
Report Abuse
NBCKing is not online. NBCKing
Joined: 09 Oct 2011
Total Posts: 133
22 Oct 2011 03:58 PM
I havent learned about that stuff yet. :(
Report Abuse
crazypotato4 is not online. crazypotato4
Joined: 22 Feb 2010
Total Posts: 20000
22 Oct 2011 04:01 PM
{
{Text = "hi", Function = function() end},
{Text = "wat", Function = function() end}
}

Text is what shows up on the button, Function is what happens when the button is pressed.
Report Abuse
crazypotato4 is not online. crazypotato4
Joined: 22 Feb 2010
Total Posts: 20000
22 Oct 2011 04:02 PM
Oh, and by the way, legit people figure this out by looking at the source code of RbxGui, not by searching the wiki for it :D
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
22 Oct 2011 04:07 PM
But I dunno hao to does that 3:

-[::ƧѡÎḾḠΰῩ::]-
-[::Maker of stuff and breaker of combos::]-
Report Abuse
crazypotato4 is not online. crazypotato4
Joined: 22 Feb 2010
Total Posts: 20000
22 Oct 2011 04:12 PM
1. Edit your settings or your reflectionmetadata (settings is easier) to show you all the objects in the game.

2. Insert a script into Workspace

3. Change the script's LinkedSource to that of the StarterScript thingy that's somewhere in your game

4. Look at the source, find where it sets the RbxGui library, and put its id in the LinkedSource of your script

5. Look through thousands of lines of code (using Notepad++ is suggested because it has moar cool stuff than roblox's ide) to figure out how the function that you're using works.
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