Advertisement
Reksplay

Grow A Garden Reks Gui Full code

Jun 6th, 2025 (edited)
709
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.87 KB | None | 0 0
  1. -- Roblox GUI Script with super slow dupe and button text updates + Close Button --
  2.  
  3. local Players = game:GetService("Players")
  4. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  5. local player = Players.LocalPlayer
  6. local playerGui = player:WaitForChild("PlayerGui")
  7.  
  8. -- Create ScreenGui
  9. local screenGui = Instance.new("ScreenGui")
  10. screenGui.Name = "ReksDupeGui"
  11. screenGui.Parent = playerGui
  12. screenGui.ResetOnSpawn = false
  13.  
  14. -- Main Frame
  15. local frame = Instance.new("Frame")
  16. frame.Size = UDim2.new(0, 300, 0, 350)
  17. frame.Position = UDim2.new(0.5, -150, 0.5, -175)
  18. frame.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  19. frame.Active = true
  20. frame.Draggable = true
  21. frame.Parent = screenGui
  22.  
  23. local uicorner = Instance.new("UICorner")
  24. uicorner.CornerRadius = UDim.new(0, 8)
  25. uicorner.Parent = frame
  26.  
  27. -- Title Bar
  28. local titleBar = Instance.new("Frame")
  29. titleBar.Size = UDim2.new(1, 0, 0, 40)
  30. titleBar.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  31. titleBar.Parent = frame
  32.  
  33. local titleLabel = Instance.new("TextLabel")
  34. titleLabel.Text = "Reks GAG Gui 1.0"
  35. titleLabel.Size = UDim2.new(1, -40, 1, 0)
  36. titleLabel.Position = UDim2.new(0, 10, 0, 0)
  37. titleLabel.BackgroundTransparency = 1
  38. titleLabel.TextColor3 = Color3.new(1, 1, 1)
  39. titleLabel.TextScaled = true
  40. titleLabel.Font = Enum.Font.SourceSansBold
  41. titleLabel.Parent = titleBar
  42.  
  43. local closeButton = Instance.new("TextButton")
  44. closeButton.Text = "X"
  45. closeButton.Size = UDim2.new(0, 40, 1, 0)
  46. closeButton.Position = UDim2.new(1, -40, 0, 0)
  47. closeButton.BackgroundColor3 = Color3.fromRGB(178, 34, 34)
  48. closeButton.TextColor3 = Color3.new(1,1,1)
  49. closeButton.Font = Enum.Font.SourceSansBold
  50. closeButton.TextScaled = true
  51. closeButton.Parent = titleBar
  52.  
  53. local uicornerClose = Instance.new("UICorner")
  54. uicornerClose.Parent = closeButton
  55.  
  56. -- Tabs Buttons
  57. local tabsFrame = Instance.new("Frame")
  58. tabsFrame.Size = UDim2.new(1, 0, 0, 40)
  59. tabsFrame.Position = UDim2.new(0, 0, 0, 40)
  60. tabsFrame.BackgroundTransparency = 1
  61. tabsFrame.Parent = frame
  62.  
  63. local function createTabButton(name, positionScale)
  64. local btn = Instance.new("TextButton")
  65. btn.Text = name
  66. btn.Size = UDim2.new(0.25, -3, 1, 0)
  67. btn.Position = UDim2.new(positionScale, 3 * positionScale, 0, 0)
  68. btn.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
  69. btn.TextColor3 = Color3.new(1,1,1)
  70. btn.Font = Enum.Font.SourceSansBold
  71. btn.TextScaled = true
  72. btn.Parent = tabsFrame
  73. local corner = Instance.new("UICorner")
  74. corner.Parent = btn
  75. return btn
  76. end
  77.  
  78. local homeBtn = createTabButton("Home", 0)
  79. local dupeBtn = createTabButton("Dupe", 0.25)
  80. local farmBtn = createTabButton("Farm", 0.5)
  81. local miscBtn = createTabButton("MISC", 0.75)
  82.  
  83. -- Pages
  84. local pages = {}
  85.  
  86. local function createPage()
  87. local page = Instance.new("Frame")
  88. page.Size = UDim2.new(1, -20, 1, -100)
  89. page.Position = UDim2.new(0, 10, 0, 80)
  90. page.BackgroundTransparency = 1
  91. page.Parent = frame
  92. return page
  93. end
  94.  
  95. pages.Home = createPage()
  96. pages.Dupe = createPage()
  97. pages.Farm = createPage()
  98. pages.MISC = createPage()
  99.  
  100. -- Home Page
  101. local homeText = Instance.new("TextLabel")
  102. homeText.Size = UDim2.new(1, 0, 0, 30)
  103. homeText.Position = UDim2.new(0, 0, 0, 0)
  104. homeText.Text = "Credits to ReksPlay"
  105. homeText.TextColor3 = Color3.new(1,1,1)
  106. homeText.BackgroundTransparency = 1
  107. homeText.TextScaled = true
  108. homeText.Font = Enum.Font.SourceSansBold
  109. homeText.Parent = pages.Home
  110.  
  111. local discordText = Instance.new("TextLabel")
  112. discordText.Size = UDim2.new(1, 0, 0, 25)
  113. discordText.Position = UDim2.new(0, 0, 0, 40)
  114. discordText.Text = "Join Discord: https://discord.gg/UbazpUYeau"
  115. discordText.TextColor3 = Color3.fromRGB(100, 149, 237)
  116. discordText.BackgroundTransparency = 1
  117. discordText.TextScaled = true
  118. discordText.Font = Enum.Font.SourceSans
  119. discordText.Parent = pages.Home
  120.  
  121. local subscribeText = Instance.new("TextLabel")
  122. subscribeText.Size = UDim2.new(1, 0, 0, 25)
  123. subscribeText.Position = UDim2.new(0, 0, 0, 70)
  124. subscribeText.Text = "Subscribe to ReksPlay!"
  125. subscribeText.TextColor3 = Color3.fromRGB(255, 215, 0)
  126. subscribeText.BackgroundTransparency = 1
  127. subscribeText.TextScaled = true
  128. subscribeText.Font = Enum.Font.SourceSansBold
  129. subscribeText.Parent = pages.Home
  130.  
  131. -- Dupe Page
  132. local isDuping = false
  133. local dupeConnection
  134.  
  135. local dupeBtnMain = Instance.new("TextButton")
  136. dupeBtnMain.Text = "Start Duping"
  137. dupeBtnMain.Size = UDim2.new(1, 0, 0, 50)
  138. dupeBtnMain.Position = UDim2.new(0, 0, 0, 0)
  139. dupeBtnMain.BackgroundColor3 = Color3.fromRGB(70, 130, 180)
  140. dupeBtnMain.TextColor3 = Color3.new(1,1,1)
  141. dupeBtnMain.Font = Enum.Font.SourceSansBold
  142. dupeBtnMain.TextScaled = true
  143. dupeBtnMain.Parent = pages.Dupe
  144.  
  145. local dupeStopBtn = Instance.new("TextButton")
  146. dupeStopBtn.Text = "Stop Duping"
  147. dupeStopBtn.Size = UDim2.new(1, 0, 0, 50)
  148. dupeStopBtn.Position = UDim2.new(0, 0, 0, 60)
  149. dupeStopBtn.BackgroundColor3 = Color3.fromRGB(178, 34, 34)
  150. dupeStopBtn.TextColor3 = Color3.new(1,1,1)
  151. dupeStopBtn.Font = Enum.Font.SourceSansBold
  152. dupeStopBtn.TextScaled = true
  153. dupeStopBtn.Parent = pages.Dupe
  154.  
  155. local dupeNote = Instance.new("TextLabel")
  156. dupeNote.Text = "You must hold the item you're duping"
  157. dupeNote.Size = UDim2.new(1, 0, 0, 25)
  158. dupeNote.Position = UDim2.new(0, 0, 0, 120)
  159. dupeNote.BackgroundTransparency = 1
  160. dupeNote.TextColor3 = Color3.fromRGB(255, 255, 255)
  161. dupeNote.TextScaled = true
  162. dupeNote.Font = Enum.Font.SourceSansItalic
  163. dupeNote.Parent = pages.Dupe
  164.  
  165. local RunService = game:GetService("RunService")
  166.  
  167. local function dupeFunction()
  168. local character = player.Character
  169. if not character then return end
  170. local humanoid = character:FindFirstChildOfClass("Humanoid")
  171. if not humanoid then return end
  172.  
  173. local tool
  174. for _, item in pairs(character:GetChildren()) do
  175. if item:IsA("Tool") then
  176. tool = item
  177. break
  178. end
  179. end
  180.  
  181. if not tool then return end
  182.  
  183. local clonedTool = tool:Clone()
  184. clonedTool.Parent = player.Backpack
  185. print("Duplicated: "..clonedTool.Name)
  186. end
  187.  
  188. dupeBtnMain.MouseButton1Click:Connect(function()
  189. if isDuping then return end
  190. isDuping = true
  191. dupeBtnMain.Text = "Duping..."
  192. dupeConnection = RunService.Heartbeat:Connect(function()
  193. if isDuping then
  194. dupeFunction()
  195. task.wait(5)
  196. end
  197. end)
  198. end)
  199.  
  200. dupeStopBtn.MouseButton1Click:Connect(function()
  201. if not isDuping then return end
  202. isDuping = false
  203. if dupeConnection then
  204. dupeConnection:Disconnect()
  205. dupeConnection = nil
  206. end
  207. dupeBtnMain.Text = "Start Duping"
  208. end)
  209.  
  210. -- Farm Page
  211. local farmComing = Instance.new("TextLabel")
  212. farmComing.Size = UDim2.new(1, 0, 0, 50)
  213. farmComing.Position = UDim2.new(0, 0, 0, 0)
  214. farmComing.Text = "Coming Soon"
  215. farmComing.TextColor3 = Color3.new(1,1,1)
  216. farmComing.TextScaled = true
  217. farmComing.BackgroundTransparency = 1
  218. farmComing.Font = Enum.Font.SourceSansBold
  219. farmComing.Parent = pages.Farm
  220.  
  221. -- MISC Page
  222. local spawnCandyBtn = Instance.new("TextButton")
  223. spawnCandyBtn.Size = UDim2.new(1, 0, 0, 50)
  224. spawnCandyBtn.Position = UDim2.new(0, 0, 0, 0)
  225. spawnCandyBtn.Text = "Spawn Candy Blossom (Coming Soon)"
  226. spawnCandyBtn.BackgroundColor3 = Color3.fromRGB(245, 245, 220)
  227. spawnCandyBtn.TextColor3 = Color3.new(0, 0, 0)
  228. spawnCandyBtn.Font = Enum.Font.SourceSansBold
  229. spawnCandyBtn.TextScaled = true
  230. spawnCandyBtn.Parent = pages.MISC
  231.  
  232. -- Show Page Function
  233. local function showPage(name)
  234. for pageName, page in pairs(pages) do
  235. page.Visible = (pageName == name)
  236. end
  237. end
  238.  
  239. -- Default Page
  240. showPage("Home")
  241.  
  242. homeBtn.MouseButton1Click:Connect(function() showPage("Home") end)
  243. dupeBtn.MouseButton1Click:Connect(function() showPage("Dupe") end)
  244. farmBtn.MouseButton1Click:Connect(function() showPage("Farm") end)
  245. miscBtn.MouseButton1Click:Connect(function() showPage("MISC") end)
  246.  
  247. -- Close Button
  248. closeButton.MouseButton1Click:Connect(function()
  249. screenGui:Destroy()
  250. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement