Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[ Hello. This is a login test, you can use this as an example if you are
- making a gui.
- Password and username:
- guy1 : SomeGuy
- PASSWORD AND USERNAME IS CASE SENSITIVE!
- ]]
- -- GUI Objects
- local Text = Instance.new("ScreenGui")
- local Login = Instance.new("Frame")
- local Box = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- local TextLabel_2 = Instance.new("TextLabel")
- local Username = Instance.new("TextBox")
- local Password = Instance.new("TextBox")
- local Goin = Instance.new("TextButton")
- local Exploit = Instance.new("Frame")
- local ExploitBox = Instance.new("Frame")
- local Hi = Instance.new("TextLabel")
- local TextButton = Instance.new("TextButton")
- -- GUI Properties
- Text.Name = "Text"
- Text.Parent = game.CoreGui
- Login.Name = "Login"
- Login.Parent = Text
- Login.Active = true
- Login.BackgroundColor3 = Color3.new(1, 1, 1)
- Login.BorderColor3 = Color3.new(1, 1, 1)
- Login.Draggable = true
- Login.Position = UDim2.new(0, 350, 0, 241)
- Login.Size = UDim2.new(0, 235, 0, 14)
- Box.Name = "Box"
- Box.Parent = Login
- Box.BackgroundColor3 = Color3.new(1, 0.466667, 0.447059)
- Box.BorderColor3 = Color3.new(1, 0.466667, 0.447059)
- Box.Position = UDim2.new(0, 0, 0, 14)
- Box.Size = UDim2.new(0, 235, 0, 204)
- TextLabel.Parent = Box
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BackgroundTransparency = 99
- TextLabel.Position = UDim2.new(0, 18, 0, 0)
- TextLabel.Size = UDim2.new(0, 200, 0, 49)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.FontSize = Enum.FontSize.Size18
- TextLabel.Text = "Username"
- TextLabel.TextColor3 = Color3.new(0, 0, 0)
- TextLabel.TextSize = 18
- TextLabel_2.Parent = Box
- TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel_2.BackgroundTransparency = 99
- TextLabel_2.Position = UDim2.new(0, 18, 0, 74)
- TextLabel_2.Size = UDim2.new(0, 200, 0, 27)
- TextLabel_2.Font = Enum.Font.SourceSans
- TextLabel_2.FontSize = Enum.FontSize.Size18
- TextLabel_2.Text = "Password"
- TextLabel_2.TextColor3 = Color3.new(0, 0, 0)
- TextLabel_2.TextSize = 18
- Username.Name = "Username"
- Username.Parent = Box
- Username.BackgroundColor3 = Color3.new(1, 1, 1)
- Username.BorderColor3 = Color3.new(1, 1, 1)
- Username.Position = UDim2.new(0, 18, 0, 42)
- Username.Size = UDim2.new(0, 200, 0, 30)
- Username.Font = Enum.Font.SourceSans
- Username.FontSize = Enum.FontSize.Size18
- Username.Text = " "
- Username.TextColor3 = Color3.new(0, 0, 0)
- Username.TextSize = 18
- Password.Name = "Password"
- Password.Parent = Box
- Password.BackgroundColor3 = Color3.new(1, 1, 1)
- Password.BorderColor3 = Color3.new(1, 1, 1)
- Password.Position = UDim2.new(0, 18, 0, 102)
- Password.Size = UDim2.new(0, 200, 0, 30)
- Password.Font = Enum.Font.SourceSans
- Password.FontSize = Enum.FontSize.Size18
- Password.Text = " "
- Password.TextColor3 = Color3.new(0, 0, 0)
- Password.TextSize = 18
- Goin.Name = "Go in"
- Goin.Parent = Box
- Goin.BackgroundColor3 = Color3.new(0.290196, 0.580392, 0.870588)
- Goin.BorderColor3 = Color3.new(0.290196, 0.580392, 0.870588)
- Goin.Position = UDim2.new(0, 17, 0, 144)
- Goin.Size = UDim2.new(0, 200, 0, 38)
- Goin.Font = Enum.Font.SourceSans
- Goin.FontSize = Enum.FontSize.Size18
- Goin.Text = "LOGIN"
- Goin.TextSize = 18
- Exploit.Name = "Exploit"
- Exploit.Parent = Text
- Exploit.Active = true
- Exploit.BackgroundColor3 = Color3.new(1, 1, 1)
- Exploit.BorderColor3 = Color3.new(1, 1, 1)
- Exploit.Draggable = true
- Exploit.Position = UDim2.new(0, 471, 0, 54)
- Exploit.Size = UDim2.new(0, 306, 0, 14)
- Exploit.Visible = false
- ExploitBox.Name = "ExploitBox"
- ExploitBox.Parent = Exploit
- ExploitBox.BackgroundColor3 = Color3.new(1, 0.466667, 0.447059)
- ExploitBox.BorderColor3 = Color3.new(1, 0.466667, 0.447059)
- ExploitBox.Position = UDim2.new(0, 0, 0, 14)
- ExploitBox.Size = UDim2.new(0, 306, 0, 165)
- Hi.Name = "Hi"
- Hi.Parent = ExploitBox
- Hi.BackgroundColor3 = Color3.new(1, 1, 1)
- Hi.BackgroundTransparency = 99
- Hi.Size = UDim2.new(0, 306, 0, 165)
- Hi.Font = Enum.Font.SourceSans
- Hi.FontSize = Enum.FontSize.Size96
- Hi.Text = "Hi."
- Hi.TextColor3 = Color3.new(1, 1, 1)
- Hi.TextSize = 100
- TextButton.Parent = Exploit
- TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton.BorderColor3 = Color3.new(1, 1, 1)
- TextButton.Position = UDim2.new(0, 0, 0, 140)
- TextButton.Size = UDim2.new(0, 121, 0, 39)
- TextButton.Font = Enum.Font.SourceSans
- TextButton.FontSize = Enum.FontSize.Size18
- TextButton.Text = "< Go Back <"
- TextButton.TextColor3 = Color3.new(0, 0, 0)
- TextButton.TextSize = 17
- -- Login script!
- Goin.MouseButton1Down:connect(function()
- if Username.Text == "guy1" then
- if Password.Text == "SomeGuy" then
- wait(3)
- Login.Visible = false
- Exploit.Visible = true
- end
- end
- end)
- -- Go back button.
- TextButton.MouseButton1Down:connect(function()
- Exploit.Visible = false
- Login.Visible = true
- Password.Text = ""
- Username.Text = ""
- end)
- -- End. (GUI by haeie)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement