Advertisement
timmie140

fish

Dec 20th, 2024 (edited)
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.01 KB | None | 0 0
  1. -- Create the GUI
  2. local ScreenGui = Instance.new("ScreenGui")
  3. local Frame = Instance.new("Frame")
  4. local TextBox = Instance.new("TextBox")
  5. local SubmitButton = Instance.new("TextButton")
  6. local LootLabsButton = Instance.new("TextButton")
  7. local LinkvertiseButton = Instance.new("TextButton")
  8. local NotificationLabel = Instance.new("TextLabel")
  9.  
  10. -- Parent to PlayerGui
  11. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  12. ScreenGui.Name = "KeySystemGUI"
  13.  
  14. -- Frame
  15. Frame.Parent = ScreenGui
  16. Frame.Size = UDim2.new(0, 300, 0, 200)
  17. Frame.Position = UDim2.new(0.5, -150, 0.5, -100)
  18. Frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  19.  
  20. -- TextBox
  21. TextBox.Parent = Frame
  22. TextBox.Size = UDim2.new(0, 260, 0, 30)
  23. TextBox.Position = UDim2.new(0.5, -130, 0.2, 0)
  24. TextBox.PlaceholderText = "Enter Key Here"
  25. TextBox.Text = ""
  26. TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  27. TextBox.TextColor3 = Color3.fromRGB(0, 0, 0)
  28.  
  29. -- SubmitButton
  30. SubmitButton.Parent = Frame
  31. SubmitButton.Size = UDim2.new(0, 100, 0, 30)
  32. SubmitButton.Position = UDim2.new(0.5, -50, 0.5, -15)
  33. SubmitButton.Text = "Submit"
  34. SubmitButton.BackgroundColor3 = Color3.fromRGB(70, 130, 180)
  35. SubmitButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  36.  
  37. -- LootLabsButton
  38. LootLabsButton.Parent = Frame
  39. LootLabsButton.Size = UDim2.new(0, 130, 0, 30)
  40. LootLabsButton.Position = UDim2.new(0.1, 0, 0.8, 0)
  41. LootLabsButton.Text = "LootLabs"
  42. LootLabsButton.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
  43. LootLabsButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  44.  
  45. -- LinkvertiseButton
  46. LinkvertiseButton.Parent = Frame
  47. LinkvertiseButton.Size = UDim2.new(0, 130, 0, 30)
  48. LinkvertiseButton.Position = UDim2.new(0.6, 0, 0.8, 0)
  49. LinkvertiseButton.Text = "Linkvertise"
  50. LinkvertiseButton.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
  51. LinkvertiseButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  52.  
  53. -- NotificationLabel
  54. NotificationLabel.Parent = ScreenGui
  55. NotificationLabel.Size = UDim2.new(0, 200, 0, 30)
  56. NotificationLabel.Position = UDim2.new(0.5, -100, 1, -40)
  57. NotificationLabel.Text = ""
  58. NotificationLabel.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  59. NotificationLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  60. NotificationLabel.Visible = false
  61.  
  62. -- Save Key Logic
  63. local savedKey = nil
  64. local expirationTime = nil
  65.  
  66. local function saveKey(key)
  67.     savedKey = key
  68.     expirationTime = os.time() + (7 * 60 * 60 + 58 * 60) -- Save for 7 hours, 58 minutes
  69. end
  70.  
  71. local function isKeyExpired()
  72.     return not expirationTime or os.time() > expirationTime
  73. end
  74.  
  75. -- Copy to Clipboard Function
  76. local function copyToClipboard(text)
  77.     setclipboard(text)
  78.     NotificationLabel.Text = "Key system copied successfully!"
  79.     NotificationLabel.Visible = true
  80.     wait(2)
  81.     NotificationLabel.Visible = false
  82. end
  83.  
  84. -- Submit Key Logic
  85. SubmitButton.MouseButton1Click:Connect(function()
  86.     local inputKey = TextBox.Text
  87.     if inputKey ~= "" then
  88.         saveKey(inputKey)
  89.         NotificationLabel.Text = "Key saved successfully!"
  90.         NotificationLabel.Visible = true
  91.         wait(2)
  92.         NotificationLabel.Visible = false
  93.  
  94.         -- Execute Script
  95.         script_key = inputKey
  96.         wait(2)
  97.         loadstring(game:HttpGet("https://api.luarmor.net/files/v3/loaders/d474a99b9800aaa6301496c9ce9834ce.lua"))()
  98.     else
  99.         NotificationLabel.Text = "Please enter a valid key."
  100.         NotificationLabel.Visible = true
  101.         wait(2)
  102.         NotificationLabel.Visible = false
  103.     end
  104. end)
  105.  
  106. -- LootLabs Button Logic
  107. LootLabsButton.MouseButton1Click:Connect(function()
  108.     copyToClipboard("https://ads.luarmor.net/get_key?for=Lootlabs-sMlFsCxnhkOc")
  109. end)
  110.  
  111. -- Linkvertise Button Logic
  112. LinkvertiseButton.MouseButton1Click:Connect(function()
  113.     copyToClipboard("https://ads.luarmor.net/get_key?for=Linkvertise-oVzxwBWgrIWn")
  114. end)
  115.  
  116. -- Check Key on Script Start
  117. if isKeyExpired() then
  118.     NotificationLabel.Text = "Key expired. Please enter a new one."
  119.     NotificationLabel.Visible = true
  120.     wait(3)
  121.     NotificationLabel.Visible = false
  122. end
  123.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement