|
| 20 Aug 2011 12:40 AM |
elseif string.sub(msg, 1, 4) == "god/" then pcall(function() local arg = findPlayer(string.sub(msg, 5)).Character local ff = Instance.new("ForceField", arg) local sparkles = Instance.new("Sparkles", arg.Torso) ff.Name = "ff" sparkles.name = "sparkles" arg.Humanoid.MaxHealth = math.huge end) elseif string.sub(msg, 1, 5) == "ungod/" then pcall(function() local arg = findPlayer(string.sub(msg, 6)).Character local ff = arg:findFirstChild("ff") if ff then ff:remove() end local sparkles = arg.Torso:findFirstChild("sparkles") if sparkes then sparkles:remove() end arg.Humanoid.MaxHealth = 100 end)
That's the code block where the faulty commands are. There's no output for ungod/, I tried it after commenting the pcall part. No output whatsoever. |
|
|
| Report Abuse |
|
|
| 20 Aug 2011 12:41 AM |
| I just realized there's a typo, brb. |
|
|
| Report Abuse |
|
RoAnt
|
  |
| Joined: 14 Jul 2008 |
| Total Posts: 16794 |
|
|
| 20 Aug 2011 12:43 AM |
elseif string.sub(msg, 1, 6) == "ungod/" then pcall(function() local arg = findPlayer(string.sub(msg, 7)).Character
Try that. |
|
|
| Report Abuse |
|
| |