Op Dot
Op Dot
main = {
DotEnabled = true, -- leave this true thusky pooh ;)
Prediction = 0.11621,
Part = "LowerTorso",
Key = "q",
Notifications = true,
AirshotFunc = false
},
Dot = {
Show = true,
Color = Color3.fromRGB(128, 0, 128),
Size = Vector3.new(0.9, 1.2, 0.9)
}
}
Mouse.KeyDown:Connect(function(KeyPressed)
if KeyPressed == (settings.main.Key) then
if settings.main.DotEnabled == true then
settings.main.DotEnabled = false
if settings.main.Notifications == true then
Plr = FindClosestUser()
game.StarterGui:SetCore("SendNotification", {
Title = "Private Script",
Text = "No longer locked on"
})
end
else
Plr = FindClosestUser()
settings.main.DotEnabled = true
if settings.main.Notifications == true then
game.StarterGui:SetCore("SendNotification", {
Title = "Private Script",
Text = "Locked on to:" ..
tostring(Plr.Character.Humanoid.DisplayName)
})
end
end
end
end)
function FindClosestUser()
local closestPlayer
local shortestDistance = math.huge
for i, v in pairs(game.Players:GetPlayers()) do
if v ~= game.Players.LocalPlayer and v.Character and
v.Character:FindFirstChild("Humanoid") and
v.Character.Humanoid.Health ~= 0 and
v.Character:FindFirstChild("HumanoidRootPart") then
local pos =
CurrentCamera:WorldToViewportPoint(v.Character.PrimaryPart.Position)
local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(Mouse.X,
Mouse.Y)).magnitude
if magnitude < shortestDistance then
closestPlayer = v
shortestDistance = magnitude
end
end
end
return closestPlayer
end
RunService.Stepped:connect(function()
if settings.main.DotEnabled and Plr.Character and
Plr.Character:FindFirstChild("LowerTorso") then
Part.CFrame = CFrame.new(Plr.Character[settings.main.Part].Position +
(Plr.Character.LowerTorso.Velocity *
settings.main.Prediction))
else
Part.CFrame = CFrame.new(0, 9999, 0)
end
end)
local mt = getrawmetatable(game)
local old = mt.__namecall
setreadonly(mt, false)
mt.__namecall = newcclosure(function(...)
local args = {...}
if settings.main.DotEnabled and getnamecallmethod() == "FireServer" and args[2]
== "UpdateMousePos" then
args[3] = Plr.Character[settings.main.Part].Position +
(Plr.Character[settings.main.Part].Velocity *
settings.main.Prediction)
return old(unpack(args))
end
return old(...)
end)
Plr.Character:WaitForChild("Humanoid").StateChanged:Connect(function(old,new)
if new == Enum.HumanoidStateType.Freefall then
settings.main.Part = "RightFoot"
else
settings.main.Part = "LowerTorso"
end
end)
end
end