Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- ---------------------:HOW TO USE:---------------------
- Edit the amount of keystrokes you have. (At keystrokelist)
- Now, add a function with the exact same name as that keystroke.
- If you don't want the function to run unless a certain variable is true, then write like this:
- if not something then
- return false
- end
- If you do return nil, it'll still work.
- That's all.
- --]]
- ScreenGui1 = Instance.new("ScreenGui", game.Players.LocalPlayer:WaitForChild('PlayerGui'))
- Frame2 = Instance.new("Frame", ScreenGui1)
- textGui = Instance.new("TextLabel", Frame2)
- Frame2.Transparency = 0
- Frame2.Size = UDim2.new(0.538, 0,0.137, 0)
- Frame2.Position = UDim2.new(0.213584289, 0, 0, 0)
- Frame2.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame2.BackgroundTransparency = 1
- textGui.Transparency = 0
- textGui.Size = UDim2.new(1, 0, 1, 0)
- textGui.Text = ""
- textGui.BackgroundColor3 = Color3.new(1, 1, 1)
- textGui.BackgroundTransparency = 1
- textGui.Font = Enum.Font.Fantasy
- textGui.FontSize = Enum.FontSize.Size96
- textGui.TextColor3 = Color3.new(1, 0.0941177, 0.305882)
- textGui.TextWrapped = true
- textGui.TextXAlignment = Enum.TextXAlignment.Left
- keystrokes = {}
- keystrokeFunctions = {}
- --[[THINGS YOU CAN MODIFY]]--
- resetKey = "\\"
- keystrokelist = {
- ['adadadq'] = true,
- ['wasd'] = true
- }
- do --functions here
- keystrokeFunctions.adadadq = function()
- if game.Players.LocalPlayer.Character.Humanoid.FloorMaterial ~= Enum.Material.Air then
- game.Players.LocalPlayer.Character:FindFirstChild('Humanoid', true).JumpPower = 100
- game.Players.LocalPlayer.Character.Humanoid.Jump = true
- wait(0.1)
- game.Players.LocalPlayer.Character:FindFirstChild('Humanoid', true).JumpPower = 50
- else
- return false
- end
- end
- keystrokeFunctions.wasd = function()
- if game.Players.LocalPlayer.Character.Humanoid.FloorMaterial ~= Enum.Material.Air then
- return false
- else
- local bv = Instance.new("BodyVelocity", game.Players.LocalPlayer.Character)
- bv.Velocity = Vector3.new(0, -25000, 0)
- repeat wait()
- until game.Players.LocalPlayer.Character.Humanoid.FloorMaterial ~= Enum.Material.Air
- bv:Destroy()
- return true
- end
- end
- end
- --[[BELOW: UNTOUCHABLES]]--
- spawn(function(s)
- while true do
- wait()
- textGui.Text = table.concat(keystrokes, '')
- end
- end)
- mouse = game:GetService('Players').LocalPlayer:GetMouse()
- mouse.KeyDown:connect(function(key)
- if key == "0" then return nil end
- if key == resetKey or key == '' or key == ' ' then
- print('Resetted keystrokes.')
- keystrokes = {}
- return nil
- end
- if #keystrokes >= 14 then
- print('over 14')
- local gui = textGui:Clone()
- gui.Text = gui.Text..key
- gui.Parent = (Frame2) --14 characters
- gui:TweenPosition(UDim2.new(0,0,1.3,0), "Out", "Quad", 5)
- gui.TextColor3 = Color3.fromRGB(0,0,0)
- spawn(function(s)
- for i = 0, 1, 0.1 do
- wait()
- gui.TextTransparency = i
- end
- end)
- keystrokes = {}
- wait(1)
- gui:Destroy()
- return nil
- end
- table.insert(keystrokes, key)
- print(table.concat(keystrokes, ''))
- if keystrokelist[table.concat(keystrokes, '')] then
- print('yay')
- local asd = keystrokeFunctions[table.concat(keystrokes, '')]()
- if asd == false then
- local gui = textGui:Clone()
- gui.Text = gui.Text..key
- gui.Parent = (Frame2) --14 characters
- gui:TweenPosition(UDim2.new(0,0,1.3,0), "Out", "Quad", 5)
- gui.TextColor3 = Color3.fromRGB(0,0,0)
- spawn(function(s)
- for i = 0, 1, 0.1 do
- wait()
- gui.TextTransparency = i
- end
- end)
- spawn(function(asd)
- wait(1)
- gui:Destroy()
- end)
- keystrokes = {}
- return nil
- end
- local gui = textGui:Clone()
- gui.Text = gui.Text..key
- gui.Parent = (Frame2) --14 characters
- gui:TweenPosition(UDim2.new(0,0,1.3,0), "Out", "Quad", 5)
- gui.TextColor3 = Color3.fromRGB(0,255,0)
- spawn(function(s)
- for i = 0, 1, 0.1 do
- wait()
- gui.TextTransparency = i
- end
- end)
- keystrokes = {}
- wait(1)
- gui:Destroy()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment