local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local player = Players.LocalPlayer local backpack = player:WaitForChild("Backpack") local rewardEvent = ReplicatedStorage:WaitForChild("Events"):WaitForChild("Reward") local squatEvent = backpack:WaitForChild("Squat"):WaitForChild("Squat") local screenGui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui")) screenGui.Name = "EventSpamGui" local function createButton(name, position, color) local button = Instance.new("TextButton") button.Name = name button.Size = UDim2.new(0, 150, 0, 50) button.Position = position button.BackgroundColor3 = color button.TextColor3 = Color3.new(1, 1, 1) button.Font = Enum.Font.SourceSansBold button.TextSize = 20 button.Text = name button.Parent = screenGui return button end local rewardButton = createButton("Reward", UDim2.new(0.5, -240, 0.8, 0), Color3.fromRGB(30, 144, 255)) local squatButton = createButton("Squat", UDim2.new(0.5, -75, 0.8, 0), Color3.fromRGB(34, 139, 34)) local deleteButton = createButton("Delete Menu", UDim2.new(0.5, 90, 0.8, 0), Color3.fromRGB(220, 20, 60)) local rewardSpamming = false local rewardThread rewardButton.MouseButton1Click:Connect(function() rewardSpamming = not rewardSpamming rewardButton.Text = rewardSpamming and "Stop Reward" or "Start Reward" if rewardSpamming then rewardThread = task.spawn(function() while rewardSpamming do rewardEvent:FireServer() task.wait(0) end end) else if rewardThread then task.cancel(rewardThread) end end end) local squatSpamming = false local squatThread squatButton.MouseButton1Click:Connect(function() squatSpamming = not squatSpamming squatButton.Text = squatSpamming and "Stop Squat" or "Start Squat" if squatSpamming then squatThread = task.spawn(function() while squatSpamming do squatEvent:FireServer() task.wait(0.00002) end end) else if squatThread then task.cancel(squatThread) end end end) deleteButton.MouseButton1Click:Connect(function() rewardSpamming = false squatSpamming = false if rewardThread then task.cancel(rewardThread) end if squatThread then task.cancel(squatThread) end screenGui:Destroy() end)