local player = game:GetService("Players").LocalPlayer local userInputService = game:GetService("UserInputService") local toggle = false userInputService.InputBegan:Connect(function(input) if input.KeyCode == Enum.KeyCode.G then toggle = not toggle end end) game:GetService("RunService").RenderStepped:Connect(function() if toggle then local character = player.Character local enemies = {} for _,v in workspace.EnemyNpc:GetDescendants() do if v.ClassName == "Model" and v:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Humanoid") and v:FindFirstChild("Humanoid").Health > 0 then table.insert(enemies,v) end end game:GetService("ReplicatedStorage").Remotes.Input:FireServer({["Module"] = "Melee", ["Character"] = character, ["Input"] = "M1", ["Enemies"] = enemies, ["M1String"] = 2, ["Damage"] = {["Value"] = 1000000, ["ScaleType"] = "Strength", ["Scale"] = 100}}) end end)