FJABLIVRJNfA fnsafk TESTING NISEFD

public
vxpreen Jun 20, 2024 Never 121
Clone
Plaintext paste1.txt 65 lines (54 loc) | 2.28 KB
1
-- loadstring(game:HttpGet("https://pastecode.dev/raw/gs56caup/paste1.txt"))()
2
3
setreadonly(getrawmetatable(game), false)
4
5
local Player = game:GetService("Players").LocalPlayer
6
local Settings = {
7
Part = "HumanoidRootPart"
8
}
9
local Part = Settings.Part
10
local CurrentCamera = workspace.CurrentCamera
11
local Circle = Drawing.new("Circle")
12
local RunService = game:GetService("RunService")
13
14
-- Prediction settings
15
getgenv().HitPart = "HumanoidRootPart"
16
getgenv().Prediction = 0.282099375
17
getgenv().Enabled = true
18
19
function getClosestPlayer()
20
local Range = getgenv().Fov or 300
21
local ClosestDistance = Range
22
local ClosestPlayer = nil
23
24
for _, v in pairs(game:GetService("Players"):GetPlayers()) do
25
if v ~= Player and v.Character and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild("Humanoid") then
26
local Humanoid = v.Character.Humanoid
27
if Humanoid.Health > 0 then
28
local Pos = CurrentCamera:WorldToScreenPoint(v.Character.HumanoidRootPart.Position)
29
local Distance = (Vector2.new(Pos.X, Pos.Y) - Vector2.new(CurrentCamera.ViewportSize.X / 2, CurrentCamera.ViewportSize.Y / 2)).Magnitude
30
if Distance < ClosestDistance then
31
ClosestDistance = Distance
32
ClosestPlayer = v
33
end
34
end
35
end
36
end
37
38
return ClosestPlayer
39
end
40
41
local oldMouse = Player:GetMouse()
42
43
local old
44
old = hookmetamethod(oldMouse, "__index", newcclosure(function(self, obj)
45
if obj == "Hit" then
46
local closestPlayer = getClosestPlayer()
47
if closestPlayer and closestPlayer.Character and closestPlayer.Character:FindFirstChild(Part) then
48
return closestPlayer.Character[Part].CFrame + (closestPlayer.Character[Part].Velocity * getgenv().Prediction)
49
end
50
end
51
return old(self, obj)
52
end))
53
54
setreadonly(getrawmetatable(game), true)
55
56
RunService.RenderStepped:Connect(function()
57
Circle.Position = Vector2.new(CurrentCamera.ViewportSize.X / 2, CurrentCamera.ViewportSize.Y / 2)
58
Circle.Radius = getgenv().Fov or 300
59
Circle.Visible = true
60
Circle.Color = Color3.fromRGB(255, 255, 255)
61
Circle.Thickness = 1
62
Circle.Transparency = 1
63
end)
64
65
wait(1.5)