while true do local player = game.Players.LocalPlayer local hrp = player.Character and player.Character:FindFirstChild("HumanoidRootPart") local crp = workspace:FindFirstChild("Noobster_REAL") and workspace.Noobster_REAL:FindFirstChild("HumanoidRootPart") local disk = 50 if hrp and crp then local dist = (hrp.Position - crp.Position).Magnitude if dist <= disk then local args = { [1] = workspace.Noobster_REAL, [2] = "HitEvent" } local attackEvent = player.Character and player.Character:FindFirstChild("attack") and player.Character.attack:FindFirstChild("Event") if attackEvent then attackEvent:FireServer(unpack(args)) else print("Failed to find attack event") end end else print("Failed to find HumanoidRootPart(s)") end wait(0.1) -- Delay to avoid overloading the server end