|
| 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
|
  |
| 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 |
|
|
| |
|
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
|
  |
| Joined: 08 May 2012 |
| Total Posts: 5340 |
|
| |
|
|
| 27 Jun 2013 06:55 AM |
| your 'end''s are supposed to be above eachother, not next toe eachother.... |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| Joined: 14 Jul 2008 |
| Total Posts: 16794 |
|
|
| 27 Jun 2013 07:55 AM |
@robloxb & @donut
Stop giving false infos. |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2013 12:23 PM |
| I'm pretty sure it's outdated. |
|
|
| Report Abuse |
|
|
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 |
|
|