Advertisement
polleser

BGSI

Apr 16th, 2025
2,372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.27 KB | None | 0 0
  1. -- SETTINGS
  2. local correctKey = "BestBGSIFr"
  3. local keyFileName = "BestScriptsKey.txt"
  4. local discordInvite = "https://loot-link.com/s?9iGa9yzr" -- Updated link
  5.  
  6. -- COPY TO CLIPBOARD
  7. setclipboard(discordInvite)
  8. game.StarterGui:SetCore("SendNotification", {
  9. Title = "Best Scripts",
  10. Text = "LootLab invite copied to clipboard!",
  11. Duration = 5
  12. })
  13.  
  14. -- SERVICES
  15. local player = game.Players.LocalPlayer
  16. local tweenService = game:GetService("TweenService")
  17. local uis = game:GetService("UserInputService")
  18.  
  19. -- FILE SYSTEM (check for saved key)
  20. local savedKey
  21. pcall(function()
  22. if isfile and isfile(keyFileName) then
  23. savedKey = readfile(keyFileName)
  24. end
  25. end)
  26.  
  27. -- VALIDATE SAVED KEY
  28. if savedKey == correctKey then
  29. print("Key already saved and valid.")
  30. loadstring(game:HttpGet('https://api.luarmor.net/files/v3/loaders/49f02b0d8c1f60207c84ae76e12abc1e.lua'))()
  31. return
  32. end
  33.  
  34. -- GUI SETUP
  35. local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
  36. gui.Name = "BestScriptsKeyUI"
  37. gui.ResetOnSpawn = false
  38.  
  39. local blur = Instance.new("BlurEffect", game.Lighting)
  40. blur.Size = 12
  41.  
  42. local frame = Instance.new("Frame", gui)
  43. frame.Size = UDim2.new(0, 350, 0, 180)
  44. frame.Position = UDim2.new(0.5, -175, 1, 200)
  45. frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  46. frame.BorderSizePixel = 0
  47. frame.AnchorPoint = Vector2.new(0.5, 0.5)
  48. frame.ClipsDescendants = true
  49. frame.Name = "KeyFrame"
  50.  
  51. tweenService:Create(frame, TweenInfo.new(0.5, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {
  52. Position = UDim2.new(0.5, -175, 0.5, 0)
  53. }):Play()
  54.  
  55. -- Drag Support
  56. local dragging, dragInput, dragStart, startPos
  57. frame.InputBegan:Connect(function(input)
  58. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  59. dragging = true
  60. dragStart = input.Position
  61. startPos = frame.Position
  62.  
  63. input.Changed:Connect(function()
  64. if input.UserInputState == Enum.UserInputState.End then
  65. dragging = false
  66. end
  67. end)
  68. end
  69. end)
  70.  
  71. uis.InputChanged:Connect(function(input)
  72. if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
  73. local delta = input.Position - dragStart
  74. frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X,
  75. startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  76. end
  77. end)
  78.  
  79. -- TextBox
  80. local input = Instance.new("TextBox", frame)
  81. input.PlaceholderText = "Enter your access key..."
  82. input.Size = UDim2.new(0.9, 0, 0, 40)
  83. input.Position = UDim2.new(0.05, 0, 0, 30)
  84. input.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  85. input.TextColor3 = Color3.fromRGB(255, 255, 255)
  86. input.ClearTextOnFocus = false
  87. input.Text = ""
  88. input.Font = Enum.Font.Gotham
  89. input.TextSize = 16
  90. input.BorderSizePixel = 0
  91.  
  92. -- Button
  93. local button = Instance.new("TextButton", frame)
  94. button.Text = "Submit"
  95. button.Size = UDim2.new(0.9, 0, 0, 35)
  96. button.Position = UDim2.new(0.05, 0, 0, 90)
  97. button.BackgroundColor3 = Color3.fromRGB(70, 130, 180)
  98. button.TextColor3 = Color3.fromRGB(255, 255, 255)
  99. button.Font = Enum.Font.GothamBold
  100. button.TextSize = 16
  101. button.BorderSizePixel = 0
  102.  
  103. -- Label
  104. local label = Instance.new("TextLabel", frame)
  105. label.Text = "Best Scripts | Key System"
  106. label.Size = UDim2.new(1, 0, 0, 25)
  107. label.Position = UDim2.new(0, 0, 0, 0)
  108. label.BackgroundTransparency = 1
  109. label.TextColor3 = Color3.fromRGB(255, 255, 255)
  110. label.Font = Enum.Font.GothamSemibold
  111. label.TextSize = 16
  112.  
  113. -- Callback
  114. button.MouseButton1Click:Connect(function()
  115. local enteredKey = input.Text
  116. if enteredKey == correctKey then
  117. label.Text = "Key correct! Loading..."
  118. pcall(function()
  119. if writefile then
  120. writefile(keyFileName, enteredKey)
  121. end
  122. end)
  123.  
  124. tweenService:Create(frame, TweenInfo.new(0.5, Enum.EasingStyle.Quint, Enum.EasingDirection.In), {
  125. Position = UDim2.new(0.5, -175, 1, 200)
  126. }):Play()
  127. task.wait(0.6)
  128. gui:Destroy()
  129. blur:Destroy()
  130.  
  131. loadstring(game:HttpGet('https://api.luarmor.net/files/v3/loaders/49f02b0d8c1f60207c84ae76e12abc1e.lua'))()
  132. else
  133. label.Text = "Invalid key. Get it from our LootLab!"
  134. input.Text = ""
  135. end
  136. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement