Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- owner = game.Players["TheOfficialSeb"]
- for i,gUi in pairs(owner.PlayerGui:GetChildren()) do
- gUi:Remove()
- end
- function rgb(RED,GREEN,BLUE)
- local Count = 1 / 255
- --Red Count
- local red = Count * RED
- --Green Count
- local green = Count * GREEN
- --Blue Count
- local blue = Count * BLUE
- --Give Color3
- local FColor = Color3.new(red,green,blue)
- return FColor
- end
- local ScreenGui = Instance.new("ScreenGui",owner.PlayerGui)
- ScreenGui.Name = "Key"
- local OpenKey = Instance.new("TextButton",ScreenGui)
- OpenKey.BackgroundColor3 = rgb(30, 30, 30)
- OpenKey.BorderColor3 = rgb(30, 30, 30)
- OpenKey.Name = "OpenKey"
- OpenKey.Position = UDim2.new(0,0,0.9,0)
- OpenKey.Size = UDim2.new(1,0,0.1,0)
- OpenKey.Font = "SourceSansBold"
- OpenKey.FontSize = "Size32"
- OpenKey.Text = ""
- OpenKey.TextColor3 = rgb(255, 0, 0)
- OpenKey.MouseButton1Down:connect(function()
- print(gk(owner))
- end)
- function gk(plr)
- local Done = false
- local SG = Instance.new("ScreenGui",plr.PlayerGui)
- SG.Name = "Key"
- local gui = Instance.new("TextButton",SG)
- gui.BackgroundColor3 = rgb(30, 30, 30)
- gui.BorderColor3 = rgb(30, 30, 30)
- gui.Name = "gui"
- gui.Position = UDim2.new(0,0,0,0)
- gui.Size = UDim2.new(1,0,0.1,0)
- gui.Font = "SourceSansBold"
- gui.FontSize = "Size32"
- gui.Text = ""
- gui.TextColor3 = rgb(255, 255, 255)
- gui.MouseButton1Down:connect(function()
- local Output = gui.Text
- SG:Remove()
- return Output
- Done = true
- end)
- -- Key Q
- local QKey = Instance.new("TextButton",SG)
- QKey.BackgroundColor3 = rgb(30, 30, 30)
- QKey.BorderColor3 = rgb(30, 30, 30)
- QKey.Name = "QKey"
- QKey.Position = UDim2.new(0,0,0.2,0)
- QKey.Size = UDim2.new(0.1,0,0.1,0)
- QKey.Font = "SourceSansBold"
- QKey.FontSize = "Size32"
- QKey.Text = "Q"
- QKey.TextColor3 = rgb(255, 255, 255)
- QKey.MouseButton1Down:connect(function()
- gui.Text = gui.Text .. "Q"
- end)
- -- Key W
- local WKey = Instance.new("TextButton",SG)
- WKey.BackgroundColor3 = rgb(30, 30, 30)
- WKey.BorderColor3 = rgb(30, 30, 30)
- WKey.Name = "WKey"
- WKey.Position = UDim2.new(0.1,0,0.2,0)
- WKey.Size = UDim2.new(0.1,0,0.1,0)
- WKey.Font = "SourceSansBold"
- WKey.FontSize = "Size32"
- WKey.Text = "W"
- WKey.TextColor3 = rgb(255, 255, 255)
- WKey.MouseButton1Down:connect(function()
- gui.Text = gui.Text .. "W"
- end)
- -- Key R
- local EKey = Instance.new("TextButton",SG)
- EKey.BackgroundColor3 = rgb(30, 30, 30)
- EKey.BorderColor3 = rgb(30, 30, 30)
- EKey.Name = "EKey"
- EKey.Position = UDim2.new(0.2,0,0.2,0)
- EKey.Size = UDim2.new(0.1,0,0.1,0)
- EKey.Font = "SourceSansBold"
- EKey.FontSize = "Size32"
- EKey.Text = "E"
- EKey.TextColor3 = rgb(255, 255, 255)
- EKey.MouseButton1Down:connect(function()
- gui.Text = gui.Text .. "E"
- end)
- -- Key T
- local RKey = Instance.new("TextButton",SG)
- RKey.BackgroundColor3 = rgb(30, 30, 30)
- RKey.BorderColor3 = rgb(30, 30, 30)
- RKey.Name = "RKey"
- RKey.Position = UDim2.new(0.3,0,0.2,0)
- RKey.Size = UDim2.new(0.1,0,0.1,0)
- RKey.Font = "SourceSansBold"
- RKey.FontSize = "Size32"
- RKey.Text = "R"
- RKey.TextColor3 = rgb(255, 255, 255)
- RKey.MouseButton1Down:connect(function()
- gui.Text = gui.Text .. "R"
- end)
- -- Key Y
- local TKey = Instance.new("TextButton",SG)
- TKey.BackgroundColor3 = rgb(30, 30, 30)
- TKey.BorderColor3 = rgb(30, 30, 30)
- TKey.Name = "TKey"
- TKey.Position = UDim2.new(0.4,0,0.2,0)
- TKey.Size = UDim2.new(0.1,0,0.1,0)
- TKey.Font = "SourceSansBold"
- TKey.FontSize = "Size32"
- TKey.Text = "T"
- TKey.TextColor3 = rgb(255, 255, 255)
- TKey.MouseButton1Down:connect(function()
- gui.Text = gui.Text .. "T"
- end)
- -- Key E
- local YKey = Instance.new("TextButton",SG)
- YKey.BackgroundColor3 = rgb(30, 30, 30)
- YKey.BorderColor3 = rgb(30, 30, 30)
- YKey.Name = "YKey"
- YKey.Position = UDim2.new(0.5,0,0.2,0)
- YKey.Size = UDim2.new(0.1,0,0.1,0)
- YKey.Font = "SourceSansBold"
- YKey.FontSize = "Size32"
- YKey.Text = "Y"
- YKey.TextColor3 = rgb(255, 255, 255)
- YKey.MouseButton1Down:connect(function()
- gui.Text = gui.Text .. "Y"
- end)
- -- Key E
- local UKey = Instance.new("TextButton",SG)
- UKey.BackgroundColor3 = rgb(30, 30, 30)
- UKey.BorderColor3 = rgb(30, 30, 30)
- UKey.Name = "UKey"
- UKey.Position = UDim2.new(0.6,0,0.2,0)
- UKey.Size = UDim2.new(0.1,0,0.1,0)
- UKey.Font = "SourceSansBold"
- UKey.FontSize = "Size32"
- UKey.Text = "U"
- UKey.TextColor3 = rgb(255, 255, 255)
- UKey.MouseButton1Down:connect(function()
- gui.Text = gui.Text .. "U"
- end)
- -- Key I
- local IKey = Instance.new("TextButton",SG)
- IKey.BackgroundColor3 = rgb(30, 30, 30)
- IKey.BorderColor3 = rgb(30, 30, 30)
- IKey.Name = "IKey"
- IKey.Position = UDim2.new(0.7,0,0.2,0)
- IKey.Size = UDim2.new(0.1,0,0.1,0)
- IKey.Font = "SourceSansBold"
- IKey.FontSize = "Size32"
- IKey.Text = "I"
- IKey.TextColor3 = rgb(255, 255, 255)
- IKey.MouseButton1Down:connect(function()
- gui.Text = gui.Text .. "I"
- end)
- -- Key O
- local OKey = Instance.new("TextButton",SG)
- OKey.BackgroundColor3 = rgb(30, 30, 30)
- OKey.BorderColor3 = rgb(30, 30, 30)
- OKey.Name = "OKey"
- OKey.Position = UDim2.new(0.8,0,0.2,0)
- OKey.Size = UDim2.new(0.1,0,0.1,0)
- OKey.Font = "SourceSansBold"
- OKey.FontSize = "Size32"
- OKey.Text = "O"
- OKey.TextColor3 = rgb(255, 255, 255)
- OKey.MouseButton1Down:connect(function()
- gui.Text = gui.Text .. "O"
- end)
- -- Key P
- local PKey = Instance.new("TextButton",SG)
- PKey.BackgroundColor3 = rgb(30, 30, 30)
- PKey.BorderColor3 = rgb(30, 30, 30)
- PKey.Name = "PKey"
- PKey.Position = UDim2.new(0.9,0,0.2,0)
- PKey.Size = UDim2.new(0.1,0,0.1,0)
- PKey.Font = "SourceSansBold"
- PKey.FontSize = "Size32"
- PKey.Text = "P"
- PKey.TextColor3 = rgb(255, 255, 255)
- PKey.MouseButton1Down:connect(function()
- gui.Text = gui.Text .. "P"
- end)
- -- Key A Next
- local AKey = Instance.new("TextButton",SG)
- AKey.BackgroundColor3 = rgb(30, 30, 30)
- AKey.BorderColor3 = rgb(30, 30, 30)
- AKey.Name = "AKey"
- AKey.Position = UDim2.new(0.05,0,0.3,0)
- AKey.Size = UDim2.new(0.1,0,0.1,0)
- AKey.Font = "SourceSansBold"
- AKey.FontSize = "Size32"
- AKey.Text = "A"
- AKey.TextColor3 = rgb(255, 255, 255)
- AKey.MouseButton1Down:connect(function()
- gui.Text = gui.Text .. "A"
- end)
- -- Key S
- local SKey = Instance.new("TextButton",SG)
- SKey.BackgroundColor3 = rgb(30, 30, 30)
- SKey.BorderColor3 = rgb(30, 30, 30)
- SKey.Name = "SKey"
- SKey.Position = UDim2.new(0.15,0,0.3,0)
- SKey.Size = UDim2.new(0.1,0,0.1,0)
- SKey.Font = "SourceSansBold"
- SKey.FontSize = "Size32"
- SKey.Text = "S"
- SKey.TextColor3 = rgb(255, 255, 255)
- SKey.MouseButton1Down:connect(function()
- gui.Text = gui.Text .. "S"
- end)
- -- Key D
- local DKey = Instance.new("TextButton",SG)
- DKey.BackgroundColor3 = rgb(30, 30, 30)
- DKey.BorderColor3 = rgb(30, 30, 30)
- DKey.Name = "DKey"
- DKey.Position = UDim2.new(0.25,0,0.3,0)
- DKey.Size = UDim2.new(0.1,0,0.1,0)
- DKey.Font = "SourceSansBold"
- DKey.FontSize = "Size32"
- DKey.Text = "D"
- DKey.TextColor3 = rgb(255, 255, 255)
- DKey.MouseButton1Down:connect(function()
- gui.Text = gui.Text .. "D"
- end)
- -- Key F
- local FKey = Instance.new("TextButton",SG)
- FKey.BackgroundColor3 = rgb(30, 30, 30)
- FKey.BorderColor3 = rgb(30, 30, 30)
- FKey.Name = "FKey"
- FKey.Position = UDim2.new(0.35,0,0.3,0)
- FKey.Size = UDim2.new(0.1,0,0.1,0)
- FKey.Font = "SourceSansBold"
- FKey.FontSize = "Size32"
- FKey.Text = "F"
- FKey.TextColor3 = rgb(255, 255, 255)
- FKey.MouseButton1Down:connect(function()
- gui.Text = gui.Text .. "F"
- end)
- -- Key G
- local GKey = Instance.new("TextButton",SG)
- GKey.BackgroundColor3 = rgb(30, 30, 30)
- GKey.BorderColor3 = rgb(30, 30, 30)
- GKey.Name = "GKey"
- GKey.Position = UDim2.new(0.45,0,0.3,0)
- GKey.Size = UDim2.new(0.1,0,0.1,0)
- GKey.Font = "SourceSansBold"
- GKey.FontSize = "Size32"
- GKey.Text = "G"
- GKey.TextColor3 = rgb(255, 255, 255)
- GKey.MouseButton1Down:connect(function()
- gui.Text = gui.Text .. "G"
- end)
- -- Key H
- local HKey = Instance.new("TextButton",SG)
- HKey.BackgroundColor3 = rgb(30, 30, 30)
- HKey.BorderColor3 = rgb(30, 30, 30)
- HKey.Name = "HKey"
- HKey.Position = UDim2.new(0.55,0,0.3,0)
- HKey.Size = UDim2.new(0.1,0,0.1,0)
- HKey.Font = "SourceSansBold"
- HKey.FontSize = "Size32"
- HKey.Text = "H"
- HKey.TextColor3 = rgb(255, 255, 255)
- HKey.MouseButton1Down:connect(function()
- gui.Text = gui.Text .. "H"
- end)
- -- Key J
- local JKey = Instance.new("TextButton",SG)
- JKey.BackgroundColor3 = rgb(30, 30, 30)
- JKey.BorderColor3 = rgb(30, 30, 30)
- JKey.Name = "JKey"
- JKey.Position = UDim2.new(0.65,0,0.3,0)
- JKey.Size = UDim2.new(0.1,0,0.1,0)
- JKey.Font = "SourceSansBold"
- JKey.FontSize = "Size32"
- JKey.Text = "J"
- JKey.TextColor3 = rgb(255, 255, 255)
- JKey.MouseButton1Down:connect(function()
- gui.Text = gui.Text .. "J"
- end)
- -- Key K
- local KKey = Instance.new("TextButton",SG)
- KKey.BackgroundColor3 = rgb(30, 30, 30)
- KKey.BorderColor3 = rgb(30, 30, 30)
- KKey.Name = "KKey"
- KKey.Position = UDim2.new(0.75,0,0.3,0)
- KKey.Size = UDim2.new(0.1,0,0.1,0)
- KKey.Font = "SourceSansBold"
- KKey.FontSize = "Size32"
- KKey.Text = "K"
- KKey.TextColor3 = rgb(255, 255, 255)
- KKey.MouseButton1Down:connect(function()
- gui.Text = gui.Text .. "K"
- end)
- -- Key L
- local LKey = Instance.new("TextButton",SG)
- LKey.BackgroundColor3 = rgb(30, 30, 30)
- LKey.BorderColor3 = rgb(30, 30, 30)
- LKey.Name = "LKey"
- LKey.Position = UDim2.new(0.85,0,0.3,0)
- LKey.Size = UDim2.new(0.1,0,0.1,0)
- LKey.Font = "SourceSansBold"
- LKey.FontSize = "Size32"
- LKey.Text = "L"
- LKey.TextColor3 = rgb(255, 255, 255)
- LKey.MouseButton1Down:connect(function()
- gui.Text = gui.Text .. "L"
- end)
- -- Key Z Next
- local ZKey = Instance.new("TextButton",SG)
- ZKey.BackgroundColor3 = rgb(30, 30, 30)
- ZKey.BorderColor3 = rgb(30, 30, 30)
- ZKey.Name = "ZKey"
- ZKey.Position = UDim2.new(0.175,0,0.4,0)
- ZKey.Size = UDim2.new(0.1,0,0.1,0)
- ZKey.Font = "SourceSansBold"
- ZKey.FontSize = "Size32"
- ZKey.Text = "Z"
- ZKey.TextColor3 = rgb(255, 255, 255)
- ZKey.MouseButton1Down:connect(function()
- gui.Text = gui.Text .. "Z"
- end)
- -- Key X
- local XKey = Instance.new("TextButton",SG)
- XKey.BackgroundColor3 = rgb(30, 30, 30)
- XKey.BorderColor3 = rgb(30, 30, 30)
- XKey.Name = "XKey"
- XKey.Position = UDim2.new(0.25,0,0.4,0)
- XKey.Size = UDim2.new(0.1,0,0.1,0)
- XKey.Font = "SourceSansBold"
- XKey.FontSize = "Size32"
- XKey.Text = "X"
- XKey.TextColor3 = rgb(255, 255, 255)
- XKey.MouseButton1Down:connect(function()
- gui.Text = gui.Text .. "X"
- end)
- -- Key C
- local CKey = Instance.new("TextButton",SG)
- CKey.BackgroundColor3 = rgb(30, 30, 30)
- CKey.BorderColor3 = rgb(30, 30, 30)
- CKey.Name = "CKey"
- CKey.Position = UDim2.new(0.35,0,0.4,0)
- CKey.Size = UDim2.new(0.1,0,0.1,0)
- CKey.Font = "SourceSansBold"
- CKey.FontSize = "Size32"
- CKey.Text = "C"
- CKey.TextColor3 = rgb(255, 255, 255)
- CKey.MouseButton1Down:connect(function()
- gui.Text = gui.Text .. "C"
- end)
- -- Key V
- local VKey = Instance.new("TextButton",SG)
- VKey.BackgroundColor3 = rgb(30, 30, 30)
- VKey.BorderColor3 = rgb(30, 30, 30)
- VKey.Name = "VKey"
- VKey.Position = UDim2.new(0.45,0,0.4,0)
- VKey.Size = UDim2.new(0.1,0,0.1,0)
- VKey.Font = "SourceSansBold"
- VKey.FontSize = "Size32"
- VKey.Text = "V"
- VKey.TextColor3 = rgb(255, 255, 255)
- VKey.MouseButton1Down:connect(function()
- gui.Text = gui.Text .. "V"
- end)
- -- Key B
- local BKey = Instance.new("TextButton",SG)
- BKey.BackgroundColor3 = rgb(30, 30, 30)
- BKey.BorderColor3 = rgb(30, 30, 30)
- BKey.Name = "BKey"
- BKey.Position = UDim2.new(0.55,0,0.4,0)
- BKey.Size = UDim2.new(0.1,0,0.1,0)
- BKey.Font = "SourceSansBold"
- BKey.FontSize = "Size32"
- BKey.Text = "B"
- BKey.TextColor3 = rgb(255, 255, 255)
- BKey.MouseButton1Down:connect(function()
- gui.Text = gui.Text .. "B"
- end)
- -- Key N
- local NKey = Instance.new("TextButton",SG)
- NKey.BackgroundColor3 = rgb(30, 30, 30)
- NKey.BorderColor3 = rgb(30, 30, 30)
- NKey.Name = "NKey"
- NKey.Position = UDim2.new(0.65,0,0.4,0)
- NKey.Size = UDim2.new(0.1,0,0.1,0)
- NKey.Font = "SourceSansBold"
- NKey.FontSize = "Size32"
- NKey.Text = "N"
- NKey.TextColor3 = rgb(255, 255, 255)
- NKey.MouseButton1Down:connect(function()
- gui.Text = gui.Text .. "N"
- end)
- -- Key M
- local MKey = Instance.new("TextButton",SG)
- MKey.BackgroundColor3 = rgb(30, 30, 30)
- MKey.BorderColor3 = rgb(30, 30, 30)
- MKey.Name = "MKey"
- MKey.Position = UDim2.new(0.75,0,0.4,0)
- MKey.Size = UDim2.new(0.1,0,0.1,0)
- MKey.Font = "SourceSansBold"
- MKey.FontSize = "Size32"
- MKey.Text = "M"
- MKey.TextColor3 = rgb(255, 255, 255)
- MKey.MouseButton1Down:connect(function()
- gui.Text = gui.Text .. "M"
- end)
- -- Key Space Next
- local SpaceKey = Instance.new("TextButton",SG)
- SpaceKey.BackgroundColor3 = rgb(30, 30, 30)
- SpaceKey.BorderColor3 = rgb(30, 30, 30)
- SpaceKey.Name = "SpaceKey"
- SpaceKey.Position = UDim2.new(0.115,0,0.5,0)
- SpaceKey.Size = UDim2.new(0.8,0,0.1,0)
- SpaceKey.Font = "SourceSansBold"
- SpaceKey.FontSize = "Size32"
- SpaceKey.Text = "Space"
- SpaceKey.TextColor3 = rgb(255, 255, 255)
- SpaceKey.MouseButton1Down:connect(function()
- gui.Text = gui.Text .. " "
- end)
- repeat wait() until Done
- end
Add Comment
Please, Sign In to add comment