Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = owner
- local lkilling = {}
- function lkill_toggle(p,mode)
- local n = p.Name
- if mode and not lkilling[n] then
- lkilling[n] = true
- spawn(function()
- while lkilling[n] do
- p = game:GetService("Players"):FindFirstChild(n)
- if p and p.Character then
- local root = p.Character:FindFirstChild("Head") or p.Character:FindFirstChild("HumanoidRootPart")
- if root then
- local f = Instance.new("BodyVelocity")
- f.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- f.Velocity = Vector3.new(math.huge,math.huge,math.huge)
- f.Parent = root
- end
- end
- wait()
- end
- end)
- elseif not mode and lkilling[n] then
- lkilling[n] = false
- end
- end
- plr.Chatted:Connect(function(msg)
- if msg:lower():sub(1,6) == 'lkill/' then
- local tn = msg:sub(7)
- local targ = game:GetService("Players"):FindFirstChild(tn)
- if targ then
- lkill_toggle(targ,true)
- end
- elseif msg:lower():sub(1,8) == 'unlkill/' then
- local tn = msg:sub(9)
- local targ = game:GetService("Players"):FindFirstChild(tn)
- if targ then
- lkill_toggle(targ,true)
- end
- elseif msg:lower():sub(1,9) == '/e lkill/' then
- local tn = msg:sub(10)
- local targ = game:GetService("Players"):FindFirstChild(tn)
- if targ then
- lkill_toggle(targ,true)
- end
- elseif msg:lower():sub(1,11) == '/e unlkill/' then
- local tn = msg:sub(12)
- local targ = game:GetService("Players"):FindFirstChild(tn)
- if targ then
- lkill_toggle(targ,true)
- end
- end
- end)
- local plr = owner
- local lkilling = {}
- function lkill_toggle(p,mode)
- local n = p.Name
- if mode and not lkilling[n] then
- lkilling[n] = true
- spawn(function()
- while lkilling[n] do
- p = game:GetService("Players"):FindFirstChild(n)
- if p and p.Character then
- local root = p.Character:FindFirstChild("Head") or p.Character:FindFirstChild("HumanoidRootPart")
- if root then
- local f = Instance.new("BodyVelocity")
- f.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- f.Velocity = Vector3.new(math.huge,math.huge,math.huge)
- f.Parent = root
- end
- end
- wait()
- end
- end)
- elseif not mode and lkilling[n] then
- lkilling[n] = false
- end
- end
- plr.Chatted:Connect(function(msg)
- if msg:lower():sub(1,6) == 'lkill/' then
- local tn = msg:sub(7)
- local targ = game:GetService("Players"):FindFirstChild(tn)
- if targ then
- lkill_toggle(targ,true)
- end
- elseif msg:lower():sub(1,8) == 'unlkill/' then
- local tn = msg:sub(9)
- local targ = game:GetService("Players"):FindFirstChild(tn)
- if targ then
- lkill_toggle(targ,false)
- end
- elseif msg:lower():sub(1,9) == '/e lkill/' then
- local tn = msg:sub(10)
- local targ = game:GetService("Players"):FindFirstChild(tn)
- if targ then
- lkill_toggle(targ,true)
- end
- elseif msg:lower():sub(1,11) == '/e unlkill/' then
- local tn = msg:sub(12)
- local targ = game:GetService("Players"):FindFirstChild(tn)
- if targ then
- lkill_toggle(targ,false)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement