--// Made by samet.exe on discord local Players = game:GetService("Players"); local RunService = game:GetService("RunService"); local UserInputService = game:GetService("UserInputService"); local Workspace = game:GetService("Workspace"); local LocalPlayer = Players.LocalPlayer; local Camera = Workspace.CurrentCamera; local BulletModule; local Closest; for i,v in getloadedmodules() do if v.Name == "Bullet" then BulletModule = require(v); end; end; local GetClosestPlayer = function() local ClosestDistance = math.huge; local Player = nil; for Index, Value in Players:GetPlayers() do if (Value ~= LocalPlayer) then local Character = Value.Character; local Root = Character and Character:FindFirstChild("HumanoidRootPart"); if not Root then continue end; local Position, Visible = Camera:WorldToViewportPoint(Root.Position); local Distance = (Vector2.new(Position.X, Position.Y) - UserInputService:GetMouseLocation()).Magnitude; if not Visible then continue end; if Distance < ClosestDistance then ClosestDistance = Distance; Player = Value; end; end; end; return Player; end; RunService.Heartbeat:Connect(function() Closest = GetClosestPlayer(); end) local OldHook; OldHook = hookfunction(BulletModule.CreateBullet, function(...) local Arguements = {...}; Arguements[9].CFrame = CFrame.lookAt(Arguements[9].CFrame.Position, Closest.Character.Head.Position); return OldHook(...); end);