Skip to content

Instantly share code, notes, and snippets.

@altacountbabi
Created September 24, 2022 12:22
Show Gist options
  • Save altacountbabi/0574f6941c76a0f81b76386837a13494 to your computer and use it in GitHub Desktop.
Save altacountbabi/0574f6941c76a0f81b76386837a13494 to your computer and use it in GitHub Desktop.
Keystrokes
local function coolwarnLine()
warn('------------------------------------------------------------------------')
end
coolwarnLine()
warn(' LAPTOP KEYPAD ISNT FULLY SUPPORTED!')
coolwarnLine()
function stringToEnum(k)
local map = {
['q'] = Enum.KeyCode.Q, ['w'] = Enum.KeyCode.W, ['e'] = Enum.KeyCode.E, ['r'] = Enum.KeyCode.R, ['t'] = Enum.KeyCode.T, ['y'] = Enum.KeyCode.Y, ['u'] = Enum.KeyCode.U, ['i'] = Enum.KeyCode.I, ['o'] = Enum.KeyCode.O, ['p'] = Enum.KeyCode.P, ['a'] = Enum.KeyCode.A, ['s'] = Enum.KeyCode.S, ['d'] = Enum.KeyCode.D, ['f'] = Enum.KeyCode.F, ['g'] = Enum.KeyCode.G, ['h'] = Enum.KeyCode.H, ['j'] = Enum.KeyCode.J, ['k'] = Enum.KeyCode.K, ['l'] = Enum.KeyCode.L, ['z'] = Enum.KeyCode.Z, ['x'] = Enum.KeyCode.X, ['c'] = Enum.KeyCode.C, ['v'] = Enum.KeyCode.V, ['n'] = Enum.KeyCode.N, ['b'] = Enum.KeyCode.B, ['m'] = Enum.KeyCode.M, [','] = Enum.KeyCode.Comma, ['.'] = Enum.KeyCode.Period, ['0'] = Enum.KeyCode.Zero and Enum.KeyCode.KeypadZero, ['1'] = Enum.KeyCode.One and Enum.KeyCode.KeypadOne, ['2'] = Enum.KeyCode.Two and Enum.KeyCode.KeypadTwo, ['3'] = Enum.KeyCode.Three and Enum.KeyCode.KeypadThree, ['4'] = Enum.KeyCode.Four and Enum.KeyCode.KeypadFour, ['5'] = Enum.KeyCode.Five and Enum.KeyCode.KeypadFive, ['6'] = Enum.KeyCode.Six and Enum.KeyCode.KeypadSix, ['7'] = Enum.KeyCode.Seven and Enum.KeyCode.KeypadSeven, ['8'] = Enum.KeyCode.Eight and Enum.KeyCode.KeypadEight, ['9'] = Enum.KeyCode.Nine and Enum.KeyCode.KeypadNine,
}
if map[k:lower()] then
return map[k:lower()]
else
return Enum.KeyCode.Unknown
end
end
if game.CoreGui:FindFirstChild('ProSexGayPornhubHahaThisIsToCheckIfTheScriptWasAlreadyRanWhyAreYouReadingThis') then
game.CoreGui:FindFirstChild('ProSexGayPornhubHahaThisIsToCheckIfTheScriptWasAlreadyRanWhyAreYouReadingThis'):Destroy()
end
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "ProSexGayPornhubHahaThisIsToCheckIfTheScriptWasAlreadyRanWhyAreYouReadingThis"
local Frame = Instance.new("Frame")
local UICorner = Instance.new("UICorner")
local UIListLayout = Instance.new("UIListLayout")
local UIPadding = Instance.new("UIPadding")
local Key = Instance.new("Frame")
local UICorner_2 = Instance.new("UICorner")
local Text = Instance.new("TextLabel")
local Key_2 = Instance.new("Frame")
local UICorner_3 = Instance.new("UICorner")
local Text_2 = Instance.new("TextLabel")
local Key_3 = Instance.new("Frame")
local UICorner_4 = Instance.new("UICorner")
local Text_3 = Instance.new("TextLabel")
local Key_4 = Instance.new("Frame")
local UICorner_5 = Instance.new("UICorner")
local Text_4 = Instance.new("TextLabel")
local countText = Instance.new("TextLabel", ScreenGui)
local kcount = 0
local hui = game.CoreGui
if gethui then hui = gethui() else if syn then syn.protect_gui(ScreenGui) end end
countText.Size = UDim2.new(0.25,0,0.1,0)
countText.Position = UDim2.new(0.03,0,0.68,0)
countText.TextScaled = true
countText.BackgroundTransparency = 1
countText.TextColor3 = Color3.fromRGB(255, 255, 255)
ScreenGui.Parent = hui
ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
Frame.Parent = ScreenGui
Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Frame.BackgroundTransparency = 0.300
Frame.Position = UDim2.new(0.0312662832, 0, 0.828703701, 0)
Frame.Size = UDim2.new(0, 522, 0, 162)
UICorner.Parent = Frame
UIListLayout.Parent = Frame
UIListLayout.FillDirection = Enum.FillDirection.Horizontal
UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Center
UIListLayout.Padding = UDim.new(0, 25)
UIPadding.Parent = Frame
UIPadding.PaddingLeft = UDim.new(0, 25)
Key.Name = "Key"
Key.Parent = Frame
Key.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Key.BackgroundTransparency = 0.050
Key.Position = UDim2.new(0.0426966287, 0, 0.185185179, 0)
Key.Size = UDim2.new(0, 100, 0, 100)
UICorner_2.CornerRadius = UDim.new(0, 5)
UICorner_2.Parent = Key
Text.Name = "Text"
Text.Parent = Key
Text.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Text.BackgroundTransparency = 1.000
Text.Size = UDim2.new(1, 0, 1, 0)
Text.Font = Enum.Font.SourceSans
Text.Text = keys[1]:upper()
Text.TextColor3 = Color3.fromRGB(255, 255, 255)
Text.TextSize = 59.000
Key_2.Name = "Key"
Key_2.Parent = Frame
Key_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Key_2.BackgroundTransparency = 0.050
Key_2.Position = UDim2.new(0.0426966287, 0, 0.185185179, 0)
Key_2.Size = UDim2.new(0, 100, 0, 100)
UICorner_3.CornerRadius = UDim.new(0, 5)
UICorner_3.Parent = Key_2
Text_2.Name = "Text"
Text_2.Parent = Key_2
Text_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Text_2.BackgroundTransparency = 1.000
Text_2.Size = UDim2.new(1, 0, 1, 0)
Text_2.Font = Enum.Font.SourceSans
Text_2.Text = keys[2]:upper()
Text_2.TextColor3 = Color3.fromRGB(255, 255, 255)
Text_2.TextSize = 59.000
Key_3.Name = "Key"
Key_3.Parent = Frame
Key_3.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Key_3.BackgroundTransparency = 0.050
Key_3.Position = UDim2.new(0.0426966287, 0, 0.185185179, 0)
Key_3.Size = UDim2.new(0, 100, 0, 100)
UICorner_4.CornerRadius = UDim.new(0, 5)
UICorner_4.Parent = Key_3
Text_3.Name = "Text"
Text_3.Parent = Key_3
Text_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Text_3.BackgroundTransparency = 1.000
Text_3.Size = UDim2.new(1, 0, 1, 0)
Text_3.Font = Enum.Font.SourceSans
Text_3.Text = keys[3]:upper()
Text_3.TextColor3 = Color3.fromRGB(255, 255, 255)
Text_3.TextSize = 59.000
Key_4.Name = "Key"
Key_4.Parent = Frame
Key_4.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Key_4.BackgroundTransparency = 0.050
Key_4.Position = UDim2.new(0.0426966287, 0, 0.185185179, 0)
Key_4.Size = UDim2.new(0, 100, 0, 100)
UICorner_5.CornerRadius = UDim.new(0, 5)
UICorner_5.Parent = Key_4
Text_4.Name = "Text"
Text_4.Parent = Key_4
Text_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Text_4.BackgroundTransparency = 1.000
Text_4.Size = UDim2.new(1, 0, 1, 0)
Text_4.Font = Enum.Font.SourceSans
Text_4.Text = keys[4]:upper()
Text_4.TextColor3 = Color3.fromRGB(255, 255, 255)
Text_4.TextSize = 59.000
local function VNZGKE_fake_script()
local script = Instance.new('LocalScript', Key)
repeat wait() until game:GetService('Players').LocalPlayer
local lp = game:GetService('Players').LocalPlayer
local uis = game:GetService('UserInputService')
local kc = stringToEnum(keys[1])
uis.InputBegan:Connect(function(o, tf)
if script.Parent then
if o.KeyCode == kc then
script.Parent.BackgroundColor3 = settings.holdColor
end
end
end)
uis.InputEnded:Connect(function(o, tf)
if script.Parent then
if o.KeyCode == kc then
script.Parent.BackgroundColor3 = Color3.fromRGB(0,0,0)
kcount = kcount + 1
end
end
end)
end
coroutine.wrap(VNZGKE_fake_script)()
local function NGCFWK_fake_script()
local script = Instance.new('LocalScript', Key_2)
repeat wait() until game:GetService('Players').LocalPlayer
local lp = game:GetService('Players').LocalPlayer
local uis = game:GetService('UserInputService')
local kc = stringToEnum(keys[2])
uis.InputBegan:Connect(function(o, tf)
if script.Parent then
if o.KeyCode == kc then
script.Parent.BackgroundColor3 = settings.holdColor
end
end
end)
uis.InputEnded:Connect(function(o, tf)
if script.Parent then
if o.KeyCode == kc then
script.Parent.BackgroundColor3 = Color3.fromRGB(0,0,0)
kcount = kcount + 1
end
end
end)
end
coroutine.wrap(NGCFWK_fake_script)()
local function UMJABNM_fake_script()
local script = Instance.new('LocalScript', Key_3)
repeat wait() until game:GetService('Players').LocalPlayer
local lp = game:GetService('Players').LocalPlayer
local uis = game:GetService('UserInputService')
local kc = stringToEnum(keys[3])
uis.InputBegan:Connect(function(o, tf)
if script.Parent then
if o.KeyCode == kc then
script.Parent.BackgroundColor3 = settings.holdColor
end
end
end)
uis.InputEnded:Connect(function(o, tf)
if script.Parent then
if o.KeyCode == kc then
script.Parent.BackgroundColor3 = Color3.fromRGB(0,0,0)
kcount = kcount + 1
end
end
end)
end
coroutine.wrap(UMJABNM_fake_script)()
local function WAFBQ_fake_script()
local script = Instance.new('LocalScript', Key_4)
repeat wait() until game:GetService('Players').LocalPlayer
local lp = game:GetService('Players').LocalPlayer
local uis = game:GetService('UserInputService')
local kc = stringToEnum(keys[4])
uis.InputBegan:Connect(function(o, tf)
if script.Parent then
if o.KeyCode == kc then
script.Parent.BackgroundColor3 = settings.holdColor
end
end
end)
uis.InputEnded:Connect(function(o, tf)
if script.Parent then
if o.KeyCode == kc then
script.Parent.BackgroundColor3 = Color3.fromRGB(0,0,0)
kcount = kcount + 1
end
end
end)
end
coroutine.wrap(WAFBQ_fake_script)()
local function ORTTW_fake_script()
local script = Instance.new('LocalScript', Frame)
local UIS = game:GetService("UserInputService")
local function dragify(Frame)
local dragToggle = nil
local dragSpeed = 0.15
local dragInput = nil
local dragStart = nil
local dragPos = nil
local function updateInput(input)
local Delta = input.Position - dragStart
local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
game:GetService("TweenService"):Create(Frame, TweenInfo.new(0.15), {Position = Position}):Play()
end
Frame.InputBegan:Connect(function(input)
if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and UIS:GetFocusedTextBox() == nil then
dragToggle = true
dragStart = input.Position
startPos = Frame.Position
input.Changed:Connect(function()
if input.UserInputState == Enum.UserInputState.End then
dragToggle = false
end
end)
end
end)
Frame.InputChanged:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
dragInput = input
end
end)
game:GetService("UserInputService").InputChanged:Connect(function(input)
if input == dragInput and dragToggle then
updateInput(input)
end
end)
end
dragify(script.Parent)
end
coroutine.wrap(ORTTW_fake_script)()
if settings.rainbow then
local function DTAUOPK_fake_script()
local script = Instance.new('LocalScript', Frame)
for _,keytext in next, script.Parent:GetChildren() do
if keytext.Name == "Key" then
coroutine.wrap(function()
local text = keytext.Text
local add = 10
local k = 1
while k <= 255 do
text.TextColor3 = Color3.new(k/255,0/255,0/255)
k = k + add
wait()
end
while true do
k = 1
while k <= 255 do
text.TextColor3 = Color3.new(255/255,k/255,0/255)
k = k + add
wait()
end
k = 1
while k <= 255 do
text.TextColor3 = Color3.new(255/255 - k/255,255/255,0/255)
k = k + add
wait()
end
k = 1
while k <= 255 do
text.TextColor3 = Color3.new(0/255,255/255,k/255)
k = k + add
wait()
end
k = 1
while k <= 255 do
text.TextColor3 = Color3.new(0/255,255/255 - k/255,255/255)
k = k + add
wait()
end
k = 1
while k <= 255 do
text.TextColor3 = Color3.new(k/255,0/255,255/255)
k = k + add
wait()
end
k = 1
while k <= 255 do
text.TextColor3 = Color3.new(255/255,0/255,255/255 - k/255)
k = k + add
wait()
end
while k <= 255 do
text.TextColor3 = Color3.new(255/255 - k/255,0/255,0/255)
k = k + add
wait()
end
end
end)()
end
end
end
coroutine.wrap(DTAUOPK_fake_script)()
end
coroutine.wrap(function()
while task.wait() do
countText.Text = "Keys pressed: " .. tostring(kcount)
end
end)()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment