Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plr = game.Players.LocalPlayer
- char = plr.Character
- commands = {"kill", "speed", "ff", "god", "destroy", "tp", "hp", "loopkill"}
- plr.Chatted:connect(function(msg)
- if msg:sub(0, #commands[1]) == commands[1] then
- local var1 = msg:sub(msg:find(" ")+1, 10000)
- for i,v in pairs(workspace:GetChildren()) do
- if v.Name:lower():find(var1:lower()) and v:FindFirstChild("Humanoid") then
- v.Humanoid.Health = -10
- end
- end
- elseif msg:sub(0, #commands[2]) == commands[2] then
- local var1 = msg:sub(msg:find(" ")+1, msg:find(" ", msg:find(" ")))
- local var2 = msg:sub(msg:find(" ", msg:find(" ")+1)+1, 2000)
- for i,v in pairs(workspace:GetChildren()) do
- if v.Name:lower():find(var1:lower()) and v:FindFirstChild("Humanoid") then
- v.Humanoid.WalkSpeed = tonumber(var2)
- end
- end
- elseif msg:sub(0, #commands[5]) == commands[5] then
- local var1 = msg:sub(msg:find(" ")+1, 10000)
- if var1:lower() == "all" then
- for i,v in pairs(workspace:GetChildren()) do
- if v:FindFirstChild("Humanoid") then
- v:Destroy()
- end
- end
- elseif var1:lower() == "others" then
- for i,v in pairs(workspace:GetChildren()) do
- if v.Name ~= char.Name and v:FindFirstChild("Humanoid") then
- v:Destroy()
- end
- end
- else
- for i,v in pairs(workspace:GetChildren()) do
- if v.Name:lower():find(var1:lower()) and v:FindFirstChild("Humanoid") then
- v:Destroy()
- end
- end
- end
- elseif msg:sub(0, #commands[6]) == commands[6] then
- local var1 = msg:sub(msg:find(" ")+1, msg:find(" ", msg:find(" ")))
- local var2 = msg:sub(msg:find(" ", msg:find(" ")+1)+1, 2000)
- for i,v in pairs(workspace:GetChildren()) do
- if v.Name:sub(0, #var1):lower() == var1:lower() and v:FindFirstChild("Humanoid") then
- for i,x in pairs(workspace:GetChildren()) do
- if v.Name:sub(0, #var2):lower() == var2:lower() and x:FindFirstChild("Humanoid") then
- print("OK???")
- v.HumanoidRootPart.CFrame = x.HumanoidRootPart.CFrame
- end
- end
- end
- end
- elseif msg:sub(0, #commands[7]) == commands[7] then
- local var1 = msg:sub(msg:find(" ")+1, msg:find(" ", msg:find(" ")))
- local var2 = msg:sub(msg:find(" ", msg:find(" ")+1)+1, 2000)
- for i,v in pairs(workspace:GetChildren()) do
- if v.Name:lower():find(var1:lower()) and v:FindFirstChild("Humanoid") then
- v.Humanoid.MaxHealth = var2
- end
- end
- elseif msg:sub(0, #commands[8]) == commands[8] then
- local var1 = msg:sub(msg:find(" ")+1, 10000)
- for i,v in pairs(workspace:GetChildren()) do
- if v.Name:lower():find(var1:lower()) and v:FindFirstChild("Humanoid") then
- while wait(5) do
- v.Humanoid.Health = -10
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement