Tenal
|
  |
| Joined: 15 May 2011 |
| Total Posts: 18684 |
|
| |
|
Tenal
|
  |
| Joined: 15 May 2011 |
| Total Posts: 18684 |
|
| |
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|