Features:
- Silent Aim
- Open Source
Script:
local Players = game:GetService("Players")local LocalPlayer = Players.LocalPlayerlocal Camera = workspace.CurrentCameralocal Mouse = LocalPlayer:GetMouse()local WorldToScreenPoint = Camera.WorldToScreenPointlocal GetPlayers = Players.GetPlayerslocal FindFirstChild = game.FindFirstChildlocal function GetOnScreenPosition(V3)local Position, IsVisible = WorldToScreenPoint(Camera, V3)return Vector2.new(Position.X, Position.Y), IsVisibleendlocal function GetDirection(Origin, Position)return (Position - Origin).Unit * (Origin - Position).Magnitudeendlocal function GetMousePosition()return Vector2.new(Mouse.X, Mouse.Y)endlocal function GetClosestPlayer()local Closest, Distance = nil, 10000for _, Player in next, GetPlayers(Players) doif Player ~= LocalPlayer thenlocal Character = Player.Characterlocal Head = Character and FindFirstChild(Character, "Head")local Humanoid = Character and FindFirstChild(Character, "Humanoid")if Head and (Humanoid and Humanoid.Health > 0) thenlocal ScreenPos, IsVisible = GetOnScreenPosition(Head.Position)if IsVisible thenlocal _Distance = (GetMousePosition() - ScreenPos).Magnitudeif _Distance <= Distance thenClosest = HeadDistance = _Distanceendendendendendreturn Closest, Distanceendlocal oldNamecalloldNamecall = hookmetamethod(game, "__namecall", function(...)local Method = getnamecallmethod()local Arguments = {...}if Arguments[1] == workspace and Method == "Raycast" thenif typeof(Arguments[#Arguments]) ~= "RaycastParams" thenreturn oldNamecall(...)endlocal HitPart = GetClosestPlayer()if HitPart thenArguments[3] = GetDirection(Arguments[2], HitPart.Position)return oldNamecall(unpack(Arguments))endendreturn oldNamecall(...)end)
Post a Comment (0)