Advertisement
b1ahmed

BIG Paintball TP Kill

Nov 18th, 2019
24,205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. local on = true
  2.  
  3. local plrs = game:GetService("Players")
  4. local lp = plrs.LocalPlayer
  5. local lpname = lp.Name
  6.  
  7.  
  8. game:GetService("StarterGui"):SetCore("SendNotification", {
  9. Title = "Controls";
  10. Text = "i to toggle. By ScriptX#3145";
  11. })
  12.  
  13.  
  14. lp:GetMouse().KeyDown:Connect(function(key)
  15. if key == "i" then
  16. if on then
  17. on = false
  18. game:GetService("StarterGui"):SetCore("SendNotification", {
  19. Title = "Toggled Off";
  20. Text = "";
  21. })
  22. else
  23. on = true
  24. game:GetService("StarterGui"):SetCore("SendNotification", {
  25. Title = "Toggled On";
  26. Text = "";
  27. })
  28. end
  29. end
  30. end)
  31.  
  32. while wait() do
  33. for i,v in pairs(plrs:GetChildren()) do
  34. if v.Name ~= lpname then
  35. if v.Team == nil or v.Team ~= lp.Team then
  36. repeat wait()
  37. local check = false
  38. local check2 = false
  39. local spawned = false
  40. local check = game.Workspace:FindFirstChild(v.Name)
  41. if check ~= nil then check2 = check:FindFirstChild("HumanoidRootPart") end
  42. if check2 ~= nil then spawned = v:FindFirstChild("__SPAWNED") end
  43.  
  44. if on and spawned ~= nil then
  45. game.Workspace:WaitForChild(lpname):WaitForChild("HumanoidRootPart").CFrame = game.Workspace:WaitForChild(v.Name):WaitForChild("HumanoidRootPart").CFrame + game.Workspace:WaitForChild(v.Name):WaitForChild("HumanoidRootPart").CFrame.lookVector * -2 + game.Workspace:WaitForChild(v.Name):WaitForChild("HumanoidRootPart").CFrame.upVector * 1.6
  46. end
  47. until game.Workspace:WaitForChild(v.Name):WaitForChild("Humanoid").Health == 0
  48. end
  49. end
  50. end
  51. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement