Advertisement
ILovePotato

Untitled

Dec 14th, 2024
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.96 KB | None | 0 0
  1. Made by
  2. --JaimeRoblox1234566--
  3. --Enjoy--
  4.  
  5. -- Create a ScreenGui
  6. local screenGui = Instance.new("ScreenGui")
  7. screenGui.Parent = game.CoreGui -- Add to CoreGui to make it universal
  8.  
  9. -- Create a scrolling frame to hold all the buttons
  10. local scrollFrame = Instance.new("ScrollingFrame")
  11. scrollFrame.Name = "ButtonScrollFrame"
  12. scrollFrame.Parent = screenGui
  13. scrollFrame.Size = UDim2.new(0, 250, 0, 400) -- Size of the scrollable area
  14. scrollFrame.Position = UDim2.new(0.5, -125, 0.5, -200) -- Centered on the screen
  15. scrollFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) -- Background color
  16. scrollFrame.ScrollBarThickness = 8 -- Thickness of the scroll bar
  17. scrollFrame.CanvasSize = UDim2.new(0, 0, 0, 0) -- Initially set the canvas size to be dynamic
  18. scrollFrame.ClipsDescendants = true -- Clips the buttons inside the frame
  19. scrollFrame.Visible = false -- Initially hide the scrollFrame
  20.  
  21. -- Add a Title at the top of the frame
  22. local titleLabel = Instance.new("TextLabel")
  23. titleLabel.Parent = scrollFrame
  24. titleLabel.Size = UDim2.new(1, 0, 0, 40) -- Full width, 40px height
  25. titleLabel.Position = UDim2.new(0, 0, 0, 0) -- Top of the frame
  26. titleLabel.BackgroundTransparency = 1 -- Transparent background
  27. titleLabel.Text = "Slap Battles | A Hub That Exist" -- Title text
  28. titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255) -- White text
  29. titleLabel.Font = Enum.Font.GothamBold -- Bold, clean font
  30. titleLabel.TextSize = 18 -- Text size
  31. titleLabel.TextWrapped = true -- Wrap text if needed
  32. titleLabel.ZIndex = 2 -- Ensure it appears above other elements
  33.  
  34. -- Create a UIListLayout to arrange the buttons in a vertical layout
  35. local listLayout = Instance.new("UIListLayout")
  36. listLayout.Parent = scrollFrame
  37. listLayout.Padding = UDim.new(0, 10) -- Padding between buttons
  38. listLayout.FillDirection = Enum.FillDirection.Vertical -- Arrange vertically
  39. listLayout.SortOrder = Enum.SortOrder.LayoutOrder
  40.  
  41. -- Function to create a toggleable "Rhythm Spam" button
  42. local function createRhythmSpamButton()
  43. local rhythmButton = Instance.new("TextButton")
  44. rhythmButton.Parent = scrollFrame
  45. rhythmButton.Size = UDim2.new(0, 220, 0, 50) -- Button size
  46. rhythmButton.Text = "Rhythm Spam" -- Button text
  47. rhythmButton.BackgroundColor3 = Color3.fromRGB(30, 30, 30) -- Dark background
  48. rhythmButton.TextColor3 = Color3.fromRGB(255, 255, 255) -- White text
  49. rhythmButton.Font = Enum.Font.GothamBold -- Sleek font
  50. rhythmButton.TextSize = 18 -- Text size
  51. rhythmButton.BorderSizePixel = 0 -- Remove border
  52.  
  53. -- Add rounded corners
  54. local corner = Instance.new("UICorner")
  55. corner.CornerRadius = UDim.new(0, 12) -- Rounded edges
  56. corner.Parent = rhythmButton
  57.  
  58. -- Create the toggleable cube
  59. local cube = Instance.new("Frame")
  60. cube.Parent = rhythmButton
  61. cube.Size = UDim2.new(0, 20, 0, 20) -- Cube size
  62. cube.Position = UDim2.new(1, -30, 0.5, -10) -- Cube aligned to the right
  63. cube.BackgroundColor3 = Color3.fromRGB(128, 128, 128) -- Gray color by default
  64.  
  65. -- Add rounded corners to the cube
  66. local cubeCorner = Instance.new("UICorner")
  67. cubeCorner.CornerRadius = UDim.new(0, 5) -- Rounded edges for the cube
  68. cubeCorner.Parent = cube
  69.  
  70. -- Toggle state for the cube
  71. local isBlue = false
  72. rhythmButton.MouseButton1Click:Connect(function()
  73. if isBlue then
  74. cube.BackgroundColor3 = Color3.fromRGB(128, 128, 128) -- Change back to gray
  75. else
  76. cube.BackgroundColor3 = Color3.fromRGB(0, 170, 255) -- Change to blue
  77. end
  78. isBlue = not isBlue -- Toggle the state
  79. end)
  80. end
  81.  
  82. -- Function to create buttons dynamically from a table
  83. local function createButtons(buttonConfigs)
  84. for _, config in ipairs(buttonConfigs) do
  85. local button = Instance.new("TextButton")
  86. button.Name = config.name
  87. button.Parent = scrollFrame
  88. button.Size = UDim2.new(0, 220, 0, 50) -- Button dimensions
  89. button.Text = config.name -- Button text
  90. button.BackgroundColor3 = Color3.fromRGB(30, 30, 30) -- Dark background
  91. button.TextColor3 = Color3.fromRGB(255, 255, 255) -- White text
  92. button.Font = Enum.Font.GothamBold -- Sleek font
  93. button.TextSize = 18 -- Text size
  94. button.BorderSizePixel = 0 -- Remove border
  95.  
  96. -- Add rounded corners
  97. local corner = Instance.new("UICorner")
  98. corner.CornerRadius = UDim.new(0, 12) -- Rounded edges
  99. corner.Parent = button
  100.  
  101. -- Add a gradient
  102. local gradient = Instance.new("UIGradient")
  103. gradient.Color = ColorSequence.new{
  104. ColorSequenceKeypoint.new(0, Color3.fromRGB(0, 170, 255)), -- Blue
  105. ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 255, 127)) -- Green
  106. }
  107. gradient.Rotation = 45 -- Diagonal gradient
  108. gradient.Parent = button
  109.  
  110. -- Button hover effect
  111. button.MouseEnter:Connect(function()
  112. button:TweenSize(UDim2.new(0, 240, 0, 60), "Out", "Quad", 0.2, true) -- Grow on hover
  113. button.TextSize = 20
  114. end)
  115.  
  116. button.MouseLeave:Connect(function()
  117. button:TweenSize(UDim2.new(0, 220, 0, 50), "Out", "Quad", 0.2, true) -- Shrink back
  118. button.TextSize = 18
  119. end)
  120.  
  121. -- Attach the provided function to the button
  122. button.MouseButton1Click:Connect(function()
  123. if config.script then
  124. pcall(config.script) -- Safely execute the script
  125. else
  126. print(button.Name .. " clicked!") -- Default action
  127. end
  128. end)
  129. end
  130.  
  131. -- Update the canvas size of the ScrollingFrame to fit all buttons
  132. scrollFrame.CanvasSize = UDim2.new(0, 0, 0, listLayout.AbsoluteContentSize.Y + 10)
  133. end
  134.  
  135. -- Example configuration for buttons
  136. local buttonConfigs = {
  137. {name = "Free Titan", script = function() loadstring(game:HttpGet("https://pastebin.com/raw/qFehGGN1"))() end},
  138. {name = "Anti Ragdoll", script = function() loadstring(game:HttpGet("https://pastebin.com/raw/v88jxFue"))() end},
  139. {name = "Unlock All Gloves", script = function() loadstring(game:HttpGet("https://pastebin.com/raw/PAHTJTJM"))() end},
  140. {name = "Slap Aura", script = function() loadstring(game:HttpGet("https://raw.githubusercontent.com/Bilmemi/bestaura/main/semihu803"))() end},
  141. {name = "Anti Void", script = function() loadstring(game:HttpGet("https://pastebin.com/raw/3KQptdmK"))() end},
  142. {name = "Spam Defaut Ability", script = function() loadstring(game:HttpGet("https://pastebin.com/raw/NcV5NwaT"))() end},
  143. {name = "Troll gui", script = function() loadstring(game:HttpGet("https://pastebin.com/raw/hyn8AWH2"))() end},
  144. {name = "Fling All", script = function() loadstring(game:HttpGet("https://pastebin.com/raw/zqyDSUWX"))() end},
  145. {name = "Infinite Yield", script = function() loadstring(game:HttpGet('https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source'))() end},
  146. {name = "Nameless admin", script = function() loadstring(game:HttpGet('https://raw.githubusercontent.com/FilteringEnabled/NamelessAdmin/main/Source'))() end},
  147. }
  148.  
  149. -- Create buttons using the configuration table
  150. createButtons(buttonConfigs)
  151.  
  152. -- Add the "Rhythm Spam" button
  153. createRhythmSpamButton()
  154.  
  155. -- Create Open/Close button at the middle left
  156. local openCloseButton = Instance.new("TextButton")
  157. openCloseButton.Name = "OpenCloseButton"
  158. openCloseButton.Parent = screenGui
  159. openCloseButton.Size = UDim2.new(0, 200, 0, 50) -- Button dimensions
  160. openCloseButton.Position = UDim2.new(0, 10, 0.5, -25) -- Middle left
  161. openCloseButton.Text = "Slap Battles Hub"
  162. openCloseButton.BackgroundColor3 = Color3.fromRGB(30, 30, 30) -- Dark background
  163. openCloseButton.TextColor3 = Color3.fromRGB(255, 255, 255) -- White text
  164. openCloseButton.Font = Enum.Font.GothamBold -- Sleek font
  165. openCloseButton.TextSize = 18 -- Text size
  166. openCloseButton.BorderSizePixel = 0 -- Remove border
  167.  
  168. -- Add rounded corners to the Open/Close button
  169. local corner = Instance.new("UICorner")
  170. corner.CornerRadius = UDim.new(0, 12) -- Rounded edges
  171. corner.Parent = openCloseButton
  172.  
  173. -- Add gradient effect to Open/Close button
  174. local gradient = Instance.new("UIGradient")
  175. gradient.Color = ColorSequence.new{
  176. ColorSequenceKeypoint.new(0, Color3.fromRGB(0, 170, 255)), -- Blue
  177. ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 255, 127)) -- Green
  178. }
  179. gradient.Rotation = 45 -- Diagonal gradient
  180. gradient.Parent = openCloseButton
  181.  
  182. -- Add a function to toggle visibility and stylish open/close effects
  183. local guiOpen = false -- To track if the GUI is open or closed
  184.  
  185. openCloseButton.MouseButton1Click:Connect(function()
  186. if guiOpen then
  187. -- Closing Effect
  188. scrollFrame:TweenSize(UDim2.new(0, 250, 0, 0), "Out", "Quad", 0.5, true, function()
  189. scrollFrame.Visible = false
  190. end)
  191. guiOpen = false
  192. else
  193. -- Opening Effect
  194. scrollFrame.Visible = true
  195. scrollFrame:TweenSize(UDim2.new(0, 250, 0, 400), "Out", "Quad", 0.5, true)
  196. guiOpen = true
  197. end
  198. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement