-- [[ Rscripts Risk Notice ]] -- This script is not verified by rscripts.net. Deal with caution. -- -- Stay safe: -- • Never log in on unofficial Roblox sites or lookalike domains. -- • Real Roblox links use roblox.com (check the .com ending). -- • Treat fake Roblox login / "claim reward" pages as phishing. -- [[ End Rscripts Risk Notice ]] local Players = game:GetService("Players") local RunService = game:GetService("RunService") local Workspace = game:GetService("Workspace") getgenv().autoShoot = false getgenv().autoEquip = false getgenv().aimConfig = { MAX_DISTANCE = 500, PREDRATE = 0.135 } local autoShootConnection = nil local function getNearestTarget() local LocalPlayer = Players.LocalPlayer local myChar = LocalPlayer and LocalPlayer.Character local myRoot = myChar and myChar:FindFirstChild("HumanoidRootPart") if not myRoot then return nil, nil end local nearestPlayer, minDist = nil, math.huge local targetVelocity = Vector3.new(0, 0, 0) for _, player in pairs(Players:GetPlayers()) do if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then local hum = player.Character:FindFirstChildOfClass("Humanoid") if hum and hum.Health > 0 and hum:GetState() ~= Enum.HumanoidStateType.Dead and player.Character.Parent == Workspace then if not player.Team or not LocalPlayer.Team or player.Team ~= LocalPlayer.Team then local enemyRoot = player.Character.HumanoidRootPart local dist = (enemyRoot.Position - myRoot.Position).Magnitude local velocity = enemyRoot.AssemblyLinearVelocity if dist < minDist and dist <= getgenv().aimConfig.MAX_DISTANCE and velocity.Y > -100 then minDist = dist nearestPlayer = enemyRoot targetVelocity = velocity end end end end end if nearestPlayer then local predictedPos = nearestPlayer.Position + (targetVelocity * getgenv().aimConfig.PREDRATE) return nearestPlayer, predictedPos end return nil, nil end getgenv().MoneyhubSharedCore = { getNearestTarget = getNearestTarget, getConn = function() return autoShootConnection end, setConn = function(v) autoShootConnection = v end } local Shared = getgenv().MoneyhubSharedCore local Players = game:GetService("Players") local RunService = game:GetService("RunService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local Workspace = game:GetService("Workspace") local VirtualInputManager = game:GetService("VirtualInputManager") local lastFireTime = 0 local lastEquipTime = 0 local FIRE_RATE_COOLDOWN = 0.11 local EQUIP_COOLDOWN = 0.5 local function StartAutoShoot() local currentConn = Shared.getConn() if currentConn then currentConn:Disconnect() end local newConn = RunService.Heartbeat:Connect(function() local LocalPlayer = Players.LocalPlayer if not LocalPlayer or not LocalPlayer.Character then return end if getgenv().autoEquip and not LocalPlayer.Character:FindFirstChildOfClass("Tool") then local currentTime = os.clock() if (currentTime - lastEquipTime) >= EQUIP_COOLDOWN then lastEquipTime = currentTime VirtualInputManager:SendKeyEvent(true, Enum.KeyCode.Two, false, game) task.wait(0.05) VirtualInputManager:SendKeyEvent(false, Enum.KeyCode.Two, false, game) end end if not getgenv().autoShoot then return end local currentTime = os.clock() if (currentTime - lastFireTime) < FIRE_RATE_COOLDOWN then return end local remotesFolder = ReplicatedStorage:FindFirstChild("Remotes") local ShootRemote = remotesFolder and remotesFolder:FindFirstChild("ShootGun") if not ShootRemote then return end local gunModel = LocalPlayer.Character:FindFirstChild("Gun_Equip") or LocalPlayer.Character:FindFirstChildOfClass("Tool") local muzzle = gunModel and gunModel:FindFirstChild("Muzzle", true) if not muzzle then return end local targetInstance, predictedPosition = Shared.getNearestTarget() if targetInstance and predictedPosition then lastFireTime = currentTime ShootRemote:FireServer(muzzle.WorldPosition, predictedPosition, targetInstance, predictedPosition) end end) Shared.setConn(newConn) end local Rayfield = loadstring(game:HttpGet("https://sirius.menu/gen2"))() local window = Rayfield:CreateWindow({ name = "MVSD", subtitle = "By luhscripter", }) local tab = window:CreateTab({ name = "Main" }) tab:CreateToggle({ name = "Auto Kill All (Gun)", currentValue = false, callback = function(value) getgenv().autoShoot = value if value then StartAutoShoot() elseif not getgenv().autoEquip then local c = Shared.getConn() if c then c:Disconnect() end end end }) tab:CreateToggle({ name = "Auto Equip Gun", currentValue = false, callback = function(value) getgenv().autoEquip = value if value then StartAutoShoot() elseif not getgenv().autoShoot then local c = Shared.getConn() if c then c:Disconnect() end end end })