Run it
Copy the script and paste it into your executor.
getgenv().AutoHit = true
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local Workspace = game:GetService("Workspace")
local Remote = ReplicatedStorage:WaitForChild("Remote"):WaitForChild("Event"):WaitForChild("Combat"):WaitForChild("M1")
local LocalPlayer = Players.LocalPlayer
local HumanoidRootPart
local function updateCharacter()
local char = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
HumanoidRootPart = char:WaitForChild("HumanoidRootPart")
end
updateCharacter()
LocalPlayer.CharacterAdded:Connect(updateCharacter)
()
closest, dist = , .huge
_, mob (Workspace.Live.MobModel:())
mob:() mob:() mob.Humanoid.Health >
mag = (mob.HumanoidRootPart.Position - HumanoidRootPart.Position).Magnitude
mag < dist
dist = mag
closest = mob
closest
.(()
().AutoHit
.()
HumanoidRootPart
target = ()
target
Remote:({ target:() target.Name })
)
hi this is a project make by me (If you are coming here to give a skid, Im fine with it. I used a bit of chatlgbt to make the logic so that when it dies, the script still works.) if you find smth like errors say to my dm in discord : jalanbipallv22_75999