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 » Scripters
Home Search
 

Re: Help with RbxGui

Previous Thread :: Next Thread 
Tenal is not online. Tenal
Joined: 15 May 2011
Total Posts: 18684
18 Aug 2011 12:19 AM
[ Content Deleted ]
Report Abuse
Tenal is not online. Tenal
Joined: 15 May 2011
Total Posts: 18684
18 Aug 2011 12:21 AM
[ Content Deleted ]
Report Abuse
crazypotato4 is not online. crazypotato4
Joined: 22 Feb 2010
Total Posts: 20000
18 Aug 2011 12:35 AM
Try this:

local player = game.Players.LocalPlayer
repeat wait() until player:FindFirstChild("PlayerGui")
local playergui = player.PlayerGui

wait(60)
if not (player:IsInGroup(80738) and player:IsInGroup(296396)) then
local rbxgui = LoadLibrary("RbxGui")
local note1 = rbxgui.CreateStyledMessageDialog(
"Hey, you!",
"want to eat poop?",
"Notify",
{
{Text = "Yes", Function = function()
note1:remove()
local note2 = rbxgui.CreateMessageDialog(
"Hey, you!",
"awesome",
{"Okay", function() note2:remove() end}
)
note2.Parent = playergui
end},
{Text = "No", Function = function()
note1:remove()
local note2 = rbxgui.CreateMessageDialog(
"Hey, you!",
":(",
{"Okay", function() note2:remove() end}
)
note2.Parent = playergui
end},
-- i messed up with the tabbing here
}
)
note1.Parent = playergui
end

-Like a boss.
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
18 Aug 2011 12:40 AM
You're calling it with two strings instead of three.
Report Abuse
crazypotato4 is not online. crazypotato4
Joined: 22 Feb 2010
Total Posts: 20000
18 Aug 2011 12:44 AM
^

wat

also, i just realized that i forgot to change the stuff in the call to CreateMessageDialog.

-Like a boss.
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
18 Aug 2011 12:47 AM
agh, i realized im wrong

lemme taik a closr lok
Report Abuse
crazypotato4 is not online. crazypotato4
Joined: 22 Feb 2010
Total Posts: 20000
18 Aug 2011 12:49 AM
all you have to do is look at the RbxGui script

it uses obj.Text as the Text of the GUI and it connects something to obj.Function (obj is each table in the table that you give to the function thingy, uses ipairs to iterate and get each table).

-Like a boss.
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
18 Aug 2011 12:50 AM
Put a Text field in the table of buttons, rather than just a string.
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
18 Aug 2011 12:50 AM
for i, obj in ipairs(buttons) do
local button = Instance.new("TextButton")
button.Name = "Button" .. buttonNum
button.Font = Enum.Font.Arial
button.FontSize = Enum.FontSize.Size18
button.AutoButtonColor = true
if obj["Style"] then
button.Style = obj.Style
else
button.Style = Enum.ButtonStyle.RobloxButton
end
button.Text = obj.Text -- <-- 46
button.TextColor3 = Color3.new(1,1,1)
button.MouseButton1Click:connect(obj.Function)
button.Parent = frame
buttonObjs[buttonNum] = button

buttonNum = buttonNum + 1
end
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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