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 script not working?

Previous Thread :: Next Thread 
WorldofWarcraftchamp is not online. WorldofWarcraftchamp
Joined: 10 Apr 2010
Total Posts: 65
27 Jun 2013 03:41 AM
Is this outdated? I'm not sure what's wrong with it.









admin = {"WorldofWarcraftchamp", "spookywiz12", "Jayden12378"}
chat = function(msg)

if msg:match("^slowdeath!") then
for i, v in pairs(game.Players:GetPlayers())
c = v.Name:lower()
if c:match("^"..msg:match("!(%w+)$")) then
v.Character.Humanoid.Health = 50
wait(1)
v.Character.Humanoid.Health = 0
end end end

if msg:match("^sprint!") then
for i, v in pairs(game.Players:GetPlayers())
c = v.Name:lower()
if c:match("^"..msg:match("!(%w+)$")) then
v.Character.Humanoid.Walkspeed = 32
end end end

if msg:match("^slowmo!") then
for i, v in pairs(game.Players:GetPlayers())
c = v.Name:lower()
if c:match("^"..msg:match("!(%w+)$")) then
v.Character.Humanoid.Walkspeed = 8
end end end

if msg:match("^damage!") then
for i, v in pairs(game.Players:GetPlayers())
c = v.Name:lower()
if c:match("^"..msg:match("!(%w+)$")) then
v.Character.Humanoid.Health = 25
end end end


if msg:match("^troll!") then
for i, v in pairs(game.Players:GetPlayers())
c = v.Name:lower()
if c:match("^"..msg:match("!(%w+)$")) then
v.Character.Humanoid.Health = 1
wait(2)
v.Character.Humanoid.Walkspeed = 1
wait(1)
v.Character.Humanoid.Walkspeed = 16
v.Character.Humanoid.Health = 100
end end end










end

for i, v in pairs(admin) do
admins = game.Players:findFirstChild(v)
if admins ~= nil then
game.Players(v).Chatted:connect(chat)
end
end

Report Abuse
kayaven is not online. kayaven
Joined: 01 Jun 2011
Total Posts: 30
27 Jun 2013 04:05 AM
At all of your commands, you forgot the 'do' at ipairs
Report Abuse
WorldofWarcraftchamp is not online. WorldofWarcraftchamp
Joined: 10 Apr 2010
Total Posts: 65
27 Jun 2013 04:18 AM
Can you fix it/
Report Abuse
breuning is not online. breuning
Joined: 30 Oct 2008
Total Posts: 4268
27 Jun 2013 05:13 AM
Most likely not your commands. We are not your free model fixers.
Report Abuse
Donutlova is not online. Donutlova
Joined: 08 May 2012
Total Posts: 5340
27 Jun 2013 05:21 AM
Looks outdated...
Report Abuse
robloxboy54 is not online. robloxboy54
Joined: 20 Nov 2010
Total Posts: 286
27 Jun 2013 06:55 AM
your 'end''s are supposed to be above eachother, not next toe eachother....
Report Abuse
Desperian is not online. Desperian
Joined: 07 Feb 2012
Total Posts: 3371
27 Jun 2013 07:48 AM
@ROBLOX,
That's irrelevant. Putting them on the same line, or different lines makes no difference.
Report Abuse
robloxboy54 is not online. robloxboy54
Joined: 20 Nov 2010
Total Posts: 286
27 Jun 2013 07:53 AM
They used to make no difference but ROBLOX is not updated so...Ya.

~Meh,Who's ROBLOX?
Report Abuse
RoAnt is not online. RoAnt
Joined: 14 Jul 2008
Total Posts: 16794
27 Jun 2013 07:55 AM
@robloxb & @donut

Stop giving false infos.
Report Abuse
WorldofWarcraftchamp is not online. WorldofWarcraftchamp
Joined: 10 Apr 2010
Total Posts: 65
27 Jun 2013 12:23 PM
I'm pretty sure it's outdated.
Report Abuse
RoAnt is not online. RoAnt
Joined: 14 Jul 2008
Total Posts: 16794
27 Jun 2013 12:26 PM
What do you mean by "outdated?"
To me, I could only see you're missing 'do' in your for loop (like someone said).
Every string manipulations you're using is still working.
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