SebTDZ

KT

Jul 20th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 13.04 KB | None | 0 0
  1. owner = game.Players["TheOfficialSeb"]
  2.  
  3. for i,gUi in pairs(owner.PlayerGui:GetChildren()) do
  4.     gUi:Remove()
  5. end
  6.  
  7. function rgb(RED,GREEN,BLUE)
  8.     local Count = 1 / 255
  9.     --Red Count
  10.     local red = Count * RED
  11.     --Green Count
  12.     local green = Count * GREEN
  13.     --Blue Count
  14.     local blue = Count * BLUE
  15.     --Give Color3
  16.     local FColor = Color3.new(red,green,blue)
  17.     return FColor
  18. end
  19.  
  20. local ScreenGui = Instance.new("ScreenGui",owner.PlayerGui)
  21. ScreenGui.Name = "Key"
  22.  
  23. local OpenKey = Instance.new("TextButton",ScreenGui)
  24. OpenKey.BackgroundColor3 = rgb(30, 30, 30)
  25. OpenKey.BorderColor3 = rgb(30, 30, 30)
  26. OpenKey.Name = "OpenKey"
  27. OpenKey.Position = UDim2.new(0,0,0.9,0)
  28. OpenKey.Size = UDim2.new(1,0,0.1,0)
  29. OpenKey.Font = "SourceSansBold"
  30. OpenKey.FontSize = "Size32"
  31. OpenKey.Text = ""
  32. OpenKey.TextColor3 = rgb(255, 0, 0)
  33. OpenKey.MouseButton1Down:connect(function()
  34.     print(gk(owner))
  35. end)
  36.  
  37. function gk(plr)
  38.     local Done = false
  39.     local SG = Instance.new("ScreenGui",plr.PlayerGui)
  40.     SG.Name = "Key"
  41.    
  42.     local gui = Instance.new("TextButton",SG)
  43.     gui.BackgroundColor3 = rgb(30, 30, 30)
  44.     gui.BorderColor3 = rgb(30, 30, 30)
  45.     gui.Name = "gui"
  46.     gui.Position = UDim2.new(0,0,0,0)
  47.     gui.Size = UDim2.new(1,0,0.1,0)
  48.     gui.Font = "SourceSansBold"
  49.     gui.FontSize = "Size32"
  50.     gui.Text = ""
  51.     gui.TextColor3 = rgb(255, 255, 255)
  52.     gui.MouseButton1Down:connect(function()
  53.         local Output = gui.Text
  54.         SG:Remove()
  55.         return Output
  56.         Done = true
  57.     end)
  58.    
  59.     -- Key Q
  60.    
  61.     local QKey = Instance.new("TextButton",SG)
  62.     QKey.BackgroundColor3 = rgb(30, 30, 30)
  63.     QKey.BorderColor3 = rgb(30, 30, 30)
  64.     QKey.Name = "QKey"
  65.     QKey.Position = UDim2.new(0,0,0.2,0)
  66.     QKey.Size = UDim2.new(0.1,0,0.1,0)
  67.     QKey.Font = "SourceSansBold"
  68.     QKey.FontSize = "Size32"
  69.     QKey.Text = "Q"
  70.     QKey.TextColor3 = rgb(255, 255, 255)
  71.     QKey.MouseButton1Down:connect(function()
  72.         gui.Text = gui.Text .. "Q"
  73.     end)
  74.  
  75.     -- Key W
  76.    
  77.     local WKey = Instance.new("TextButton",SG)
  78.     WKey.BackgroundColor3 = rgb(30, 30, 30)
  79.     WKey.BorderColor3 = rgb(30, 30, 30)
  80.     WKey.Name = "WKey"
  81.     WKey.Position = UDim2.new(0.1,0,0.2,0)
  82.     WKey.Size = UDim2.new(0.1,0,0.1,0)
  83.     WKey.Font = "SourceSansBold"
  84.     WKey.FontSize = "Size32"
  85.     WKey.Text = "W"
  86.     WKey.TextColor3 = rgb(255, 255, 255)
  87.     WKey.MouseButton1Down:connect(function()
  88.         gui.Text = gui.Text .. "W"
  89.     end)
  90.  
  91.     -- Key R
  92.    
  93.     local EKey = Instance.new("TextButton",SG)
  94.     EKey.BackgroundColor3 = rgb(30, 30, 30)
  95.     EKey.BorderColor3 = rgb(30, 30, 30)
  96.     EKey.Name = "EKey"
  97.     EKey.Position = UDim2.new(0.2,0,0.2,0)
  98.     EKey.Size = UDim2.new(0.1,0,0.1,0)
  99.     EKey.Font = "SourceSansBold"
  100.     EKey.FontSize = "Size32"
  101.     EKey.Text = "E"
  102.     EKey.TextColor3 = rgb(255, 255, 255)
  103.     EKey.MouseButton1Down:connect(function()
  104.         gui.Text = gui.Text .. "E"
  105.     end)
  106.  
  107.     -- Key T
  108.    
  109.     local RKey = Instance.new("TextButton",SG)
  110.     RKey.BackgroundColor3 = rgb(30, 30, 30)
  111.     RKey.BorderColor3 = rgb(30, 30, 30)
  112.     RKey.Name = "RKey"
  113.     RKey.Position = UDim2.new(0.3,0,0.2,0)
  114.     RKey.Size = UDim2.new(0.1,0,0.1,0)
  115.     RKey.Font = "SourceSansBold"
  116.     RKey.FontSize = "Size32"
  117.     RKey.Text = "R"
  118.     RKey.TextColor3 = rgb(255, 255, 255)
  119.     RKey.MouseButton1Down:connect(function()
  120.         gui.Text = gui.Text .. "R"
  121.     end)
  122.  
  123.     -- Key Y
  124.    
  125.     local TKey = Instance.new("TextButton",SG)
  126.     TKey.BackgroundColor3 = rgb(30, 30, 30)
  127.     TKey.BorderColor3 = rgb(30, 30, 30)
  128.     TKey.Name = "TKey"
  129.     TKey.Position = UDim2.new(0.4,0,0.2,0)
  130.     TKey.Size = UDim2.new(0.1,0,0.1,0)
  131.     TKey.Font = "SourceSansBold"
  132.     TKey.FontSize = "Size32"
  133.     TKey.Text = "T"
  134.     TKey.TextColor3 = rgb(255, 255, 255)
  135.     TKey.MouseButton1Down:connect(function()
  136.         gui.Text = gui.Text .. "T"
  137.     end)
  138.  
  139.     -- Key E
  140.    
  141.     local YKey = Instance.new("TextButton",SG)
  142.     YKey.BackgroundColor3 = rgb(30, 30, 30)
  143.     YKey.BorderColor3 = rgb(30, 30, 30)
  144.     YKey.Name = "YKey"
  145.     YKey.Position = UDim2.new(0.5,0,0.2,0)
  146.     YKey.Size = UDim2.new(0.1,0,0.1,0)
  147.     YKey.Font = "SourceSansBold"
  148.     YKey.FontSize = "Size32"
  149.     YKey.Text = "Y"
  150.     YKey.TextColor3 = rgb(255, 255, 255)
  151.     YKey.MouseButton1Down:connect(function()
  152.         gui.Text = gui.Text .. "Y"
  153.     end)
  154.  
  155.     -- Key E
  156.    
  157.     local UKey = Instance.new("TextButton",SG)
  158.     UKey.BackgroundColor3 = rgb(30, 30, 30)
  159.     UKey.BorderColor3 = rgb(30, 30, 30)
  160.     UKey.Name = "UKey"
  161.     UKey.Position = UDim2.new(0.6,0,0.2,0)
  162.     UKey.Size = UDim2.new(0.1,0,0.1,0)
  163.     UKey.Font = "SourceSansBold"
  164.     UKey.FontSize = "Size32"
  165.     UKey.Text = "U"
  166.     UKey.TextColor3 = rgb(255, 255, 255)
  167.     UKey.MouseButton1Down:connect(function()
  168.         gui.Text = gui.Text .. "U"
  169.     end)
  170.  
  171.     -- Key I
  172.    
  173.     local IKey = Instance.new("TextButton",SG)
  174.     IKey.BackgroundColor3 = rgb(30, 30, 30)
  175.     IKey.BorderColor3 = rgb(30, 30, 30)
  176.     IKey.Name = "IKey"
  177.     IKey.Position = UDim2.new(0.7,0,0.2,0)
  178.     IKey.Size = UDim2.new(0.1,0,0.1,0)
  179.     IKey.Font = "SourceSansBold"
  180.     IKey.FontSize = "Size32"
  181.     IKey.Text = "I"
  182.     IKey.TextColor3 = rgb(255, 255, 255)
  183.     IKey.MouseButton1Down:connect(function()
  184.         gui.Text = gui.Text .. "I"
  185.     end)
  186.  
  187.     -- Key O
  188.    
  189.     local OKey = Instance.new("TextButton",SG)
  190.     OKey.BackgroundColor3 = rgb(30, 30, 30)
  191.     OKey.BorderColor3 = rgb(30, 30, 30)
  192.     OKey.Name = "OKey"
  193.     OKey.Position = UDim2.new(0.8,0,0.2,0)
  194.     OKey.Size = UDim2.new(0.1,0,0.1,0)
  195.     OKey.Font = "SourceSansBold"
  196.     OKey.FontSize = "Size32"
  197.     OKey.Text = "O"
  198.     OKey.TextColor3 = rgb(255, 255, 255)
  199.     OKey.MouseButton1Down:connect(function()
  200.         gui.Text = gui.Text .. "O"
  201.     end)
  202.  
  203.     -- Key P
  204.    
  205.     local PKey = Instance.new("TextButton",SG)
  206.     PKey.BackgroundColor3 = rgb(30, 30, 30)
  207.     PKey.BorderColor3 = rgb(30, 30, 30)
  208.     PKey.Name = "PKey"
  209.     PKey.Position = UDim2.new(0.9,0,0.2,0)
  210.     PKey.Size = UDim2.new(0.1,0,0.1,0)
  211.     PKey.Font = "SourceSansBold"
  212.     PKey.FontSize = "Size32"
  213.     PKey.Text = "P"
  214.     PKey.TextColor3 = rgb(255, 255, 255)
  215.     PKey.MouseButton1Down:connect(function()
  216.         gui.Text = gui.Text .. "P"
  217.     end)
  218.  
  219.     -- Key A Next
  220.    
  221.     local AKey = Instance.new("TextButton",SG)
  222.     AKey.BackgroundColor3 = rgb(30, 30, 30)
  223.     AKey.BorderColor3 = rgb(30, 30, 30)
  224.     AKey.Name = "AKey"
  225.     AKey.Position = UDim2.new(0.05,0,0.3,0)
  226.     AKey.Size = UDim2.new(0.1,0,0.1,0)
  227.     AKey.Font = "SourceSansBold"
  228.     AKey.FontSize = "Size32"
  229.     AKey.Text = "A"
  230.     AKey.TextColor3 = rgb(255, 255, 255)
  231.     AKey.MouseButton1Down:connect(function()
  232.         gui.Text = gui.Text .. "A"
  233.     end)
  234.  
  235.     -- Key S
  236.    
  237.     local SKey = Instance.new("TextButton",SG)
  238.     SKey.BackgroundColor3 = rgb(30, 30, 30)
  239.     SKey.BorderColor3 = rgb(30, 30, 30)
  240.     SKey.Name = "SKey"
  241.     SKey.Position = UDim2.new(0.15,0,0.3,0)
  242.     SKey.Size = UDim2.new(0.1,0,0.1,0)
  243.     SKey.Font = "SourceSansBold"
  244.     SKey.FontSize = "Size32"
  245.     SKey.Text = "S"
  246.     SKey.TextColor3 = rgb(255, 255, 255)
  247.     SKey.MouseButton1Down:connect(function()
  248.         gui.Text = gui.Text .. "S"
  249.     end)
  250.  
  251.     -- Key D
  252.    
  253.     local DKey = Instance.new("TextButton",SG)
  254.     DKey.BackgroundColor3 = rgb(30, 30, 30)
  255.     DKey.BorderColor3 = rgb(30, 30, 30)
  256.     DKey.Name = "DKey"
  257.     DKey.Position = UDim2.new(0.25,0,0.3,0)
  258.     DKey.Size = UDim2.new(0.1,0,0.1,0)
  259.     DKey.Font = "SourceSansBold"
  260.     DKey.FontSize = "Size32"
  261.     DKey.Text = "D"
  262.     DKey.TextColor3 = rgb(255, 255, 255)
  263.     DKey.MouseButton1Down:connect(function()
  264.         gui.Text = gui.Text .. "D"
  265.     end)
  266.  
  267.     -- Key F
  268.    
  269.     local FKey = Instance.new("TextButton",SG)
  270.     FKey.BackgroundColor3 = rgb(30, 30, 30)
  271.     FKey.BorderColor3 = rgb(30, 30, 30)
  272.     FKey.Name = "FKey"
  273.     FKey.Position = UDim2.new(0.35,0,0.3,0)
  274.     FKey.Size = UDim2.new(0.1,0,0.1,0)
  275.     FKey.Font = "SourceSansBold"
  276.     FKey.FontSize = "Size32"
  277.     FKey.Text = "F"
  278.     FKey.TextColor3 = rgb(255, 255, 255)
  279.     FKey.MouseButton1Down:connect(function()
  280.         gui.Text = gui.Text .. "F"
  281.     end)
  282.  
  283.     -- Key G
  284.    
  285.     local GKey = Instance.new("TextButton",SG)
  286.     GKey.BackgroundColor3 = rgb(30, 30, 30)
  287.     GKey.BorderColor3 = rgb(30, 30, 30)
  288.     GKey.Name = "GKey"
  289.     GKey.Position = UDim2.new(0.45,0,0.3,0)
  290.     GKey.Size = UDim2.new(0.1,0,0.1,0)
  291.     GKey.Font = "SourceSansBold"
  292.     GKey.FontSize = "Size32"
  293.     GKey.Text = "G"
  294.     GKey.TextColor3 = rgb(255, 255, 255)
  295.     GKey.MouseButton1Down:connect(function()
  296.         gui.Text = gui.Text .. "G"
  297.     end)
  298.  
  299.     -- Key H
  300.    
  301.     local HKey = Instance.new("TextButton",SG)
  302.     HKey.BackgroundColor3 = rgb(30, 30, 30)
  303.     HKey.BorderColor3 = rgb(30, 30, 30)
  304.     HKey.Name = "HKey"
  305.     HKey.Position = UDim2.new(0.55,0,0.3,0)
  306.     HKey.Size = UDim2.new(0.1,0,0.1,0)
  307.     HKey.Font = "SourceSansBold"
  308.     HKey.FontSize = "Size32"
  309.     HKey.Text = "H"
  310.     HKey.TextColor3 = rgb(255, 255, 255)
  311.     HKey.MouseButton1Down:connect(function()
  312.         gui.Text = gui.Text .. "H"
  313.     end)
  314.  
  315.     -- Key J
  316.    
  317.     local JKey = Instance.new("TextButton",SG)
  318.     JKey.BackgroundColor3 = rgb(30, 30, 30)
  319.     JKey.BorderColor3 = rgb(30, 30, 30)
  320.     JKey.Name = "JKey"
  321.     JKey.Position = UDim2.new(0.65,0,0.3,0)
  322.     JKey.Size = UDim2.new(0.1,0,0.1,0)
  323.     JKey.Font = "SourceSansBold"
  324.     JKey.FontSize = "Size32"
  325.     JKey.Text = "J"
  326.     JKey.TextColor3 = rgb(255, 255, 255)
  327.     JKey.MouseButton1Down:connect(function()
  328.         gui.Text = gui.Text .. "J"
  329.     end)
  330.  
  331.     -- Key K
  332.    
  333.     local KKey = Instance.new("TextButton",SG)
  334.     KKey.BackgroundColor3 = rgb(30, 30, 30)
  335.     KKey.BorderColor3 = rgb(30, 30, 30)
  336.     KKey.Name = "KKey"
  337.     KKey.Position = UDim2.new(0.75,0,0.3,0)
  338.     KKey.Size = UDim2.new(0.1,0,0.1,0)
  339.     KKey.Font = "SourceSansBold"
  340.     KKey.FontSize = "Size32"
  341.     KKey.Text = "K"
  342.     KKey.TextColor3 = rgb(255, 255, 255)
  343.     KKey.MouseButton1Down:connect(function()
  344.         gui.Text = gui.Text .. "K"
  345.     end)
  346.  
  347.     -- Key L
  348.    
  349.     local LKey = Instance.new("TextButton",SG)
  350.     LKey.BackgroundColor3 = rgb(30, 30, 30)
  351.     LKey.BorderColor3 = rgb(30, 30, 30)
  352.     LKey.Name = "LKey"
  353.     LKey.Position = UDim2.new(0.85,0,0.3,0)
  354.     LKey.Size = UDim2.new(0.1,0,0.1,0)
  355.     LKey.Font = "SourceSansBold"
  356.     LKey.FontSize = "Size32"
  357.     LKey.Text = "L"
  358.     LKey.TextColor3 = rgb(255, 255, 255)
  359.     LKey.MouseButton1Down:connect(function()
  360.         gui.Text = gui.Text .. "L"
  361.     end)
  362.  
  363.     -- Key Z Next
  364.    
  365.     local ZKey = Instance.new("TextButton",SG)
  366.     ZKey.BackgroundColor3 = rgb(30, 30, 30)
  367.     ZKey.BorderColor3 = rgb(30, 30, 30)
  368.     ZKey.Name = "ZKey"
  369.     ZKey.Position = UDim2.new(0.175,0,0.4,0)
  370.     ZKey.Size = UDim2.new(0.1,0,0.1,0)
  371.     ZKey.Font = "SourceSansBold"
  372.     ZKey.FontSize = "Size32"
  373.     ZKey.Text = "Z"
  374.     ZKey.TextColor3 = rgb(255, 255, 255)
  375.     ZKey.MouseButton1Down:connect(function()
  376.         gui.Text = gui.Text .. "Z"
  377.     end)
  378.  
  379.     -- Key X
  380.    
  381.     local XKey = Instance.new("TextButton",SG)
  382.     XKey.BackgroundColor3 = rgb(30, 30, 30)
  383.     XKey.BorderColor3 = rgb(30, 30, 30)
  384.     XKey.Name = "XKey"
  385.     XKey.Position = UDim2.new(0.25,0,0.4,0)
  386.     XKey.Size = UDim2.new(0.1,0,0.1,0)
  387.     XKey.Font = "SourceSansBold"
  388.     XKey.FontSize = "Size32"
  389.     XKey.Text = "X"
  390.     XKey.TextColor3 = rgb(255, 255, 255)
  391.     XKey.MouseButton1Down:connect(function()
  392.         gui.Text = gui.Text .. "X"
  393.     end)
  394.  
  395.     -- Key C
  396.    
  397.     local CKey = Instance.new("TextButton",SG)
  398.     CKey.BackgroundColor3 = rgb(30, 30, 30)
  399.     CKey.BorderColor3 = rgb(30, 30, 30)
  400.     CKey.Name = "CKey"
  401.     CKey.Position = UDim2.new(0.35,0,0.4,0)
  402.     CKey.Size = UDim2.new(0.1,0,0.1,0)
  403.     CKey.Font = "SourceSansBold"
  404.     CKey.FontSize = "Size32"
  405.     CKey.Text = "C"
  406.     CKey.TextColor3 = rgb(255, 255, 255)
  407.     CKey.MouseButton1Down:connect(function()
  408.         gui.Text = gui.Text .. "C"
  409.     end)
  410.  
  411.     -- Key V
  412.    
  413.     local VKey = Instance.new("TextButton",SG)
  414.     VKey.BackgroundColor3 = rgb(30, 30, 30)
  415.     VKey.BorderColor3 = rgb(30, 30, 30)
  416.     VKey.Name = "VKey"
  417.     VKey.Position = UDim2.new(0.45,0,0.4,0)
  418.     VKey.Size = UDim2.new(0.1,0,0.1,0)
  419.     VKey.Font = "SourceSansBold"
  420.     VKey.FontSize = "Size32"
  421.     VKey.Text = "V"
  422.     VKey.TextColor3 = rgb(255, 255, 255)
  423.     VKey.MouseButton1Down:connect(function()
  424.         gui.Text = gui.Text .. "V"
  425.     end)
  426.  
  427.     -- Key B
  428.    
  429.     local BKey = Instance.new("TextButton",SG)
  430.     BKey.BackgroundColor3 = rgb(30, 30, 30)
  431.     BKey.BorderColor3 = rgb(30, 30, 30)
  432.     BKey.Name = "BKey"
  433.     BKey.Position = UDim2.new(0.55,0,0.4,0)
  434.     BKey.Size = UDim2.new(0.1,0,0.1,0)
  435.     BKey.Font = "SourceSansBold"
  436.     BKey.FontSize = "Size32"
  437.     BKey.Text = "B"
  438.     BKey.TextColor3 = rgb(255, 255, 255)
  439.     BKey.MouseButton1Down:connect(function()
  440.         gui.Text = gui.Text .. "B"
  441.     end)
  442.  
  443.     -- Key N
  444.    
  445.     local NKey = Instance.new("TextButton",SG)
  446.     NKey.BackgroundColor3 = rgb(30, 30, 30)
  447.     NKey.BorderColor3 = rgb(30, 30, 30)
  448.     NKey.Name = "NKey"
  449.     NKey.Position = UDim2.new(0.65,0,0.4,0)
  450.     NKey.Size = UDim2.new(0.1,0,0.1,0)
  451.     NKey.Font = "SourceSansBold"
  452.     NKey.FontSize = "Size32"
  453.     NKey.Text = "N"
  454.     NKey.TextColor3 = rgb(255, 255, 255)
  455.     NKey.MouseButton1Down:connect(function()
  456.         gui.Text = gui.Text .. "N"
  457.     end)
  458.  
  459.     -- Key M
  460.    
  461.     local MKey = Instance.new("TextButton",SG)
  462.     MKey.BackgroundColor3 = rgb(30, 30, 30)
  463.     MKey.BorderColor3 = rgb(30, 30, 30)
  464.     MKey.Name = "MKey"
  465.     MKey.Position = UDim2.new(0.75,0,0.4,0)
  466.     MKey.Size = UDim2.new(0.1,0,0.1,0)
  467.     MKey.Font = "SourceSansBold"
  468.     MKey.FontSize = "Size32"
  469.     MKey.Text = "M"
  470.     MKey.TextColor3 = rgb(255, 255, 255)
  471.     MKey.MouseButton1Down:connect(function()
  472.         gui.Text = gui.Text .. "M"
  473.     end)
  474.  
  475.     -- Key Space Next
  476.  
  477.     local SpaceKey = Instance.new("TextButton",SG)
  478.     SpaceKey.BackgroundColor3 = rgb(30, 30, 30)
  479.     SpaceKey.BorderColor3 = rgb(30, 30, 30)
  480.     SpaceKey.Name = "SpaceKey"
  481.     SpaceKey.Position = UDim2.new(0.115,0,0.5,0)
  482.     SpaceKey.Size = UDim2.new(0.8,0,0.1,0)
  483.     SpaceKey.Font = "SourceSansBold"
  484.     SpaceKey.FontSize = "Size32"
  485.     SpaceKey.Text = "Space"
  486.     SpaceKey.TextColor3 = rgb(255, 255, 255)
  487.     SpaceKey.MouseButton1Down:connect(function()
  488.         gui.Text = gui.Text .. " "
  489.     end)
  490.     repeat wait() until Done
  491. end
Add Comment
Please, Sign In to add comment