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: Globa variables in a plugin?

Previous Thread :: Next Thread 
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
12 Mar 2014 10:28 AM
If I declare a global variable in a plugin, when they click it, can it be accessed by scripts?
Example;

self = PluginManager():CreatePlugin() toolbar = self:CreateToolbar("The Ultimate List Of Functions")
toolbarbutton = toolbar:CreateButton("TULOF", "The Ultimate List Of Functions")
toolbarbutton.Click:connect(function()
print("Type _G.Ultimate() for help")
_G.Variable = "HI WORLD"
end)

Or better yet, can I declare without them clicking it?

self = PluginManager():CreatePlugin() toolbar = self:CreateToolbar("The Ultimate List Of Functions")
toolbarbutton = toolbar:CreateButton("TULOF", "The Ultimate List Of Functions")
_G.Variable = "HI WORLD"
toolbarbutton.Click:connect(function()
print("Type _G.Ultimate() for help")
end)


Would the second one work? If not would the first?
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
12 Mar 2014 10:29 AM
@title... Global -_-


Post.Parent.Title.Text = "Global variables in a plugin"
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
12 Mar 2014 11:00 AM
Anybody?
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
12 Mar 2014 11:38 AM
Please? Do none of you have experience with plugins? Also, why does it always take 3 bumps before you guys answer my question?
Report Abuse
janthran is not online. janthran
Joined: 15 May 2009
Total Posts: 17429
12 Mar 2014 11:44 AM
Nope, plugins have their own environment pretty sure
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
12 Mar 2014 11:55 AM
Seriously? That sucks. How can you change the source of a script, I guess I will have to insert it. But if this does work, you can still feel free to help me by saying so!
Report Abuse
janthran is not online. janthran
Joined: 15 May 2009
Total Posts: 17429
12 Mar 2014 12:03 PM
Wait, I just tested and yes, you can set _G from a plugin and access it from scripts/cmdbar
sorry
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
12 Mar 2014 12:38 PM
Thanks, do you have to click to access it?
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
12 Mar 2014 05:04 PM
Well?
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
12 Mar 2014 05:32 PM
Do I have to click to assign the global variables? Or can I do it without the click function?
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
13 Mar 2014 09:31 AM
Come on guys... Please.
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
13 Mar 2014 11:03 AM
YOU KNOW WHAT. IM JUST UPSET, SO UPSET IM GONNA MAKE MEANINGLESS BUMPS!









B1
Report Abuse
Cawlonee is not online. Cawlonee
Joined: 03 Mar 2014
Total Posts: 2687
13 Mar 2014 11:21 AM
Sorry, I don't know what Globa is.

Is it a new Pokemon?
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
13 Mar 2014 11:31 AM
View second reply, I meant global
Report Abuse
Cawlonee is not online. Cawlonee
Joined: 03 Mar 2014
Total Posts: 2687
13 Mar 2014 11:32 AM
That was joke.

//joke --See
Report Abuse
trogyssy is not online. trogyssy
Joined: 29 Oct 2010
Total Posts: 2322
13 Mar 2014 11:33 AM
Ooh , Globa. Sounds interesting.

~~trogyssy, Scripting Helper and S&I Activist~~
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
13 Mar 2014 11:40 AM
Seriously. Hellp.
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
13 Mar 2014 11:49 AM
B2
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
13 Mar 2014 12:00 PM
B3
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
13 Mar 2014 12:09 PM
B4
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
13 Mar 2014 12:29 PM
B5
Report Abuse
robotmega is not online. robotmega
Joined: 16 May 2009
Total Posts: 14084
13 Mar 2014 12:35 PM
yes u can just put it before click function
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
13 Mar 2014 12:42 PM
They will be able to access them?
Report Abuse
robotmega is not online. robotmega
Joined: 16 May 2009
Total Posts: 14084
13 Mar 2014 12:43 PM
yes
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
13 Mar 2014 12:45 PM
Thanks
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