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: attempt to call global 'LoadLibary' (a nil value)???

Previous Thread :: Next Thread 
digpoe is not online. 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 is not online. gerit99
Joined: 21 Jul 2010
Total Posts: 521
06 Nov 2012 01:43 PM
For the leave thingie in your game?
Report Abuse
digpoe is not online. 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 is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
06 Nov 2012 02:10 PM
Help?

Report Abuse
crouton04 is not online. 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
crazyman32 is not online. crazyman32
Joined: 13 Apr 2008
Total Posts: 18027
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
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
06 Nov 2012 04:00 PM
Good nemonic @crazyman. You don't like berries?
Report Abuse
crazyman32 is not online. crazyman32
Joined: 13 Apr 2008
Total Posts: 18027
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
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
06 Nov 2012 04:24 PM
Bananas have seeds? o:
Report Abuse
crazyman32 is not online. crazyman32
Joined: 13 Apr 2008
Total Posts: 18027
06 Nov 2012 04:28 PM
Apparently they have only 1
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
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
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
06 Nov 2012 04:38 PM
o.e How are they radioactive?
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
06 Nov 2012 04:38 PM
High potassium content.
Report Abuse
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
06 Nov 2012 04:39 PM
o:
So basically I'm radioactive until I digest? :L
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
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
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
06 Nov 2012 04:42 PM
Ok. I learn something new everyday. Thanks.
Report Abuse
crazyman32 is not online. crazyman32
Joined: 13 Apr 2008
Total Posts: 18027
07 Nov 2012 06:08 PM
Isn't everything radioactive to some extent?
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
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 is not online. OBF
Joined: 29 Sep 2009
Total Posts: 10709
07 Nov 2012 06:16 PM
Yes, technically.
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