mickymack
|
  |
| Joined: 27 Jul 2008 |
| Total Posts: 19 |
|
|
| 08 Jan 2012 02:40 PM |
I see no problem.
UserName = "mickymack" C = "/" Admin = game:service("Players"):findFirstChild(UserName)
function onChat(msg) if string.sub(msg, 1, 7 + #C) == "explode"..C then m = string.lower(msg, 8 + #C) z = game:service("Players"):children() for x = 1, #z do if string.find(string.lower(z[x].Name), string.sub(m, 8)) == 1 then if z[x] ~= nil then E = Instance.new("Explosion") E.Parent = z[x].Character.Torso E.BlastPressure = 20 E.BlastRadius = 5 E.Position = z[x].Character.Torso.Position end end end end if string.sub(msg, 1, 6 + #C) == "freeze"..C then m = string.lower(msg, 7 + #C) z = game:service("Players"):children() for x = 1, #z do if string.find(string.lower(z[x].Name), string.sub(m, 7)) == 1 then if z[x] ~= nil then char = z[x].Character:children() for c = 1, #char do if char[c]:IsA("BasePart") then char[c].Anchored = true end end end end end end if string.sub(msg, 1, 4 + #C) == "thaw"..C then m = string.lower(msg, 5 + #C) z = game:service("Players"):children() for x = 1, #z do if string.find(string.lower(z[x].Name), string.sub(m, 5)) == 1 then if z[x] ~= nil then char = z[x].Character:children() for c = 1, #char do if char[c]:IsA("BasePart") then char[c].Anchored = false end end end end end end if string.sub(msg, 1, 2 + #C) == "ff"..C then m = string.lower(msg, 3 + #C) z = game:service("Players"):children() for x = 1, #z do if string.find(string.lower(z[x].Name), string.sub(m, 3)) == 1 then if z[x] ~= nil then ff = Instance.new("ForceField") ff.Parent = z[x].Character end end end end end
Admin.Chatted:connect(onChat) |
|
|
| Report Abuse |
|