Gag scripts headicon

Plants Vs Brainrots Item Duplication GUI Script

54 views
Plants Vs Brainrots Item Duplication GUI Script
Free​Keyless​Mobile Friendly​

Description

The best Plants Vs Brainrots script for Item Duplication. It only wors when you have something in your inventory.

To activate this scripts you need to know the name from the item or tool and then you can dupe.

Features

  • Dupe Items
  • Dupe Brainrots
local Players = game:GetService("Players")<br />
local player = Players.LocalPlayer<br />
<br />
local screenGui = Instance.new("ScreenGui")<br />
screenGui.Name = "DupGui"<br />
screenGui.Parent = player:WaitForChild("PlayerGui")<br />
<br />
local frame = Instance.new("Frame")<br />
frame.Size = UDim2.new(0, 300, 0, 150)<br />
frame.Position = UDim2.new(0.5, -150, 0.5, -75)<br />
frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)<br />
frame.BorderSizePixel = 0<br />
frame.Parent = screenGui<br />
<br />
frame.Active = true<br />
frame.Draggable = true<br />
<br />
local title = Instance.new("TextLabel")<br />
title.Size = UDim2.new(1, -10, 0, 30)<br />
title.Position = UDim2.new(0, 5, 0, 5)<br />
title.BackgroundTransparency = 1<br />
title.TextColor3 = Color3.fromRGB(255, 255, 255)<br />
title.Font = Enum.Font.SourceSansBold<br />
title.TextSize = 18<br />
title.Text = "Item Duplizierer"<br />
title.Parent = frame<br />
<br />
local inputBox = Instance.new("TextBox")<br />
inputBox.Size = UDim2.new(0, 200, 0, 30)<br />
inputBox.Position = UDim2.new(0, 50, 0, 50)<br />
inputBox.PlaceholderText = "Itemname"<br />
inputBox.ClearTextOnFocus = false<br />
inputBox.Text = ""<br />
inputBox.Parent = frame<br />
<br />
local dupeButton = Instance.new("TextButton")<br />
dupeButton.Size = UDim2.new(0, 200, 0, 40)<br />
dupeButton.Position = UDim2.new(0, 50, 0, 90)<br />
dupeButton.Text = "Kopieren"<br />
dupeButton.BackgroundColor3 = Color3.fromRGB(70, 70, 70)<br />
dupeButton.TextColor3 = Color3.fromRGB(255, 255, 255)<br />
dupeButton.Font = Enum.Font.SourceSans<br />
dupeButton.TextSize = 16<br />
dupeButton.Parent = frame<br />
<br />
local status = Instance.new("TextLabel")<br />
status.Size = UDim2.new(1, -10, 0, 25)<br />
status.Position = UDim2.new(0, 5, 1, -30)<br />
status.BackgroundTransparency = 1<br />
status.TextColor3 = Color3.fromRGB(255, 255, 255)<br />
status.Text = ""<br />
status.Parent = frame<br />
<br />
dupeButton.MouseButton1Click:Connect(function()<br />
    local itemName = inputBox.Text<br />
    local backpack = player:FindFirstChild("Backpack")<br />
    local character = player.Character<br />
<br />
    local item = nil<br />
<br />
    if backpack then<br />
        item = backpack:FindFirstChild(itemName)<br />
    end<br />
<br />
    if not item and character then<br />
        item = character:FindFirstChild(itemName)<br />
    end<br />
<br />
    if not item then<br />
        status.Text = "Item nicht gefunden: "..itemName<br />
        return<br />
    end<br />
<br />
    local clone = item:Clone()<br />
    <br />
    if backpack then<br />
        clone.Parent = backpack<br />
    elseif character then<br />
        clone.Parent = character<br />
    end<br />
<br />
    status.Text = "Item kopiert: "..clone.Name<br />
end)

Script Features

Similar Scripts

Leave a Comment