local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() Rayfield:Notify({ Title = "Script Executed", Content = "Car Wars script by Devappl", Duration = 5, Image = 4483362458, Actions = { Ignore = { Name = "Dismiss", Callback = function() end }, }, }) local Window = Rayfield:CreateWindow({ Name = "Car Wars Silent Aimbot | Script by Devappl", LoadingTitle = "Car Wars Silent Aimbot", LoadingSubtitle = "by Devappl", ConfigurationSaving = { Enabled = false, FolderName = scriptconfig, FileName = "carWarsAimbot" }, Discord = { Enabled = false, Invite = "", RememberJoins = false }, KeySystem = false, }) -----[ TABS / SECTIONS ]----- local MainTab = Window:CreateTab("Home", 4483362458) local MainSection = MainTab:CreateSection("Main") local AimbotTab = Window:CreateTab("Aimbot", 4483362458) local AimbotSection = AimbotTab:CreateSection("Aimbot") -----[ VARIABLES ]----- local ReplicatedStorage = game:GetService("ReplicatedStorage") local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local RemoteEvents = ReplicatedStorage:WaitForChild("RemoteEvents") local DamageEvent = RemoteEvents:WaitForChild("DamageEvent") local Cars = workspace:WaitForChild("Cars") local maxDistance = 100 local friendlyFire = false local delayMs = 100 local autoKill = false -----[ FUNCTIONS ]----- local function targetNearestPlayer() local character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait() local localPlayerTeam = LocalPlayer.Team local function getNearestPlayer() local nearestPlayer = nil local nearestDistance = math.huge for _, otherPlayer in ipairs(Players:GetPlayers()) do if otherPlayer ~= LocalPlayer and otherPlayer.Character then local humanoidRootPart = otherPlayer.Character:FindFirstChild("HumanoidRootPart") local otherPlayerTeam = otherPlayer.Team if humanoidRootPart and (friendlyFire or otherPlayerTeam ~= localPlayerTeam) then local distance = (character.HumanoidRootPart.Position - humanoidRootPart.Position).Magnitude if distance < nearestDistance and distance <= maxDistance then nearestDistance = distance nearestPlayer = otherPlayer end end end end return nearestPlayer end local nearestPlayer = getNearestPlayer() if nearestPlayer and nearestPlayer.Character then local car = Cars:FindFirstChild(nearestPlayer.Name) if car then local nearestPosition = nearestPlayer.Character.HumanoidRootPart.Position DamageEvent:FireServer(car, nearestPosition) end end end -----[ MAIN TAB ]----- local Paragraph = MainTab:CreateParagraph({Title = "Warning", Content = "Flying may lead to a softlock. Tampering with the respawn remote event leads to a hardlock that cannot be bypassed in any known way so far. I had to find out the hard way."}) local TipsParagraph = MainTab:CreateParagraph({Title = "Tips", Content = "Remember to switch friendly fire on during FFA matches. Also dont forget to equip your strongest weapon as this script unlocks the fire rate of any gun."}) -----[ AIMBOT TAB ]----- local DistanceSlider = AimbotTab:CreateSlider({ Name = "Range", Range = {10, 10000}, Increment = 10, Suffix = "Studs", CurrentValue = 100, Flag = "distanceSlider", Callback = function(Value) end, }) local DelaySlider = AimbotTab:CreateSlider({ Name = "Shot Delay", Range = {10, 10000}, Increment = 10, Suffix = "Ms", CurrentValue = 100, Flag = "distanceSlider", Callback = function(Value) delayMs = Value end, }) local FriendlyFireToggle = AimbotTab:CreateToggle({ Name = "Friendly Fire", CurrentValue = false, Flag = "aimbotToggle", Callback = function(Value) friendlyFire = Value end, }) local AimbotToggle = AimbotTab:CreateToggle({ Name = "Silent Aimbot", CurrentValue = false, Flag = "aimbotToggle", Callback = function(Value) autoKill = Value while autoKill do targetNearestPlayer() task.wait(delayMs/1000) end end, })