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
 

Re: Admin scripting, simple kill command

Previous Thread :: Next Thread 
builderman1171 is not online. builderman1171
Joined: 27 Mar 2010
Total Posts: 1595
01 Jan 2012 09:41 AM
I found this on the ROBLOX wiki. But was told it wouldn't work. What i'm looking for is a scritp that is NOT case sensitive, BUT does NOT accept shortened names. This is what I have.

local isAdmin = {["OBF"] = true, ["ArceusInator"] = true, ["amanda12895"] = true}function findPlayer(name) for _, player in pairs(game.Players:GetPlayers()) do if player.Name:lower() == name:lower() then return player end end return nilendfunction onChatted(message, player) if message:sub(1, 5) == "kill/" and isAdmin[player.Name] then victim = findPlayer(message:sub(6)) if victim ~= nil then victim.Character:BreakJoints() end endendgame.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(message) onChatted(message, player) end)end)
Report Abuse
builderman1171 is not online. builderman1171
Joined: 27 Mar 2010
Total Posts: 1595
01 Jan 2012 09:42 AM
Fix on the script:

local isAdmin = {["OBF"] = true, ["ArceusInator"] = true, ["amanda12895"] = true}

function findPlayer(name)
for _, player in pairs(game.Players:GetPlayers()) do
if player.Name:lower() == name:lower() then
return player
end
end
return nil
end

function onChatted(message, player)
if message:sub(1, 5) == "kill/" and isAdmin[player.Name] then
victim = findPlayer(message:sub(6))
if victim ~= nil then
victim.Character:BreakJoints()
end
end
end

game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(message) onChatted(message, player) end)
end)
Report Abuse
MyrcoMyrcoMyrcoMyrco is not online. MyrcoMyrcoMyrcoMyrco
Joined: 03 Sep 2011
Total Posts: 1013
01 Jan 2012 10:24 AM
You shouldn't use Free Models =/

~Myrco; Music lover, nederlands/dutch and a programmer
Report Abuse
C0D3Y is not online. C0D3Y
Joined: 24 Jul 2010
Total Posts: 1692
01 Jan 2012 10:25 AM
Myrco, we encourage using the Wiki though...
Report Abuse
MyrcoMyrcoMyrcoMyrco is not online. MyrcoMyrcoMyrcoMyrco
Joined: 03 Sep 2011
Total Posts: 1013
01 Jan 2012 10:26 AM
The wiki is there to show an example and point you into a good direction. It is not like 'Uh lulz y u no copeh mah source?'.

~Myrco; Music lover, nederlands/dutch and a programmer
Report Abuse
builderman1171 is not online. builderman1171
Joined: 27 Mar 2010
Total Posts: 1595
01 Jan 2012 11:17 AM
@Mycro

Thanks for helping me bro. But, I got this from the frickin Wiki. Google:
How to make admin commands for ROBLOX, and like the first link is one ot the roblox wiki. So don't go ahead and acuse me of free modeling. Now, anyon want to help me?
Report Abuse
MyrcoMyrcoMyrcoMyrco is not online. MyrcoMyrcoMyrcoMyrco
Joined: 03 Sep 2011
Total Posts: 1013
01 Jan 2012 11:23 AM
Oops, my senses are feeling upcoming anger from a noob....

~Myrco; Music lover, nederlands/dutch and a programmer
Report Abuse
builderman1171 is not online. builderman1171
Joined: 27 Mar 2010
Total Posts: 1595
01 Jan 2012 11:29 AM
@Mycro.

I'm definitely not a noob. If you would like to go and be immature, go RIGHT ahead. Just stay of my thread, or help me.
Report Abuse
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
01 Jan 2012 11:32 AM
For your information builderman, Mycro wrote parts of the wiki. That's enough to prove you wrong since this came from the wiki.


And just saying. That script is gonna be absolute hell to try and add onto.
Report Abuse
builderman1171 is not online. builderman1171
Joined: 27 Mar 2010
Total Posts: 1595
01 Jan 2012 11:35 AM
-_-

You guy's are completely useless. I miss 2010, everyone was so nice and straight to the point.
Report Abuse
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
01 Jan 2012 11:37 AM
I miss 2008 when I had my old account. Back then, people actually tried to do something before asking for 'help'.

Whew, that CTRL + C and CTRL + V took forever, eh?
Report Abuse
builderman1171 is not online. builderman1171
Joined: 27 Mar 2010
Total Posts: 1595
01 Jan 2012 11:41 AM
Dark, I had an account in '08 too. But now these day's there are so many NEW people trying to just get on with their stupid game. I did try to edit this. And tried to make my own. Didn't work though. So, i then came for help.
Report Abuse
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
01 Jan 2012 11:42 AM
I just realized. You didn't even put your name in the script. How in the bloody hell do you plan to test that.
Report Abuse
builderman1171 is not online. builderman1171
Joined: 27 Mar 2010
Total Posts: 1595
01 Jan 2012 12:15 PM
Me and this other guy named xsitsu were talking about it and he was saying there was some error's and what not, we never tested it though. His edited version worked, but I could never get more commands in. It's a long story.
Report Abuse
DXPower is not online. DXPower
Joined: 21 Oct 2008
Total Posts: 2866
01 Jan 2012 12:36 PM
Me and my friend made completely original admin commands, yet, it is so much more efficient and organized than this one and Person299's one.
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