ILovePotato

Untitled

Nov 20th, 2024
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.49 KB | None | 0 0
  1. -- Define the correct key
  2. local correctKey = "UltimateFan" -- Change this to your desired key
  3.  
  4. -- Create UI
  5. local ScreenGui = Instance.new("ScreenGui")
  6. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  7.  
  8. local Frame = Instance.new("Frame")
  9. Frame.Size = UDim2.new(0, 300, 0, 150)
  10. Frame.Position = UDim2.new(0.5, -150, 0.5, -75)
  11. Frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  12. Frame.Parent = ScreenGui
  13. Frame.Active = true
  14. Frame.Draggable = true -- Makes the frame draggable
  15.  
  16. local titleLabel = Instance.new("TextLabel")
  17. titleLabel.Size = UDim2.new(1, 0, 0, 30)
  18. titleLabel.Text = "Enter Key"
  19. titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  20. titleLabel.BackgroundTransparency = 1
  21. titleLabel.Parent = Frame
  22.  
  23. local inputBox = Instance.new("TextBox")
  24. inputBox.Size = UDim2.new(0.8, 0, 0, 30)
  25. inputBox.Position = UDim2.new(0.1, 0, 0.3, 0)
  26. inputBox.PlaceholderText = "Enter your key"
  27. inputBox.Text = ""
  28. inputBox.Parent = Frame
  29.  
  30. local resultLabel = Instance.new("TextLabel")
  31. resultLabel.Size = UDim2.new(1, 0, 0, 30)
  32. resultLabel.Position = UDim2.new(0, 0, 0.6, 0)
  33. resultLabel.Text = ""
  34. resultLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  35. resultLabel.BackgroundTransparency = 1
  36. resultLabel.Parent = Frame
  37.  
  38. local getKeyButton = Instance.new("TextButton")
  39. getKeyButton.Size = UDim2.new(0.4, 0, 0, 30)
  40. getKeyButton.Position = UDim2.new(0.05, 0, 0.8, 0)
  41. getKeyButton.Text = "Get Key"
  42. getKeyButton.Parent = Frame
  43.  
  44. local closeButton = Instance.new("TextButton")
  45. closeButton.Size = UDim2.new(0.4, 0, 0, 30)
  46. closeButton.Position = UDim2.new(0.55, 0, 0.8, 0)
  47. closeButton.Text = "Close"
  48. closeButton.Parent = Frame
  49.  
  50. -- Button functionality
  51. getKeyButton.MouseButton1Click:Connect(function()
  52. setclipboard("https://direct-link.net/1248436/tsb-hub-key") -- Replace with your key link
  53. resultLabel.Text = "Key link copied!"
  54. end)
  55.  
  56. closeButton.MouseButton1Click:Connect(function()
  57. Frame.Visible = false
  58. end)
  59.  
  60. inputBox.FocusLost:Connect(function(enterPressed)
  61. if enterPressed then
  62. if inputBox.Text == correctKey then
  63. resultLabel.Text = "Correct key! Executing script..."
  64. Frame.Visible = false
  65. -- Create GUI
  66. local ScreenGui = Instance.new("ScreenGui")
  67. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  68.  
  69. -- Main Frame (Tsb rom GUI)
  70. local MainFrame = Instance.new("Frame")
  71. MainFrame.Size = UDim2.new(0, 0, 0, 0) -- Start minimized
  72. MainFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  73. MainFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  74. MainFrame.Visible = true -- Always visible but starts closed
  75. MainFrame.Parent = ScreenGui
  76. MainFrame.ClipsDescendants = true -- Prevents overflow during animation
  77. MainFrame.Active = true
  78. MainFrame.Draggable = true -- Makes the frame draggable
  79.  
  80. -- Title Label
  81. local titleLabel = Instance.new("TextLabel")
  82. titleLabel.Size = UDim2.new(1, 0, 0, 50)
  83. titleLabel.Position = UDim2.new(0, 0, 0, 0)
  84. titleLabel.Text = "Tsb hub [V1.0]"
  85. titleLabel.TextSize = 24
  86. titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  87. titleLabel.BackgroundTransparency = 1
  88. titleLabel.Parent = MainFrame
  89.  
  90. -- Define Buttons and Their Actions
  91. local buttons = {
  92. ["Stoic bomb [from kj]"] = function()
  93. loadstring(game:HttpGet("https://pastebin.com/raw/J8AYwEU1"))()
  94. end,
  95. ["FFJ HUB"] = function()
  96. loadstring(game:HttpGet("https://raw.githubusercontent.com/FFJ1/Roblox-Exploits/main/scripts/TSBUtils.lua"))()
  97. end,
  98. ["Kade hub"] = function()
  99. --[[
  100. WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
  101. ]]
  102. getgenv().AutoReport = true
  103. loadstring(game:HttpGet("https://raw.githubusercontent.com/skibiditoiletfan2007/KadeHubRepository/main/Latest.lua"))()
  104. end,
  105. ["KJ SCRIPT"] = function()
  106. loadstring(game:HttpGet("https://pastebin.com/raw/RuvgXNsx"))()
  107. end,
  108. ["SOON!1!1!1"] = function()
  109. print("YAY SOON?")
  110. end
  111. }
  112.  
  113. -- Create Buttons from the Table
  114. local index = 0
  115. for name, action in pairs(buttons) do
  116. local button = Instance.new("TextButton")
  117. button.Size = UDim2.new(0.8, 0, 0, 40)
  118. button.Position = UDim2.new(0.1, 0, 0, 50 + index * 50)
  119. button.Text = name -- Set the button's name
  120. button.TextSize = 18
  121. button.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  122. button.TextColor3 = Color3.fromRGB(255, 255, 255)
  123. button.Parent = MainFrame
  124.  
  125. -- Connect the button to its action
  126. button.MouseButton1Click:Connect(action)
  127. index = index + 1
  128. end
  129.  
  130. -- Open/Close Button (Top-Left Corner)
  131. local toggleButton = Instance.new("TextButton")
  132. toggleButton.Size = UDim2.new(0, 150, 0, 50)
  133. toggleButton.Position = UDim2.new(0, 10, 0, 10) -- Top-left corner
  134. toggleButton.Text = "Open GUI"
  135. toggleButton.TextSize = 20
  136. toggleButton.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  137. toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  138. toggleButton.Parent = ScreenGui
  139.  
  140. -- Animation Functions
  141. local isOpen = false
  142.  
  143. local function toggleGUI()
  144. if isOpen then
  145. -- Close Animation
  146. toggleButton.Text = "Open GUI"
  147. MainFrame:TweenSizeAndPosition(
  148. UDim2.new(0, 0, 0, 0), -- Target size
  149. UDim2.new(0.5, 0, 0.5, 0), -- Target position
  150. Enum.EasingDirection.In,
  151. Enum.EasingStyle.Sine,
  152. 0.5, -- Animation duration
  153. true
  154. )
  155. toggleButton:TweenSize(
  156. UDim2.new(0, 150, 0, 50), -- Shrinks button slightly
  157. Enum.EasingDirection.Out,
  158. Enum.EasingStyle.Back,
  159. 0.3,
  160. true
  161. )
  162. else
  163. -- Open Animation
  164. toggleButton.Text = "Close GUI"
  165. MainFrame:TweenSizeAndPosition(
  166. UDim2.new(0, 300, 0, 300), -- Target size
  167. UDim2.new(0.5, -150, 0.5, -150), -- Target position
  168. Enum.EasingDirection.Out,
  169. Enum.EasingStyle.Sine,
  170. 0.5, -- Animation duration
  171. true
  172. )
  173. toggleButton:TweenSize(
  174. UDim2.new(0, 150, 0, 50), -- Restores button size
  175. Enum.EasingDirection.Out,
  176. Enum.EasingStyle.Back,
  177. 0.3,
  178. true
  179. )
  180. end
  181. isOpen = not isOpen
  182. end
  183.  
  184. -- Connect Toggle Button
  185. toggleButton.MouseButton1Click:Connect(toggleGUI)
  186.  
  187. else
  188. resultLabel.Text = "Wrong key! Rejoin to try again."
  189. wait(3) -- Wait for 3 seconds
  190. game.Players.LocalPlayer:Kick("Wrong key! Rejoin to try again.")
  191. end
  192. end
  193. end)
Add Comment
Please, Sign In to add comment