Advertisement
1111sljjhela

key system

Sep 25th, 2022
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
  2. local Player = game.Players.LocalPlayer
  3. local Window = OrionLib:MakeWindow({Name = "D-Security Lock System", HidePremium = false, SaveConfig = true, IntroText = "Key System"})
  4. local Settings = {
  5. Key = "Hello",
  6. Input = "",
  7. }
  8. OrionLib:MakeNotification({
  9. Name = "Logged In!",
  10. Content = "You are logged in as "..Player.Name.. "." ,
  11. Image = "rbxassetid://4483345998",
  12. Time = 5
  13. })
  14. function MakeScriptHub()
  15. local Window = OrionLib:MakeWindow({Name = "D-Security", HidePremium = true, SaveConfig = true, IntroText = "D-Security"})
  16. end
  17.  
  18. function CorrectKeyNotification()
  19. OrionLib:MakeNotification({
  20. Name = "Correct Key",
  21. Content = "Correct Key - Loading GUI now!" ,
  22. Image = "rbxassetid://4483345998",
  23. Time = 5
  24. })
  25. end
  26. function IncorrectKeyNotification()
  27. OrionLib:MakeNotification({
  28. Name = "Incorrect Key",
  29. Content = "Incorrect key - Please Try Again!" ,
  30. Image = "rbxassetid://4483345998",
  31. Time = 5
  32. })
  33. end
  34. local Tab = Window:MakeTab({
  35. Name = "Key Tab",
  36. Icon = "rbxassetid://4483345998",
  37. PremiumOnly = false
  38. })
  39. Tab:AddTextbox({
  40. Name = "Enter Key",
  41. Default = "",
  42. TextDisappear = true,
  43. Callback = function(Value)
  44. Settings.Input = Value
  45. end
  46. })
  47. Tab:AddButton({
  48. Name = "Check Key",
  49. Callback = function()
  50. if Settings.Input == Settings.Key then
  51. MakeScriptHub()
  52. CorrectKeyNotification()
  53. else
  54. IncorrectKeyNotification()
  55. end
  56. end
  57. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement