You are on page 1of 1

_G.

Pushup = true
local PushupsPerSecond= 6

local function GetKeyCodeFromName(n)


for _,v in next, Enum.KeyCode:GetEnumItems() do
if v.Name == n then
return v
end
end
return nil
end

while _G.Pushup == true do


local text = game.Players.LocalPlayer.PlayerGui:FindFirstChild'PushupsGui' and
game.Players.LocalPlayer.PlayerGui.PushupsGui:FindFirstChild'Pushups' and
game.Players.LocalPlayer.PlayerGui.PushupsGui.Pushups:FindFirstChild'Button' and
game.Players.LocalPlayer.PlayerGui.PushupsGui.Pushups.Button.Text
local KeyCode = GetKeyCodeFromName(text)
if KeyCode then
game:GetService("VirtualInputManager"):SendKeyEvent(true, KeyCode, false,
workspace);
task.wait(.1);
game:GetService("VirtualInputManager"):SendKeyEvent(false, KeyCode, false,
workspace);
end
task.wait(1/PushupsPerSecond)
end

You might also like