local workspace = game:GetService("Workspace") local replicatedStorage = game:GetService("ReplicatedStorage") local players = game:GetService("Players") local player = players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoidRootPart = character:WaitForChild("HumanoidRootPart") local mobsFolder = workspace.World.Mobs local damageRemote = replicatedStorage.Universe.Network.Remotes.DamageFire local function teleportAbove(target) if humanoidRootPart and target then humanoidRootPart.CFrame = target.CFrame + Vector3.new(0, 10, 0) end end local function attackMobs() while true do local mobs = mobsFolder:GetChildren() for _, mob in ipairs(mobs) do if mob:FindFirstChild("HumanoidRootPart") then local targetPart = mob.HumanoidRootPart while mob and mob.Parent == mobsFolder do teleportAbove(targetPart) damageRemote:FireServer(mob) task.wait(0.01) end end end task.wait(0.01) end end attackMobs()