Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local v = Drawing.new("Circle")
- cam = workspace.CurrentCamera
- v.Position = Vector2.new(cam.ViewportSize.X / 2, cam.ViewportSize.Y / 2)
- v.Radius = 100
- v.Color = Color3.new(1, 1, 1)
- v.Thickness = 2.5
- v.Filled = false
- v.Transparency = 1
- v.NumSides = 15
- v.Visible = true
- function UpdatefovSize(w)
- v.Radius = w * 23
- E = w
- end
- UpdatefovSize(4.5)
- local F = game:GetService("Players").LocalPlayer
- local u = F:GetMouse()
- local G = false
- local H = game:GetService("UserInputService")
- local I = game:GetService("RunService")
- local J = game:GetService("Players")
- local K = game:GetService("StarterGui")
- local L = J.LocalPlayer
- local M = I:IsStudio()
- local N = game.CoreGui
- local O = L:GetMouse()
- local P = O.Icon
- local Q = workspace.CurrentCamera
- targetpart = "Head"
- local function getClosestPlayer()
- lowest = math.huge
- pcall(
- function()
- for x, y in next, J:GetPlayers() do
- if y.Name ~= L.Name and y.Character ~= nil and y.Character:FindFirstChild(targetpart) then
- local z = Q:WorldToScreenPoint(y.Character[targetpart].Position)
- local A = (Vector2.new(O.X, O.Y) - Vector2.new(z.X, z.Y)).magnitude
- if z.Z > 0 and A <= Q.ViewportSize.X / (90 / E) and A < lowest then
- lowest = A
- closestPlayer = y
- end
- end
- end
- end
- )
- return closestPlayer
- end
- game:GetService("UserInputService").InputBegan:Connect(
- function(R, S)
- if not S and R.KeyCode == Enum.KeyCode.H then
- G = not G
- end
- end
- )
- local T = getrawmetatable(game)
- local U = T.__index
- local V = T.__namecall
- if setreadonly then
- setreadonly(T, false)
- else
- make_writeable(T, true)
- end
- local W = getnamecallmethod or get_namecall_method
- local X = newcclosure or function(Y)
- return Y
- end
- T.__index =
- X(
- function(Z, _)
- if Z == u and tostring(_) == "Hit" then
- if
- getClosestPlayer() ~= nil and getClosestPlayer().Character and
- getClosestPlayer().Character:FindFirstChild("Head")
- then
- return getClosestPlayer().Character.LowerTorso.CFrame
- end
- end
- return U(Z, _)
- end
- )
- end
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement