local UserInputService = game:GetService("UserInputService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local gainMuscleEnabled = false local sellMuscleEnabled = false local canFire = false local function gainMuscle() while gainMuscleEnabled and canFire do local args = { [1] = { [1] = "GainMuscle" } } ReplicatedStorage:WaitForChild("RemoteEvent"):FireServer(unpack(args)) wait(0.01) end end local function sellMuscle() while sellMuscleEnabled and canFire do local args = { [1] = { [1] = "SellMuscle" } } ReplicatedStorage:WaitForChild("RemoteEvent"):FireServer(unpack(args)) wait(0.1) end end UserInputService.InputBegan:Connect(function(input, gameProcessedEvent) if gameProcessedEvent then return end if input.KeyCode == Enum.KeyCode.H then gainMuscleEnabled = not gainMuscleEnabled if gainMuscleEnabled then gainMuscle() end elseif input.KeyCode == Enum.KeyCode.G then sellMuscleEnabled = not sellMuscleEnabled if sellMuscleEnabled then sellMuscle() end elseif input.KeyCode == Enum.KeyCode.Insert then canFire = not canFire end end)