Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Roblox GUI Script with super slow dupe and button text updates + Close Button --
- local Players = game:GetService("Players")
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local player = Players.LocalPlayer
- local playerGui = player:WaitForChild("PlayerGui")
- -- Create ScreenGui
- local screenGui = Instance.new("ScreenGui")
- screenGui.Name = "ReksDupeGui"
- screenGui.Parent = playerGui
- screenGui.ResetOnSpawn = false
- -- Main Frame
- local frame = Instance.new("Frame")
- frame.Size = UDim2.new(0, 300, 0, 350)
- frame.Position = UDim2.new(0.5, -150, 0.5, -175)
- frame.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
- frame.Active = true
- frame.Draggable = true
- frame.Parent = screenGui
- local uicorner = Instance.new("UICorner")
- uicorner.CornerRadius = UDim.new(0, 8)
- uicorner.Parent = frame
- -- Title Bar
- local titleBar = Instance.new("Frame")
- titleBar.Size = UDim2.new(1, 0, 0, 40)
- titleBar.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
- titleBar.Parent = frame
- local titleLabel = Instance.new("TextLabel")
- titleLabel.Text = "Reks GAG Gui 1.0"
- titleLabel.Size = UDim2.new(1, -40, 1, 0)
- titleLabel.Position = UDim2.new(0, 10, 0, 0)
- titleLabel.BackgroundTransparency = 1
- titleLabel.TextColor3 = Color3.new(1, 1, 1)
- titleLabel.TextScaled = true
- titleLabel.Font = Enum.Font.SourceSansBold
- titleLabel.Parent = titleBar
- local closeButton = Instance.new("TextButton")
- closeButton.Text = "X"
- closeButton.Size = UDim2.new(0, 40, 1, 0)
- closeButton.Position = UDim2.new(1, -40, 0, 0)
- closeButton.BackgroundColor3 = Color3.fromRGB(178, 34, 34)
- closeButton.TextColor3 = Color3.new(1,1,1)
- closeButton.Font = Enum.Font.SourceSansBold
- closeButton.TextScaled = true
- closeButton.Parent = titleBar
- local uicornerClose = Instance.new("UICorner")
- uicornerClose.Parent = closeButton
- -- Tabs Buttons
- local tabsFrame = Instance.new("Frame")
- tabsFrame.Size = UDim2.new(1, 0, 0, 40)
- tabsFrame.Position = UDim2.new(0, 0, 0, 40)
- tabsFrame.BackgroundTransparency = 1
- tabsFrame.Parent = frame
- local function createTabButton(name, positionScale)
- local btn = Instance.new("TextButton")
- btn.Text = name
- btn.Size = UDim2.new(0.25, -3, 1, 0)
- btn.Position = UDim2.new(positionScale, 3 * positionScale, 0, 0)
- btn.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
- btn.TextColor3 = Color3.new(1,1,1)
- btn.Font = Enum.Font.SourceSansBold
- btn.TextScaled = true
- btn.Parent = tabsFrame
- local corner = Instance.new("UICorner")
- corner.Parent = btn
- return btn
- end
- local homeBtn = createTabButton("Home", 0)
- local dupeBtn = createTabButton("Dupe", 0.25)
- local farmBtn = createTabButton("Farm", 0.5)
- local miscBtn = createTabButton("MISC", 0.75)
- -- Pages
- local pages = {}
- local function createPage()
- local page = Instance.new("Frame")
- page.Size = UDim2.new(1, -20, 1, -100)
- page.Position = UDim2.new(0, 10, 0, 80)
- page.BackgroundTransparency = 1
- page.Parent = frame
- return page
- end
- pages.Home = createPage()
- pages.Dupe = createPage()
- pages.Farm = createPage()
- pages.MISC = createPage()
- -- Home Page
- local homeText = Instance.new("TextLabel")
- homeText.Size = UDim2.new(1, 0, 0, 30)
- homeText.Position = UDim2.new(0, 0, 0, 0)
- homeText.Text = "Credits to ReksPlay"
- homeText.TextColor3 = Color3.new(1,1,1)
- homeText.BackgroundTransparency = 1
- homeText.TextScaled = true
- homeText.Font = Enum.Font.SourceSansBold
- homeText.Parent = pages.Home
- local discordText = Instance.new("TextLabel")
- discordText.Size = UDim2.new(1, 0, 0, 25)
- discordText.Position = UDim2.new(0, 0, 0, 40)
- discordText.Text = "Join Discord: https://discord.gg/UbazpUYeau"
- discordText.TextColor3 = Color3.fromRGB(100, 149, 237)
- discordText.BackgroundTransparency = 1
- discordText.TextScaled = true
- discordText.Font = Enum.Font.SourceSans
- discordText.Parent = pages.Home
- local subscribeText = Instance.new("TextLabel")
- subscribeText.Size = UDim2.new(1, 0, 0, 25)
- subscribeText.Position = UDim2.new(0, 0, 0, 70)
- subscribeText.Text = "Subscribe to ReksPlay!"
- subscribeText.TextColor3 = Color3.fromRGB(255, 215, 0)
- subscribeText.BackgroundTransparency = 1
- subscribeText.TextScaled = true
- subscribeText.Font = Enum.Font.SourceSansBold
- subscribeText.Parent = pages.Home
- -- Dupe Page
- local isDuping = false
- local dupeConnection
- local dupeBtnMain = Instance.new("TextButton")
- dupeBtnMain.Text = "Start Duping"
- dupeBtnMain.Size = UDim2.new(1, 0, 0, 50)
- dupeBtnMain.Position = UDim2.new(0, 0, 0, 0)
- dupeBtnMain.BackgroundColor3 = Color3.fromRGB(70, 130, 180)
- dupeBtnMain.TextColor3 = Color3.new(1,1,1)
- dupeBtnMain.Font = Enum.Font.SourceSansBold
- dupeBtnMain.TextScaled = true
- dupeBtnMain.Parent = pages.Dupe
- local dupeStopBtn = Instance.new("TextButton")
- dupeStopBtn.Text = "Stop Duping"
- dupeStopBtn.Size = UDim2.new(1, 0, 0, 50)
- dupeStopBtn.Position = UDim2.new(0, 0, 0, 60)
- dupeStopBtn.BackgroundColor3 = Color3.fromRGB(178, 34, 34)
- dupeStopBtn.TextColor3 = Color3.new(1,1,1)
- dupeStopBtn.Font = Enum.Font.SourceSansBold
- dupeStopBtn.TextScaled = true
- dupeStopBtn.Parent = pages.Dupe
- local dupeNote = Instance.new("TextLabel")
- dupeNote.Text = "You must hold the item you're duping"
- dupeNote.Size = UDim2.new(1, 0, 0, 25)
- dupeNote.Position = UDim2.new(0, 0, 0, 120)
- dupeNote.BackgroundTransparency = 1
- dupeNote.TextColor3 = Color3.fromRGB(255, 255, 255)
- dupeNote.TextScaled = true
- dupeNote.Font = Enum.Font.SourceSansItalic
- dupeNote.Parent = pages.Dupe
- local RunService = game:GetService("RunService")
- local function dupeFunction()
- local character = player.Character
- if not character then return end
- local humanoid = character:FindFirstChildOfClass("Humanoid")
- if not humanoid then return end
- local tool
- for _, item in pairs(character:GetChildren()) do
- if item:IsA("Tool") then
- tool = item
- break
- end
- end
- if not tool then return end
- local clonedTool = tool:Clone()
- clonedTool.Parent = player.Backpack
- print("Duplicated: "..clonedTool.Name)
- end
- dupeBtnMain.MouseButton1Click:Connect(function()
- if isDuping then return end
- isDuping = true
- dupeBtnMain.Text = "Duping..."
- dupeConnection = RunService.Heartbeat:Connect(function()
- if isDuping then
- dupeFunction()
- task.wait(5)
- end
- end)
- end)
- dupeStopBtn.MouseButton1Click:Connect(function()
- if not isDuping then return end
- isDuping = false
- if dupeConnection then
- dupeConnection:Disconnect()
- dupeConnection = nil
- end
- dupeBtnMain.Text = "Start Duping"
- end)
- -- Farm Page
- local farmComing = Instance.new("TextLabel")
- farmComing.Size = UDim2.new(1, 0, 0, 50)
- farmComing.Position = UDim2.new(0, 0, 0, 0)
- farmComing.Text = "Coming Soon"
- farmComing.TextColor3 = Color3.new(1,1,1)
- farmComing.TextScaled = true
- farmComing.BackgroundTransparency = 1
- farmComing.Font = Enum.Font.SourceSansBold
- farmComing.Parent = pages.Farm
- -- MISC Page
- local spawnCandyBtn = Instance.new("TextButton")
- spawnCandyBtn.Size = UDim2.new(1, 0, 0, 50)
- spawnCandyBtn.Position = UDim2.new(0, 0, 0, 0)
- spawnCandyBtn.Text = "Spawn Candy Blossom (Coming Soon)"
- spawnCandyBtn.BackgroundColor3 = Color3.fromRGB(245, 245, 220)
- spawnCandyBtn.TextColor3 = Color3.new(0, 0, 0)
- spawnCandyBtn.Font = Enum.Font.SourceSansBold
- spawnCandyBtn.TextScaled = true
- spawnCandyBtn.Parent = pages.MISC
- -- Show Page Function
- local function showPage(name)
- for pageName, page in pairs(pages) do
- page.Visible = (pageName == name)
- end
- end
- -- Default Page
- showPage("Home")
- homeBtn.MouseButton1Click:Connect(function() showPage("Home") end)
- dupeBtn.MouseButton1Click:Connect(function() showPage("Dupe") end)
- farmBtn.MouseButton1Click:Connect(function() showPage("Farm") end)
- miscBtn.MouseButton1Click:Connect(function() showPage("MISC") end)
- -- Close Button
- closeButton.MouseButton1Click:Connect(function()
- screenGui:Destroy()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement