Advertisement
Sharkkkkkk

gg

Dec 13th, 2020 (edited)
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. local v = Drawing.new("Circle")
  2. cam = workspace.CurrentCamera
  3. v.Position = Vector2.new(cam.ViewportSize.X / 2, cam.ViewportSize.Y / 2)
  4. v.Radius = 100
  5. v.Color = Color3.new(1, 1, 1)
  6. v.Thickness = 2.5
  7. v.Filled = false
  8. v.Transparency = 1
  9. v.NumSides = 15
  10. v.Visible = true
  11. function UpdatefovSize(w)
  12. v.Radius = w * 23
  13. E = w
  14. end
  15. UpdatefovSize(4.5)
  16. local F = game:GetService("Players").LocalPlayer
  17. local u = F:GetMouse()
  18. local G = false
  19. local H = game:GetService("UserInputService")
  20. local I = game:GetService("RunService")
  21. local J = game:GetService("Players")
  22. local K = game:GetService("StarterGui")
  23. local L = J.LocalPlayer
  24. local M = I:IsStudio()
  25. local N = game.CoreGui
  26. local O = L:GetMouse()
  27. local P = O.Icon
  28. local Q = workspace.CurrentCamera
  29. targetpart = "Head"
  30. local function getClosestPlayer()
  31. lowest = math.huge
  32. pcall(
  33. function()
  34. for x, y in next, J:GetPlayers() do
  35. if y.Name ~= L.Name and y.Character ~= nil and y.Character:FindFirstChild(targetpart) then
  36. local z = Q:WorldToScreenPoint(y.Character[targetpart].Position)
  37. local A = (Vector2.new(O.X, O.Y) - Vector2.new(z.X, z.Y)).magnitude
  38. if z.Z > 0 and A <= Q.ViewportSize.X / (90 / E) and A < lowest then
  39. lowest = A
  40. closestPlayer = y
  41. end
  42. end
  43. end
  44. end
  45. )
  46. return closestPlayer
  47. end
  48. game:GetService("UserInputService").InputBegan:Connect(
  49. function(R, S)
  50. if not S and R.KeyCode == Enum.KeyCode.H then
  51. G = not G
  52. end
  53. end
  54. )
  55. local T = getrawmetatable(game)
  56. local U = T.__index
  57. local V = T.__namecall
  58. if setreadonly then
  59. setreadonly(T, false)
  60. else
  61. make_writeable(T, true)
  62. end
  63. local W = getnamecallmethod or get_namecall_method
  64. local X = newcclosure or function(Y)
  65. return Y
  66. end
  67. T.__index =
  68. X(
  69. function(Z, _)
  70. if Z == u and tostring(_) == "Hit" then
  71. if
  72. getClosestPlayer() ~= nil and getClosestPlayer().Character and
  73. getClosestPlayer().Character:FindFirstChild("Head")
  74. then
  75. return getClosestPlayer().Character.LowerTorso.CFrame
  76. end
  77. end
  78. return U(Z, _)
  79. end
  80. )
  81. end
  82. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement