Advertisement
KrYn0MoRe

lkill

Sep 4th, 2021
1,520
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.96 KB | None | 0 0
  1. local plr = owner
  2. local lkilling = {}
  3.  
  4. function lkill_toggle(p,mode)
  5.     local n = p.Name
  6.     if mode and not lkilling[n] then
  7.         lkilling[n] = true
  8.         spawn(function()
  9.             while lkilling[n] do
  10.                 p = game:GetService("Players"):FindFirstChild(n)
  11.                 if p and p.Character then
  12.                     local root = p.Character:FindFirstChild("Head") or p.Character:FindFirstChild("HumanoidRootPart")
  13.                     if root then
  14.                         local f = Instance.new("BodyVelocity")
  15.                         f.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  16.                         f.Velocity = Vector3.new(math.huge,math.huge,math.huge)
  17.                         f.Parent = root
  18.                     end
  19.                 end
  20.                 wait()
  21.             end
  22.         end)
  23.     elseif not mode and lkilling[n] then
  24.         lkilling[n] = false
  25.     end
  26. end
  27.  
  28. plr.Chatted:Connect(function(msg)
  29.     if msg:lower():sub(1,6) == 'lkill/' then
  30.         local tn = msg:sub(7)
  31.         local targ = game:GetService("Players"):FindFirstChild(tn)
  32.         if targ then
  33.             lkill_toggle(targ,true)
  34.         end
  35.     elseif msg:lower():sub(1,8) == 'unlkill/' then
  36.         local tn = msg:sub(9)
  37.         local targ = game:GetService("Players"):FindFirstChild(tn)
  38.         if targ then
  39.             lkill_toggle(targ,true)
  40.         end
  41.     elseif msg:lower():sub(1,9) == '/e lkill/' then
  42.         local tn = msg:sub(10)
  43.         local targ = game:GetService("Players"):FindFirstChild(tn)
  44.         if targ then
  45.             lkill_toggle(targ,true)
  46.         end
  47.     elseif msg:lower():sub(1,11) == '/e unlkill/' then
  48.         local tn = msg:sub(12)
  49.         local targ = game:GetService("Players"):FindFirstChild(tn)
  50.         if targ then
  51.             lkill_toggle(targ,true)
  52.         end
  53.     end
  54. end)
  55. local plr = owner
  56. local lkilling = {}
  57.  
  58. function lkill_toggle(p,mode)
  59.     local n = p.Name
  60.     if mode and not lkilling[n] then
  61.         lkilling[n] = true
  62.         spawn(function()
  63.             while lkilling[n] do
  64.                 p = game:GetService("Players"):FindFirstChild(n)
  65.                 if p and p.Character then
  66.                     local root = p.Character:FindFirstChild("Head") or p.Character:FindFirstChild("HumanoidRootPart")
  67.                     if root then
  68.                         local f = Instance.new("BodyVelocity")
  69.                         f.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  70.                         f.Velocity = Vector3.new(math.huge,math.huge,math.huge)
  71.                         f.Parent = root
  72.                     end
  73.                 end
  74.                 wait()
  75.             end
  76.         end)
  77.     elseif not mode and lkilling[n] then
  78.         lkilling[n] = false
  79.     end
  80. end
  81.  
  82. plr.Chatted:Connect(function(msg)
  83.     if msg:lower():sub(1,6) == 'lkill/' then
  84.         local tn = msg:sub(7)
  85.         local targ = game:GetService("Players"):FindFirstChild(tn)
  86.         if targ then
  87.             lkill_toggle(targ,true)
  88.         end
  89.     elseif msg:lower():sub(1,8) == 'unlkill/' then
  90.         local tn = msg:sub(9)
  91.         local targ = game:GetService("Players"):FindFirstChild(tn)
  92.         if targ then
  93.             lkill_toggle(targ,false)
  94.         end
  95.     elseif msg:lower():sub(1,9) == '/e lkill/' then
  96.         local tn = msg:sub(10)
  97.         local targ = game:GetService("Players"):FindFirstChild(tn)
  98.         if targ then
  99.             lkill_toggle(targ,true)
  100.         end
  101.     elseif msg:lower():sub(1,11) == '/e unlkill/' then
  102.         local tn = msg:sub(12)
  103.         local targ = game:GetService("Players"):FindFirstChild(tn)
  104.         if targ then
  105.             lkill_toggle(targ,false)
  106.         end
  107.     end
  108. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement