|
| 11 Jun 2014 05:39 AM |
P = game.Players.crazykidz10
function onChatted(msg, recipient, speaker) if msg == "Superjump" then local b = Instance.new("BodyForce") b.force = Vector3.new(0,2000,0) b.Parent = game.Workspace.amaz.Torso
elseif msg == "Reset" then game.Workspace.amaz.Humanoid.Health= 0
elseif msg == "God" then local f = Instance.new("ForceField") f.Parent = workspace.amaz game.Workspace.amaz.Torso.Reflectance = 1 game.Workspace.amaz.Head.Reflectance = 1 game.Workspace.amaz:FindFirstChild("Left Leg").Reflectance = 1 game.Workspace.amaz:FindFirstChild("Right Leg").Reflectance = 1 game.Workspace.amaz:FindFirstChild("Right Arm").Reflectance = 1 game.Workspace.amaz:FindFirstChild("Left Arm").Reflectance = 1 game.Workspace.amaz.Humanoid.MaxHealth= 0
end end
P.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, speaker) end)
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
Ceoh
|
  |
| Joined: 17 Nov 2013 |
| Total Posts: 152 |
|
|
| 11 Jun 2014 05:42 AM |
| Is there any error in the output? |
|
|
| Report Abuse |
|
|
| |
|
|
| 11 Jun 2014 05:51 AM |
| P.Chatted:connect(onChatted) |
|
|
| Report Abuse |
|
|
|
| 11 Jun 2014 05:52 AM |
This? P = game.Players.crazykidz10
function onChatted(msg, recipient, speaker) if msg == "Superjump" then local b = Instance.new("BodyForce") b.force = Vector3.new(0,2000,0) b.Parent = game.Workspace.amaz.Torso
elseif msg == "Reset" then game.Workspace.amaz.Humanoid.Health= 0
elseif msg == "God" then local f = Instance.new("ForceField") f.Parent = workspace.amaz game.Workspace.amaz.Torso.Reflectance = 1 game.Workspace.amaz.Head.Reflectance = 1 game.Workspace.amaz:FindFirstChild("Left Leg").Reflectance = 1 game.Workspace.amaz:FindFirstChild("Right Leg").Reflectance = 1 game.Workspace.amaz:FindFirstChild("Right Arm").Reflectance = 1 game.Workspace.amaz:FindFirstChild("Left Arm").Reflectance = 1 game.Workspace.amaz.Humanoid.MaxHealth= 0
end end
P.Chatted:connect(onChatted) (msg, recipient, speaker) end)
|
|
|
| Report Abuse |
|
|
|
| 11 Jun 2014 06:04 AM |
| No, remove that last line. |
|
|
| Report Abuse |
|
|
|
| 11 Jun 2014 06:21 AM |
P = game.Players.crazykidz10
function onChatted(msg, recipient, speaker) if msg == "Superjump" then local b = Instance.new("BodyForce") b.force = Vector3.new(0,2000,0) b.Parent = game.Workspace.amaz.Torso
elseif msg == "Reset" then game.Workspace.amaz.Humanoid.Health= 0
elseif msg == "God" then local f = Instance.new("ForceField") f.Parent = workspace.amaz game.Workspace.amaz.Torso.Reflectance = 1 game.Workspace.amaz.Head.Reflectance = 1 game.Workspace.amaz:FindFirstChild("Left Leg").Reflectance = 1 game.Workspace.amaz:FindFirstChild("Right Leg").Reflectance = 1 game.Workspace.amaz:FindFirstChild("Right Arm").Reflectance = 1 game.Workspace.amaz:FindFirstChild("Left Arm").Reflectance = 1 game.Workspace.amaz.Humanoid.MaxHealth= 0
end end
P.Chatted:connect(onChatted)
|
|
|
| Report Abuse |
|
|
| |
|
|
| 11 Jun 2014 06:35 AM |
Lemme improve it slightly...
Admins = {"crazykidz10", "warspyking"}
game.Players.PlayerAdded:connect(function(P) for _,v in ipairs(Admins) do if P.Name:lower() == v:lower() then P.Chatted:connect(function(msg, recipient, speaker) if msg == "Superjump" then local b = Instance.new("BodyForce") b.force = Vector3.new(0,2000,0) b.Parent = game.Workspace.amaz.Torso
elseif msg == "Reset" then game.Workspace.amaz.Humanoid.Health= 0
elseif msg == "God" then local f = Instance.new("ForceField") f.Parent = workspace.amaz game.Workspace.amaz.Torso.Reflectance = 1 game.Workspace.amaz.Head.Reflectance = 1 game.Workspace.amaz:FindFirstChild("Left Leg").Reflectance = 1 game.Workspace.amaz:FindFirstChild("Right Leg").Reflectance = 1 game.Workspace.amaz:FindFirstChild("Right Arm").Reflectance = 1 game.Workspace.amaz:FindFirstChild("Left Arm").Reflectance = 1 game.Workspace.amaz.Humanoid.MaxHealth= 0
end end) end end end) |
|
|
| Report Abuse |
|
|