digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 06 Nov 2012 01:42 PM |
I can't seem to create Guis using RbxGui as I keep getting the error stated above. I'm making a Gui that makes a confirm dialog with RbxGui but due to the error, I can't get it to work. |
|
|
| Report Abuse |
|
|
gerit99
|
  |
| Joined: 21 Jul 2010 |
| Total Posts: 521 |
|
|
| 06 Nov 2012 01:43 PM |
| For the leave thingie in your game? |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 06 Nov 2012 01:43 PM |
WELL DURR. It doesn't work.. Here's the script for all to see: function destroyCurrentCamera() script.Cam.Disabled = false end function quitGame() wait(1) script.Parent.Parent.Parent.Parent.Parent.Parent.Parent:Destroy() destroyCurrentCamera() end function saveAll() local plr = script.Parent.Parent.Parent.Parent.Parent.Parent.Parent plr:SaveNumber("Studs", game.Lighting[plr.Name].Studs.Value) plr:SaveNumber("Minerals", game.Lighting[plr.Name].Minerals.Value) plr:SaveNumber("Crystals", game.Lighting[plr.Name].Crystals.Value) plr:SaveInstance("Planet", workspace[plr.Name.."_Planet"]) quitGame() end RbxGui = assert(LoadLibary("RbxGui")) script.Parent.MouseButton1Down:connect( function() script.Parent.Parent.Parent:TweenSize(0, 0, 0, 0) local saveDialogMessageBox local messageBoxButtons = {} messageBoxButtons[1] = {} messageBoxButtons[1].Text = "No" messageBoxButtons[1].Style = Enum.ButtonStyle.RobloxButtonDefault messageBoxButtons[1].Function = function() saveDialogMessageBox:Remove() quitGame() end messageBoxButtons[2] = {} messageBoxButtons[2].Text = "Yes" messageBoxButtons[2].Style = Enum.ButtonStyle.RobloxButtonDefault messageBoxButtons[2].Function = function() saveDialogMessageBox:Remove() saveAll() end saveDialogMessageBox = RbxGui.CreateStyledMessageDialog("Save Game","Do you want to save your game before quitting?", "Confirm", messageBoxButtons) saveDialogMessageBox.Visible = true saveDialogMessageBox.Parent =script.Parent.Parent.Parent.Parent.Parent end ); |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
| |
|
crouton04
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 4459 |
|
|
| 06 Nov 2012 03:26 PM |
Fixed it, guess what! You spelt 'library' wrong :)
function destroyCurrentCamera() script.Cam.Disabled = false end function quitGame() wait(1) script.Parent.Parent.Parent.Parent.Parent.Parent.Parent:Destroy() destroyCurrentCamera() end function saveAll() local plr = script.Parent.Parent.Parent.Parent.Parent.Parent.Parent plr:SaveNumber("Studs", game.Lighting[plr.Name].Studs.Value) plr:SaveNumber("Minerals", game.Lighting[plr.Name].Minerals.Value) plr:SaveNumber("Crystals", game.Lighting[plr.Name].Crystals.Value) plr:SaveInstance("Planet", workspace[plr.Name.."_Planet"]) quitGame() end RbxGui = assert(LoadLibrary("RbxGui")) script.Parent.MouseButton1Down:connect( function() script.Parent.Parent.Parent:TweenSize(0, 0, 0, 0) local saveDialogMessageBox local messageBoxButtons = {} messageBoxButtons[1] = {} messageBoxButtons[1].Text = "No" messageBoxButtons[1].Style = Enum.ButtonStyle.RobloxButtonDefault messageBoxButtons[1].Function = function() saveDialogMessageBox:Remove() quitGame() end messageBoxButtons[2] = {} messageBoxButtons[2].Text = "Yes" messageBoxButtons[2].Style = Enum.ButtonStyle.RobloxButtonDefault messageBoxButtons[2].Function = function() saveDialogMessageBox:Remove() saveAll() end saveDialogMessageBox = RbxGui.CreateStyledMessageDialog("Save Game","Do you want to save your game before quitting?", "Confirm", messageBoxButtons) saveDialogMessageBox.Visible = true saveDialogMessageBox.Parent =script.Parent.Parent.Parent.Parent.Parent end ); |
|
|
| Report Abuse |
|
|
|
| 06 Nov 2012 03:50 PM |
It's not a Lie Berry. You don't like berries. It's a Lie Brerry. (That's how I taught myself the difference when I was younger) |
|
|
| Report Abuse |
|
|
|
| 06 Nov 2012 04:00 PM |
| Good nemonic @crazyman. You don't like berries? |
|
|
| Report Abuse |
|
|
|
| 06 Nov 2012 04:05 PM |
| Not too much of a fan for berries. Except strawberries, if you can even consider that a 'berry' (Berries technically have only 1 seed, which also makes bananas berries!) |
|
|
| Report Abuse |
|
|
| |
|
|
| 06 Nov 2012 04:28 PM |
| Apparently they have only 1 |
|
|
| Report Abuse |
|
|
|
| 06 Nov 2012 04:37 PM |
| No, they have more than one, but they're all removed after cultivation. But what I bet you didn't know is that bananas are slightly radioactive. |
|
|
| Report Abuse |
|
|
|
| 06 Nov 2012 04:38 PM |
| o.e How are they radioactive? |
|
|
| Report Abuse |
|
|
| |
|
|
| 06 Nov 2012 04:39 PM |
o: So basically I'm radioactive until I digest? :L |
|
|
| Report Abuse |
|
|
|
| 06 Nov 2012 04:40 PM |
| You're radioactive until you lose all the potassium in your body. But don't worry, you're fine. Your body can handle small levels of radioactivity. |
|
|
| Report Abuse |
|
|
|
| 06 Nov 2012 04:42 PM |
| Ok. I learn something new everyday. Thanks. |
|
|
| Report Abuse |
|
|
|
| 07 Nov 2012 06:08 PM |
| Isn't everything radioactive to some extent? |
|
|
| Report Abuse |
|
|
|
| 07 Nov 2012 06:15 PM |
However, if you happen to eat 500 bananas in one sitting, you'll probably notice some ill effects.
-[::ƧѡÎḾḠΰῩ::]-[::Maker of stuff and Helper of Scripting::]- |
|
|
| Report Abuse |
|
|
OBF
|
  |
| Joined: 29 Sep 2009 |
| Total Posts: 10709 |
|
| |
|