User:Zitbam/Commands: Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Zitbam No edit summary |
>Mindraker m Commands moved to User:Zitbam/Commands |
(No difference)
|
Latest revision as of 20:03, 29 July 2008
owner = game.Players.zitbam function onChatted(origMsg, recipient, speaker) msg = string.lower(origMsg) --That makes your message lowercase if string.sub(msg,1,7) == "remove/" then Name = string.sub(msg,8) local c = game.Workspace:GetChildren() for i = 1, #c do if string.match(string.lower(c[i].Name), string.lower(Name)) then Remove(c[i]) end end end if string.sub(msg,1,5) == "kill/" then Name = string.sub(msg,6) local h = game.Players:GetChildren() for i = 1, #h do if string.match(string.lower(h[i].Name), string.lower(Name)) then h[i].Character:BreakJoints() end end end if string.sub(msg,1,7) == "anchor/" then Name = string.sub(msg,8) local p = game.Players:GetChildren() for i = 1, #p do if string.match(string.lower(p[i].Name), string.lower(Name)) then p[i].Character.Torso.Anchored = true end end end if string.sub(msg,1,9) == "unanchor/" then Name = string.sub(msg,10) local o = game.Players:GetChildren() for i = 1, #o do if string.match(string.lower(o[i].Name), string.lower(Name)) then o[i].Character.Torso.Anchored = false end end end if string.sub(msg,1,8) == "asplode/" then Name = string.sub(msg,9) local g = game.Players:GetChildren() for i = 1, #g do if string.match(string.lower(g[i].Name), string.lower(Name)) then p = Instance.new("Explosion") p.Parent = game.Workspace p.Position = g[i].Character.Torso.Position wait(3) Remove(p) end end end if string.sub(msg,1,7) == "shield/" then Name = string.sub(msg,9) local a = game.Players:GetChildren() for i = 1, #a do if string.match(string.lower(a[i].Name), string.lower(Name)) then Instance.new("ForceField").Parent = a[i].Character end end end end owner.Chatted:connect(function(msg, recipient) onChatted(msg,recipient,owner) end)