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
 

admin

Previous Thread :: Next Thread 
EmptyCooCooCola2 is not online. EmptyCooCooCola2
Joined: 27 Jul 2011
Total Posts: 7
07 Jun 2012 10:12 PM
How do i make a succesful admin script????
Report Abuse
ElectricAxel is not online. ElectricAxel
Joined: 15 May 2009
Total Posts: 16239
07 Jun 2012 10:13 PM
By scripting it, I'm positive its the only way.
Report Abuse
bananacupcake is not online. bananacupcake
Joined: 15 Jun 2010
Total Posts: 571
07 Jun 2012 10:14 PM
It's very complicated.

Stand on your head for 17 minutes. Then go bake cookies and feed them to a dragon. Once you've done that return with a deck of cards and perform a magic trick for the pope.

That should do it.
Report Abuse
1pie23 is not online. 1pie23
Joined: 11 Jul 2010
Total Posts: 1865
07 Jun 2012 10:24 PM
admins = {"Not you"}

game.Players.PlayerAdded:connect(function(p)
for k,v in pairs(admins) do
if v == p.Name then
end
end
end)
Report Abuse
Swordphin123 is not online. Swordphin123
Joined: 09 Apr 2008
Total Posts: 5234
07 Jun 2012 10:25 PM
Check the wiki. They have a full page about it.

wiki.roblox.com
Report Abuse
1pie23 is not online. 1pie23
Joined: 11 Jul 2010
Total Posts: 1865
07 Jun 2012 10:25 PM
Oops. I forgot to put stuff in it. Oh well...
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
07 Jun 2012 10:30 PM
Here's a simple one.

Administrators={"epicfail22","telamon"}
function IsAdmin(player)
for _, v in pairs(Administrators) do
if v:lower() == player.Name:lower() then
return true
end
end
end
Game:GetService("Players").PlayerAdded:connect(function(p)
if IsAdmin(p) then
p.Chatted:connect(function(text)
if text == "reset" then
p.Character:BreakJoints()
elseif text:sub(1,5) == "kill/" then
pcall(function() Game.Players[text:sub(6)].Character:BreakJoints() end)
elseif text:sub(1,4) == "ban/" then
pcall(function() Game.Players[text:sub(5)]:Destroy() end)
end
end)
end
end)
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