Advertisement
Guest User

Choulee's Script Login System

a guest
Sep 19th, 2019
505
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. Username = "Choulee" --Change to your details
  2. Password = "Yes" --Change to your details
  3.  
  4. PasswordBox = script.Parent.Parent.passbox
  5. UsernameBox = script.Parent.Parent.userbox
  6. ScreenGui = script.Parent.Parent.Parent.Parent.ScreenGui
  7.  
  8.  
  9. script.Parent.MouseButton1Click:Connect(function()
  10. if UsernameBox.Text == Username then
  11. print("Checking Username..")
  12. wait(.1)
  13. print("Done")
  14. if PasswordBox.Text == Password then
  15. print("Checking Password..")
  16. wait(.1)
  17. print("Done")
  18. script.Parent.Text = "Finishing"
  19. ScreenGui.LoginFrame.Visible = false
  20. ScreenGui.MainFrame.Visible = true
  21. ScreenGui.OptionPickerFrame.Visible = true
  22. end
  23. else
  24. print("Invalid Username Or Password")
  25. game:GetService("Players").LocalPlayer:Kick("Invalid Username Or Password")
  26. end
  27. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement