Advertisement
Guest User

slapnuts

a guest
Nov 14th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.14 KB | None | 0 0
  1. plr = game.Players.LocalPlayer
  2. chr = plr.Character
  3. mouse = plr:GetMouse()
  4. chr.Humanoid.WalkSpeed = 30
  5. flying = false;
  6. tor = chr.Torso;
  7. purge = false;
  8. teams = game:GetService('Teams');
  9. typing = false;
  10. bg = Instance.new("BodyGyro",tor);
  11. speed = Instance.new("Vector3Value",chr);
  12. speed.Value = Vector3.new(0,.1,0);
  13. --[[ESPBEGIN]]
  14. function esp()
  15. while true do
  16. plrs = game.Players;
  17. for _, v in pairs(plrs:GetChildren()) do
  18. if v.TeamColor ~= plrs.LocalPlayer.TeamColor and not v.Character.Head:FindFirstChild("SurfaceGui") then -- ~=
  19. for x = 0,5 do
  20. i = Instance.new("SurfaceGui",v.Character.Head)
  21. i.CanvasSize = Vector2.new(800,600)
  22. i.Adornee = v.Character.Head
  23. i.Face = x
  24. i.Enabled = true
  25. i.Active = true
  26. i.AlwaysOnTop = true
  27. h = Instance.new("Frame",i)
  28. h.Size = UDim2.new(1,0,1,0)
  29. h.AnchorPoint = Vector2.new(0, 0)
  30. h.BackgroundColor3 = Color3.new(0,0,1)
  31. h.BorderSizePixel = 0
  32. h.BackgroundTransparency = .25
  33. end
  34. end
  35. end
  36. wait(10);
  37. end
  38. end
  39. spawn(esp);
  40. --[[ESP END]]
  41. function magnet(v)--enemy telelport function
  42. while purge == true do
  43. wait(1);
  44. v.Character.HumanoidRootPart.Transparency = 0
  45. v.Character.HumanoidRootPart.Anchored = true
  46. v.Character.HumanoidRootPart.CFrame = plr.Character.HumanoidRootPart.CFrame*CFrame.new(2,0,0)
  47. end
  48. end
  49.  
  50. mouse.KeyDown:connect(function(key)--flying
  51. if key == 'w' and flying then
  52. speed.Value = mouse.Hit.lookVector*50
  53. mouse.KeyUp:connect(function(key)
  54. if key == 'w' then
  55. tor.BodyVelocity:Destroy();
  56. end
  57. end)
  58. end
  59. end)
  60. function booberbole()--flying
  61. while flying == true do
  62. bv = Instance.new('BodyVelocity',tor);
  63. bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge);
  64. bv.Velocity = Vector3.new(0,0,0);
  65. game:GetService('RunService').RenderStepped:wait()
  66. bv.Velocity = speed.Value
  67. bg.CFrame = CFrame.new(chr.Torso.Position,mouse.Hit.p) * CFrame.Angles(0,math.rad(-90),0)
  68. end
  69. end
  70.  
  71. mouse.KeyDown:connect(function(key)
  72. if key == 'q' and not flying then--flying
  73. flying = true;
  74. spawn(booberbole)
  75. elseif key == 'q' and flying then
  76. flying = false;
  77. elseif key == 'z' and mouse.Target then
  78. local t = mouse.Target;
  79. local h = t.Parent:FindFirstChild('Humanoid')
  80. if h then
  81. h.Changed:connect(function()
  82. if h.Health == 0 then
  83. workspace.CurrentCamera.CameraSubject = chr.Torso;
  84. end
  85. end)
  86. workspace.CurrentCamera.CameraSubject = h.Parent.Torso;
  87. end
  88. elseif key == 'x' then
  89. workspace.CurrentCamera.CameraSubject = chr.Torso;
  90. elseif key == 'm' and not purge then
  91. purge = true;
  92. for _,v in pairs(game.Players:GetChildren()) do
  93. if v.Name ~= plr.Name and v.Team ~= teams.Americans and v.Team ~= teams.Visitors and v.Team ~= teams.Prisoners and purge == true then
  94. spawn(magnet(v));
  95. end
  96. end
  97. elseif key == 'm' and purge then
  98. purge = false;
  99. elseif key == 'e' and mouse.Target~=nil then
  100. local t = mouse.Target;
  101. t:Destroy();
  102. end
  103. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement