128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 27 May 2014 01:27 PM |
Its not even really a hack, the guis are actually at my place. One is a local script (Client) and the other a server script |
|
|
| Report Abuse |
|
|
|
| 27 May 2014 01:32 PM |
I don't understand why it don't work.
A few months ago someone told me it would.
Well I guess I'll have to make a script with the plugin, and load the functions in the source.
But what if the script I make doesn't load as fast as the rest and it results in error of other scripts? |
|
|
| Report Abuse |
|
|
|
| 27 May 2014 01:33 PM |
@128
i think he was loling because you spelled client wrong |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 27 May 2014 01:33 PM |
_Use_Module_Scripts_ They are made for what you are doing |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 27 May 2014 01:34 PM |
@JellyBean40 I didn't even notice, derp. I would go fix it but I'm not gonna use the gui for anything, I feel stupid now |
|
|
| Report Abuse |
|
|
|
| 27 May 2014 01:36 PM |
| Alright how do I edit the source of a ModuleScript from a plugin? |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 27 May 2014 01:37 PM |
| What do you want to make it a plugin so badly? There is no need for it, make a free model of the module script |
|
|
| Report Abuse |
|
|
|
| 27 May 2014 01:38 PM |
| Just answer my question -_- |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 27 May 2014 01:39 PM |
| Same way you do it with a normal script. |
|
|
| Report Abuse |
|
|
|
| 27 May 2014 01:44 PM |
So
ModuleScript.Source
Right?
So the ModuleScript will load all the global functions into the _G. Table? |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 27 May 2014 01:46 PM |
| Do you not know how to use a module script? (If you don't its okay Im not saying that to be rude, Im asking so I can help you) |
|
|
| Report Abuse |
|
|
|
| 27 May 2014 01:50 PM |
No I don't D:
All I want is a stinking plugin that loads in global functions that other scripts can use, in offline AND online mode! |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 27 May 2014 02:00 PM |
| I'll make you an example of how to use a module script |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 27 May 2014 02:09 PM |
| http://www.roblox.com/ModuleScript-item?id=158794309 |
|
|
| Report Abuse |
|
|
|
| 27 May 2014 03:52 PM |
I want it to be a plugin dude. So I make two scripts, a ModuleScript and a script that will make the ModuleScript run..?
Why even use the ModuleScript?
How can I make a script load FIRST? |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 27 May 2014 03:54 PM |
Making this a plugin is a complete waste of time
The module will have all your functions in it And any script that has local test = require blah blah will be able to use those functions |
|
|
| Report Abuse |
|
|
|
| 27 May 2014 03:58 PM |
So I would go
M = Instance.new("ModuleScript", Workspace) M.Source = [[SOURCE OF FUNCTIONS]] M.Name = "TULOF"
Then in the help file state at the beginning
--In order to use these functions you must use the following code;
Test = require(Workspace.TULOF)
Would that work..? |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 27 May 2014 03:59 PM |
Yes You could replace "Test" with TULOF if you want though, its just a variable That way you would say TULOF.sayHello() |
|
|
| Report Abuse |
|
|
|
| 27 May 2014 04:12 PM |
Why would I need to go
TULOF.Function???
They were still be _G.Functions
So can't you call them like
_G.SetTime
Or will it have to be like
TULOF._G.SetTime
Cause that don't make any sense.. |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 27 May 2014 04:13 PM |
You don't need them to be _G. It wouldn't even work like that Did you look at the examples in the model I gave you? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 27 May 2014 04:14 PM |
| Do you want _G functions? Then just use a normal script. |
|
|
| Report Abuse |
|
|
|
| 27 May 2014 04:20 PM |
@128
Alright I'll try it...
Thanks :D
I'll come back with any problems. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 27 May 2014 04:22 PM |
| The only downside to Module scripts is that you have to use the function require. |
|
|
| Report Abuse |
|
|
|
| 27 May 2014 04:28 PM |
| I know. I wish there was a way to make a script load first. |
|
|
| Report Abuse |
|
|
|
| 27 May 2014 04:58 PM |
What the heck is wrong here...
toolbarbutton.Click:connect(function() --Prints that don't matter to the question m = Instance.new("ModuleScript", Workspace) m.Name = "TULOFModuleScript" m.Source = [[ --source code ]] --This gets underlined in red saying 'end' expected (to close 'function' at line 214) near ']' s = Instance.new("Script", Workspace) s.Name = "Help (TULOF)" s.Source = [[ --Source code ]] end)
Help..? |
|
|
| Report Abuse |
|
|