local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local LocalPlayer = Players.LocalPlayer local enemies = workspace:WaitForChild("Enemies") local skillRemote = ReplicatedStorage:WaitForChild("Remotes"):WaitForChild("SkillInput") local function getClickRemote() local character = LocalPlayer.Character if not character then return nil end for _, tool in pairs(character:GetChildren()) do if tool:IsA("Tool") then local remotes = tool:FindFirstChild("Remotes") if remotes then local click = remotes:FindFirstChild("Click") if click then return click end end end end end while true do local character = LocalPlayer.Character local root = character and character:FindFirstChild("HumanoidRootPart") local click = getClickRemote() if root and click then for _, enemy in pairs(enemies:GetChildren()) do local hitbox = enemy:FindFirstChild("Hitbox") local humanoid = enemy:FindFirstChildOfClass("Humanoid") if hitbox and humanoid and humanoid.Health > 0 then root.CFrame = hitbox.CFrame skillRemote:FireServer("E") skillRemote:FireServer("T") click:FireServer() click:FireServer() task.wait(0.1) end end end task.wait() end