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 » Scripters
Home Search
 

Re: Trying to get my question answered quickly...

Previous Thread :: Next Thread 
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
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
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
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
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
20 Jun 2015 09:51 PM
nothing inside the module script?

just like...

return 1

or something?
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
20 Jun 2015 09:53 PM
Nope, you could if you wanted to, but it's not necessary.
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
20 Jun 2015 09:55 PM
wow thx
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
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
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
20 Jun 2015 09:58 PM
oooo yesss!

thank you warspy
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
20 Jun 2015 10:02 PM
np, glad I could help.
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
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
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
20 Jun 2015 10:06 PM
pls h3lp
Report Abuse
CUBES4LIFE is not online. CUBES4LIFE
Joined: 22 Jun 2009
Total Posts: 4956
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
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
20 Jun 2015 10:08 PM
yes gud idea. i hope someone can find a solution so i dont get skammed
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
20 Jun 2015 10:14 PM
bump.
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
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
Emeraldite is not online. Emeraldite
Joined: 08 Mar 2015
Total Posts: 1246
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
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
20 Jun 2015 10:50 PM
aight i'll try that.
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
20 Jun 2015 10:52 PM
wait...

does kohl's admin need to be in a module script?
Report Abuse
Emeraldite is not online. Emeraldite
Joined: 08 Mar 2015
Total Posts: 1246
20 Jun 2015 10:52 PM
Scratch that, this is if you wanted to script your entire own admin.


hurhurhurhur O_o
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
20 Jun 2015 10:54 PM
emerald

ik xd

i actually figured it out. :)

thanks soooo much warspy
Report Abuse
Emeraldite is not online. Emeraldite
Joined: 08 Mar 2015
Total Posts: 1246
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
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
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
nicemike40 is not online. nicemike40
Joined: 19 Dec 2008
Total Posts: 1814
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
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
20 Jun 2015 11:15 PM
ARE YOU MENTALLY CHALLENGED?
Report Abuse
Emeraldite is not online. Emeraldite
Joined: 08 Mar 2015
Total Posts: 1246
20 Jun 2015 11:15 PM
Where do I put return math?

In the module script?


hurhurhurhur O_o
Report Abuse
nicemike40 is not online. nicemike40
Joined: 19 Dec 2008
Total Posts: 1814
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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