Lafyv23431

Untitled

Mar 24th, 2026
9
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. local aim = false
  2.  
  3. Section:NewToggle("Aim Assist OP", "تقريب قوي", function(state)
  4. aim = state
  5. end)
  6.  
  7. game:GetService("RunService").RenderStepped:Connect(function()
  8. if aim then
  9. local player = game.Players.LocalPlayer
  10. local camera = workspace.CurrentCamera
  11. local closest, dist = nil, math.huge
  12.  
  13. for _,v in pairs(game.Players:GetPlayers()) do
  14. if v ~= player and v.Character and v.Character:FindFirstChild("Head") then
  15. local pos, visible = camera:WorldToViewportPoint(v.Character.Head.Position)
  16. if visible then
  17. local diff = (Vector2.new(pos.X,pos.Y) - game:GetService("UserInputService"):GetMouseLocation()).Magnitude
  18. if diff < dist then
  19. dist = diff
  20. closest = v
  21. end
  22. end
  23. end
  24. end
  25.  
  26. if closest then
  27. camera.CFrame = camera.CFrame:Lerp(
  28. CFrame.new(camera.CFrame.Position, closest.Character.Head.Position),
  29. 0.15 -- قوي
  30. )
  31. end
  32. end
  33. end)
Advertisement
Add Comment
Please, Sign In to add comment