Advertisement
LSJiqueue

Key System

Jul 31st, 2024
1,190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.11 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local KeySystem = Instance.new("ScreenGui")
  7. local TextBox = Instance.new("TextBox")
  8. local TextButton = Instance.new("TextButton")
  9.  
  10. --Properties:
  11.  
  12. KeySystem.Name = "KeySystem"
  13. KeySystem.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  14. KeySystem.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  15.  
  16. TextBox.Parent = KeySystem
  17. TextBox.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  18. TextBox.BorderColor3 = Color3.fromRGB(255, 255, 255)
  19. TextBox.BorderSizePixel = 2
  20. TextBox.Position = UDim2.new(0.435815156, 0, 0.468982637, 0)
  21. TextBox.Size = UDim2.new(0.138121545, 0, 0.062034741, 0)
  22. TextBox.Font = Enum.Font.DenkOne
  23. TextBox.PlaceholderColor3 = Color3.fromRGB(53, 51, 51)
  24. TextBox.PlaceholderText = "Enter Key"
  25. TextBox.Text = ""
  26. TextBox.TextColor3 = Color3.fromRGB(255, 0, 0)
  27. TextBox.TextScaled = true
  28. TextBox.TextSize = 14.000
  29. TextBox.TextWrapped = true
  30.  
  31. TextButton.Parent = KeySystem
  32. TextButton.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
  33. TextButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  34. TextButton.BorderSizePixel = 2
  35. TextButton.Position = UDim2.new(0.453689158, 0, 0.563275456, 0)
  36. TextButton.Size = UDim2.new(0.102040805, 0, 0.0359801501, 0)
  37. TextButton.Font = Enum.Font.SourceSans
  38. TextButton.Text = "Verify"
  39. TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  40. TextButton.TextScaled = true
  41. TextButton.TextSize = 14.000
  42. TextButton.TextWrapped = true
  43.  
  44. -- Scripts:
  45.  
  46. local function JJKNKP_fake_script() -- KeySystem.LocalScript
  47.     local script = Instance.new('LocalScript', KeySystem)
  48.  
  49.     local verified = game:GetService("Workspace"):FindFirstChild("Verified");
  50.     local button = script.Parent:FindFirstChild("TextButton");
  51.     local submission = script.Parent:FindFirstChild("TextBox")
  52.     local key = "bb0ix";
  53.     if not (verified) then
  54.         warn("Verified Boolean Not Found!");
  55.     end;
  56.     button.MouseButton1Click:Connect(function()
  57.         local noCaseSensitive = submission.Text:lower();
  58.         if (noCaseSensitive == key)  then
  59.             print("Successfully Verified!");
  60.             verified.Value = true;
  61.             script.Parent:Destroy();
  62.         end
  63.     end);
  64.    
  65. end
  66. coroutine.wrap(JJKNKP_fake_script)()
  67.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement