while task.wait() do local players = game:GetService("Players") local replicatedStorage = game:GetService("ReplicatedStorage") local katana = players.LocalPlayer:WaitForChild("Backpack"):WaitForChild("Katana") local hitRemote = replicatedStorage:WaitForChild("Assets"):WaitForChild("Remotes"):WaitForChild("Hit") for _, npc in pairs(workspace.Characters:GetChildren()) do if npc.Name:match("^Dummy%d+$") then local humanoid = npc:FindFirstChild("Humanoid") if humanoid then local args = {katana, humanoid, 1} hitRemote:FireServer(unpack(args)) end end end end