Adel987654321

Knife Simulator | Aimbot

Feb 25th, 2020
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. ScreenGui = Instance.new("ScreenGui")
  2. Frame = Instance.new("Frame")
  3. click = Instance.new("TextButton")
  4. exit = Instance.new("TextButton")
  5.  
  6. ScreenGui.Parent = game.CoreGui
  7.  
  8. Frame.Parent = ScreenGui
  9. Frame.BackgroundColor3 = Color3.new(0.780392, 0.780392, 0.780392)
  10. Frame.BorderColor3 = Color3.new(1, 0, 0)
  11. Frame.BorderSizePixel = 4
  12. Frame.Position = UDim2.new(0.391674548, 0, 0.267045468, 0)
  13. Frame.Size = UDim2.new(0, 288, 0, 136)
  14.  
  15. click.Name = "click"
  16. click.Parent = Frame
  17. click.BackgroundColor3 = Color3.new(0.278431, 0.278431, 0.278431)
  18. click.BorderColor3 = Color3.new(1, 0, 0)
  19. click.BorderSizePixel = 2
  20. click.Position = UDim2.new(0.0416666679, 0, 0.110294119, 0)
  21. click.Size = UDim2.new(0, 264, 0, 50)
  22. click.Font = Enum.Font.SourceSans
  23. click.FontSize = Enum.FontSize.Size14
  24. click.Text = "Click for Aimbot"
  25. click.TextColor3 = Color3.new(1, 1, 1)
  26. click.TextScaled = true
  27. click.TextSize = 14
  28. click.TextWrapped = true
  29.  
  30. exit.Name = "exit"
  31. exit.Parent = Frame
  32. exit.BackgroundColor3 = Color3.new(1, 1, 1)
  33. exit.BorderColor3 = Color3.new(1, 0, 0)
  34. exit.BorderSizePixel = 2
  35. exit.Position = UDim2.new(0.152777776, 0, 0.683823526, 0)
  36. exit.Size = UDim2.new(0, 200, 0, 38)
  37. exit.Font = Enum.Font.SourceSans
  38. exit.FontSize = Enum.FontSize.Size14
  39. exit.Text = "Exit"
  40. exit.TextColor3 = Color3.new(0, 0, 0)
  41. exit.TextScaled = true
  42. exit.TextSize = 14
  43. exit.TextWrapped = true
  44.  
  45. click.MouseButton1Click:connect(function()
  46. local plrs = game:service("Players")
  47. local ms = plrs.LocalPlayer:GetMouse()
  48. local nearest = function()
  49. local plr,dist = nil,5000
  50. for k,l in pairs(plrs:GetPlayers()) do
  51. local pos = l.Character:GetPrimaryPartCFrame().p
  52. local len = (ms.Hit.p - pos).Magnitude
  53. if len <= dist then
  54. plr = l
  55. dist = len
  56. end
  57. end
  58. return plr.Character:GetPrimaryPartCFrame().p
  59. end
  60. workspace.CurrentCamera.trash.ChildAdded:connect(function(c)
  61. c.CFrame = CFrame.new(nearest())
  62. end)
  63. end)
  64.  
  65. exit.MouseButton1Click:connect(function()
  66. ScreenGui:Destroy()
  67. end)
Add Comment
Please, Sign In to add comment