Purely
New Member
Posts: 16
ROBLOX Username: PurelyMystic
|
Post by Purely on May 9, 2017 20:42:19 GMT
I have done this before. Make a alternate module script by using a regular server script and have a different script call it or someone requiring it. Have the format for the alternative module script like a real module script with table = {} function table.what() etc,. Trust me it's possible I made a working one, if I don't see anyone that can figure it out i'll go ahead and tell you have it's done.
|
|
Purely
New Member
Posts: 16
ROBLOX Username: PurelyMystic
|
Post by Purely on May 9, 2017 21:54:46 GMT
Want a hint?
|
|
|
Post by Josh on May 9, 2017 21:58:32 GMT
Yes, please!
You say that you can require the script?
|
|
Purely
New Member
Posts: 16
ROBLOX Username: PurelyMystic
|
Post by Purely on May 9, 2017 22:04:58 GMT
Well, a different method. You use global functions.
|
|
|
Post by Josh on May 9, 2017 22:09:14 GMT
Do you just mean something like this?
_G.tbl = { hw = "Hello, World!"; }
print(_G.tbl.hw)
> Hello, World!
|
|
|
Post by Bit on May 9, 2017 22:12:15 GMT
Lol, give me a few minutes, rewriting stuff is my specialty ever since PI.
|
|
Purely
New Member
Posts: 16
ROBLOX Username: PurelyMystic
|
Post by Purely on May 9, 2017 22:12:45 GMT
Similar, but you can also use it to store functions Here you go buddy <3
--serverscript regular math.randomseed(tick())
local Table = {};
function Table.Apple(var)
print(var)
end
_G.ServerModule = function()
return Table;
end
--serverscript just regular
math.randomseed(tick())
local Module = _G.ServerModule()
Module.Apple("om")
|
|
|
Post by Bit on May 9, 2017 22:31:38 GMT
I give up. RBX.Lua hates me. Literally started randomly turning my functions into THREADS. Not even joking, SOMEHOW turned all the functions in a table to threads.
|
|
Purely
New Member
Posts: 16
ROBLOX Username: PurelyMystic
|
Post by Purely on May 9, 2017 22:34:11 GMT
Rip you like the concept of alternative modules?
|
|
|
Post by Bit on May 9, 2017 22:37:16 GMT
|
|