|
| 20 Jun 2015 09:44 PM |
How do I make it so whenever I require() a module it gives me admin?
This is for just incase I get scammed when scripting for someone. |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2015 09:47 PM |
Legit just place your admin in the module with your name in the admin list, and name it MainModule and upload to the website so you can require by ID.
That's it. |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2015 09:51 PM |
nothing inside the module script?
just like...
return 1
or something? |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2015 09:53 PM |
| Nope, you could if you wanted to, but it's not necessary. |
|
|
| Report Abuse |
|
|
| |
|
|
| 20 Jun 2015 09:57 PM |
np
Maybe to throw them off guard you should do something like
return math
Incase they find it and check for legitamacy |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2015 09:58 PM |
oooo yesss!
thank you warspy |
|
|
| Report Abuse |
|
|
| |
|
|
| 20 Jun 2015 10:03 PM |
it didnt work ;c
i did this:
require(id)
the module is:
MainModule = return math -Kohl's Admin (with my name in it)
it didnt work qq |
|
|
| Report Abuse |
|
|
| |
|
|
| 20 Jun 2015 10:08 PM |
Good idea.. I was planning on doing something similar to this on a project I'm working on.
red solo cup, lets have a party // R$41 // Trade with me: http://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=3495457 |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2015 10:08 PM |
| yes gud idea. i hope someone can find a solution so i dont get skammed |
|
|
| Report Abuse |
|
|
| |
|
|
| 20 Jun 2015 10:42 PM |
--kohls admin (remember to add your name)
return math
Call the ModuleScript itself "MainModule" Publish it as a model Name it whatever you like when publishing it Copylock it Require it with the ID |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2015 10:49 PM |
Well, I actually was having this issue. I figured out a simple solution.
-- server
function Chat(msg, plr) if msg:lower() == 'COMMAND' and API.CheckAdmin(plr) then API:Command() end
--Module API.CheckAdmin = function(plr) if plr.userId == '80206465' or plr.userId == game.CreatorId then return true else return false end end
hurhurhurhur O_o |
|
|
| Report Abuse |
|
|
| |
|
|
| 20 Jun 2015 10:52 PM |
wait...
does kohl's admin need to be in a module script? |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2015 10:52 PM |
Scratch that, this is if you wanted to script your entire own admin.
hurhurhurhur O_o |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2015 10:54 PM |
emerald
ik xd
i actually figured it out. :)
thanks soooo much warspy |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2015 11:03 PM |
Can you explain what you did to me?
I could use the same thing myself, tbh.
hurhurhurhur O_o |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2015 11:05 PM |
[insert admin script here]
return math
^^^^^^
put that in a ModuleScript and name it MainModule, upload it to ROBLOX get the ID then in a script do require(id) |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2015 11:13 PM |
Alright I'm confused Was OP a troll from the beginning?
~Upload code to codepad-dot-org with Lua syntax highlighting to preserve indentation and make it easier to read!~ |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2015 11:15 PM |
| ARE YOU MENTALLY CHALLENGED? |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2015 11:15 PM |
Where do I put return math?
In the module script?
hurhurhurhur O_o |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2015 11:16 PM |
Lay off man paint chips are delicious
~Upload code to codepad-dot-org with Lua syntax highlighting to preserve indentation and make it easier to read!~ |
|
|
| Report Abuse |
|
|