Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Credits: wesurt
- Thanks to Flamango for testing! https://v3rmillion.net/member.php?action=profile&uid=674915
- The duplication function has been everywhere on V3RM, yes I'm aware.
- I simply remade it into a GUI and refined it.
- Keys:
- - B to toggle the built-in BFG
- - Insert to toggle the GUI
- ]]
- local Plr = game:GetService("Players").LocalPlayer
- local CheckGamepass = function(ID)
- if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(Plr.UserId, ID) then
- return true;
- end
- end
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local Title = Instance.new("TextLabel")
- local Credits = Instance.new("TextLabel")
- local Bar = Instance.new("TextLabel")
- local TextLabel = Instance.new("TextLabel")
- local TextLabel_2 = Instance.new("TextLabel")
- local TextLabel_3 = Instance.new("TextLabel")
- local TextLabel_4 = Instance.new("TextLabel")
- local TextLabel_5 = Instance.new("TextLabel")
- local TextLabel_6 = Instance.new("TextLabel")
- local TextLabel_7 = Instance.new("TextLabel")
- local TextLabel_8 = Instance.new("TextLabel")
- local Decrease = Instance.new("TextButton")
- local TextLabel_9 = Instance.new("TextLabel")
- local Increase = Instance.new("TextButton")
- local TextLabel_10 = Instance.new("TextLabel")
- local BoomBoxDuping = Instance.new("TextButton")
- local KnifeDuping = Instance.new("TextButton")
- local PipeDuping = Instance.new("TextButton")
- local SprayDuping = Instance.new("TextButton")
- local LockpickDuping = Instance.new("TextButton")
- local ShotgunDuping = Instance.new("TextButton")
- local SignDuping = Instance.new("TextButton")
- local KeepAll = Instance.new("TextButton")
- local Duplicate = Instance.new("TextButton")
- ScreenGui.Parent = game.CoreGui
- Frame.Parent = ScreenGui
- Frame.Active = true
- Frame.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
- Frame.BorderSizePixel = 0
- Frame.Draggable = true
- Frame.Position = UDim2.new(0.798722029, 0, 0.531941056, 0)
- Frame.Size = UDim2.new(0, 300, 0, 311)
- Title.Name = "Title"
- Title.Parent = Frame
- Title.BackgroundColor3 = Color3.new(1, 1, 1)
- Title.BackgroundTransparency = 1
- Title.Size = UDim2.new(0, 300, 0, 40)
- Title.Font = Enum.Font.SourceSansBold
- Title.Text = "Duplication GUI"
- Title.TextColor3 = Color3.new(1, 1, 1)
- Title.TextSize = 30
- Title.TextWrapped = true
- Credits.Name = "Credits"
- Credits.Parent = Frame
- Credits.BackgroundColor3 = Color3.new(1, 1, 1)
- Credits.BackgroundTransparency = 1
- Credits.Position = UDim2.new(0.25, 0, 0.127863556, 0)
- Credits.Size = UDim2.new(0, 150, 0, 20)
- Credits.Font = Enum.Font.SourceSans
- Credits.Text = "by wesurt @ v3rmillion"
- Credits.TextColor3 = Color3.new(1, 1, 1)
- Credits.TextSize = 18
- Bar.Name = "Bar"
- Bar.Parent = Frame
- Bar.BackgroundColor3 = Color3.new(1, 1, 1)
- Bar.BorderSizePixel = 0
- Bar.Position = UDim2.new(0.0833333358, 0, 0.127745688, 0)
- Bar.Size = UDim2.new(0, 250, 0, 1)
- Bar.Font = Enum.Font.SourceSans
- Bar.Text = ""
- Bar.TextColor3 = Color3.new(0, 0, 0)
- Bar.TextSize = 14
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BackgroundTransparency = 1
- TextLabel.Position = UDim2.new(0, 0, 0.188974485, 0)
- TextLabel.Size = UDim2.new(0, 200, 0, 25)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.Text = "BoomBox Duplication:"
- TextLabel.TextColor3 = Color3.new(1, 1, 1)
- TextLabel.TextSize = 18
- TextLabel_2.Parent = Frame
- TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel_2.BackgroundTransparency = 1
- TextLabel_2.Position = UDim2.new(0, 0, 0.266831636, 0)
- TextLabel_2.Size = UDim2.new(0, 200, 0, 25)
- TextLabel_2.Font = Enum.Font.SourceSans
- TextLabel_2.Text = "Knife Duplication:"
- TextLabel_2.TextColor3 = Color3.new(1, 1, 1)
- TextLabel_2.TextSize = 18
- TextLabel_3.Parent = Frame
- TextLabel_3.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel_3.BackgroundTransparency = 1
- TextLabel_3.Position = UDim2.new(0, 0, 0.344688833, 0)
- TextLabel_3.Size = UDim2.new(0, 200, 0, 25)
- TextLabel_3.Font = Enum.Font.SourceSans
- TextLabel_3.Text = "Pipe Duplication:"
- TextLabel_3.TextColor3 = Color3.new(1, 1, 1)
- TextLabel_3.TextSize = 18
- TextLabel_4.Parent = Frame
- TextLabel_4.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel_4.BackgroundTransparency = 1
- TextLabel_4.Position = UDim2.new(0, 0, 0.422546059, 0)
- TextLabel_4.Size = UDim2.new(0, 200, 0, 25)
- TextLabel_4.Font = Enum.Font.SourceSans
- TextLabel_4.Text = "Spray Duplication:"
- TextLabel_4.TextColor3 = Color3.new(1, 1, 1)
- TextLabel_4.TextSize = 18
- TextLabel_5.Parent = Frame
- TextLabel_5.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel_5.BackgroundTransparency = 1
- TextLabel_5.Position = UDim2.new(0, 0, 0.500403225, 0)
- TextLabel_5.Size = UDim2.new(0, 200, 0, 25)
- TextLabel_5.Font = Enum.Font.SourceSans
- TextLabel_5.Text = "Lockpick Duplication:"
- TextLabel_5.TextColor3 = Color3.new(1, 1, 1)
- TextLabel_5.TextSize = 18
- TextLabel_6.Parent = Frame
- TextLabel_6.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel_6.BackgroundTransparency = 1
- TextLabel_6.Position = UDim2.new(0, 0, 0.578749955, 0)
- TextLabel_6.Size = UDim2.new(0, 200, 0, 25)
- TextLabel_6.Font = Enum.Font.SourceSans
- TextLabel_6.Text = "Shotgun Duplication:"
- TextLabel_6.TextColor3 = Color3.new(1, 1, 1)
- TextLabel_6.TextSize = 18
- TextLabel_7.Parent = Frame
- TextLabel_7.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel_7.BackgroundTransparency = 1
- TextLabel_7.Position = UDim2.new(0, 0, 0.656607151, 0)
- TextLabel_7.Size = UDim2.new(0, 200, 0, 25)
- TextLabel_7.Font = Enum.Font.SourceSans
- TextLabel_7.Text = "Sign Duplication:"
- TextLabel_7.TextColor3 = Color3.new(1, 1, 1)
- TextLabel_7.TextSize = 18
- TextLabel_8.Parent = Frame
- TextLabel_8.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel_8.BackgroundTransparency = 1
- TextLabel_8.Position = UDim2.new(0, 0, 0.734691262, 0)
- TextLabel_8.Size = UDim2.new(0, 200, 0, 25)
- TextLabel_8.Font = Enum.Font.SourceSans
- TextLabel_8.Text = "Duplication Multiplier:"
- TextLabel_8.TextColor3 = Color3.new(1, 1, 1)
- TextLabel_8.TextSize = 18
- Decrease.Name = "Decrease"
- Decrease.Parent = Frame
- Decrease.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
- Decrease.BorderSizePixel = 0
- Decrease.Position = UDim2.new(0.720000207, 0, 0.741358101, 0)
- Decrease.Size = UDim2.new(0, 20, 0, 20)
- Decrease.Font = Enum.Font.SourceSans
- Decrease.Text = "-"
- Decrease.TextColor3 = Color3.new(1, 1, 1)
- Decrease.TextSize = 25
- Decrease.TextWrapped = true
- TextLabel_9.Parent = Frame
- TextLabel_9.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel_9.BackgroundTransparency = 1
- TextLabel_9.Position = UDim2.new(0.789999962, 0, 0.740841269, 0)
- TextLabel_9.Size = UDim2.new(0, 30, 0, 25)
- TextLabel_9.Font = Enum.Font.SourceSans
- TextLabel_9.Text = "1"
- TextLabel_9.TextColor3 = Color3.new(1, 1, 1)
- TextLabel_9.TextSize = 20
- Increase.Name = "Increase"
- Increase.Parent = Frame
- Increase.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
- Increase.BorderSizePixel = 0
- Increase.Position = UDim2.new(0.886666834, 0, 0.741358101, 0)
- Increase.Size = UDim2.new(0, 20, 0, 20)
- Increase.Font = Enum.Font.SourceSans
- Increase.Text = "+"
- Increase.TextColor3 = Color3.new(1, 1, 1)
- Increase.TextSize = 19
- Increase.TextWrapped = true
- TextLabel_10.Parent = Frame
- TextLabel_10.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel_10.BackgroundTransparency = 1
- TextLabel_10.Position = UDim2.new(0, 0, 0.818888426, 0)
- TextLabel_10.Size = UDim2.new(0, 200, 0, 25)
- TextLabel_10.Font = Enum.Font.SourceSans
- TextLabel_10.Text = "Keep All Items Upon Respawn"
- TextLabel_10.TextColor3 = Color3.new(1, 1, 1)
- TextLabel_10.TextSize = 18
- BoomBoxDuping.Name = "BoomBoxDuping"
- BoomBoxDuping.Parent = Frame
- BoomBoxDuping.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- BoomBoxDuping.BorderSizePixel = 0
- BoomBoxDuping.Position = UDim2.new(0.756666899, 0, 0.188974515, 0)
- BoomBoxDuping.Size = UDim2.new(0, 50, 0, 25)
- BoomBoxDuping.Font = Enum.Font.SourceSansBold
- BoomBoxDuping.Text = "OFF"
- BoomBoxDuping.TextColor3 = Color3.new(0.686275, 0, 0)
- BoomBoxDuping.TextSize = 18
- KnifeDuping.Name = "KnifeDuping"
- KnifeDuping.Parent = Frame
- KnifeDuping.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- KnifeDuping.BorderSizePixel = 0
- KnifeDuping.Position = UDim2.new(0.756666899, 0, 0.266740769, 0)
- KnifeDuping.Size = UDim2.new(0, 50, 0, 25)
- KnifeDuping.Font = Enum.Font.SourceSansBold
- KnifeDuping.Text = "OFF"
- KnifeDuping.TextColor3 = Color3.new(0.686275, 0, 0)
- KnifeDuping.TextSize = 18
- PipeDuping.Name = "PipeDuping"
- PipeDuping.Parent = Frame
- PipeDuping.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- PipeDuping.BorderSizePixel = 0
- PipeDuping.Position = UDim2.new(0.756666899, 0, 0.344507068, 0)
- PipeDuping.Size = UDim2.new(0, 50, 0, 25)
- PipeDuping.Font = Enum.Font.SourceSansBold
- PipeDuping.Text = "OFF"
- PipeDuping.TextColor3 = Color3.new(0.686275, 0, 0)
- PipeDuping.TextSize = 18
- SprayDuping.Name = "SprayDuping"
- SprayDuping.Parent = Frame
- SprayDuping.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- SprayDuping.BorderSizePixel = 0
- SprayDuping.Position = UDim2.new(0.756666899, 0, 0.422273368, 0)
- SprayDuping.Size = UDim2.new(0, 50, 0, 25)
- SprayDuping.Font = Enum.Font.SourceSansBold
- SprayDuping.Text = "OFF"
- SprayDuping.TextColor3 = Color3.new(0.686275, 0, 0)
- SprayDuping.TextSize = 18
- LockpickDuping.Name = "LockpickDuping"
- LockpickDuping.Parent = Frame
- LockpickDuping.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- LockpickDuping.BorderSizePixel = 0
- LockpickDuping.Position = UDim2.new(0.756666899, 0, 0.500039637, 0)
- LockpickDuping.Size = UDim2.new(0, 50, 0, 25)
- LockpickDuping.Font = Enum.Font.SourceSansBold
- LockpickDuping.Text = "OFF"
- LockpickDuping.TextColor3 = Color3.new(0.686275, 0, 0)
- LockpickDuping.TextSize = 18
- ShotgunDuping.Name = "ShotgunDuping"
- ShotgunDuping.Parent = Frame
- ShotgunDuping.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- ShotgunDuping.BorderSizePixel = 0
- ShotgunDuping.Position = UDim2.new(0.756666899, 0, 0.577805936, 0)
- ShotgunDuping.Size = UDim2.new(0, 50, 0, 25)
- ShotgunDuping.Font = Enum.Font.SourceSansBold
- ShotgunDuping.Text = "OFF"
- ShotgunDuping.TextColor3 = Color3.new(0.686275, 0, 0)
- ShotgunDuping.TextSize = 18
- SignDuping.Name = "SignDuping"
- SignDuping.Parent = Frame
- SignDuping.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- SignDuping.BorderSizePixel = 0
- SignDuping.Position = UDim2.new(0.756666899, 0, 0.655572236, 0)
- SignDuping.Size = UDim2.new(0, 50, 0, 25)
- SignDuping.Font = Enum.Font.SourceSansBold
- SignDuping.Text = "OFF"
- SignDuping.TextColor3 = Color3.new(0.686275, 0, 0)
- SignDuping.TextSize = 18
- KeepAll.Name = "KeepAll"
- KeepAll.Parent = Frame
- KeepAll.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- KeepAll.BorderSizePixel = 0
- KeepAll.Position = UDim2.new(0.756666899, 0, 0.817535698, 0)
- KeepAll.Size = UDim2.new(0, 50, 0, 25)
- KeepAll.Font = Enum.Font.SourceSansBold
- KeepAll.Text = "OFF"
- KeepAll.TextColor3 = Color3.new(0.686275, 0, 0)
- KeepAll.TextSize = 18
- Duplicate.Name = "Duplicate"
- Duplicate.Parent = Frame
- Duplicate.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- Duplicate.BorderSizePixel = 0
- Duplicate.Position = UDim2.new(0.333333343, 0, 0.899274349, 0)
- Duplicate.Size = UDim2.new(0, 100, 0, 25)
- Duplicate.Font = Enum.Font.SourceSansBold
- Duplicate.Text = "Duplicate"
- Duplicate.TextColor3 = Color3.new(1, 1, 1)
- Duplicate.TextSize = 19
- Duplicate.TextWrapped = true
- local Notify = function(Title, Text)
- local Notification = Instance.new("ScreenGui")
- local Notification_2 = Instance.new("Frame")
- local Main = Instance.new("TextLabel")
- local Contents = Instance.new("TextLabel")
- Notification.Name = "Notification"
- Notification.Parent = game.CoreGui
- Notification_2.Name = "Notification"
- Notification_2.Parent = Notification
- Notification_2.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- Notification_2.BorderColor3 = Color3.new(1, 1, 1)
- Notification_2.Position = UDim2.new(2, 0, 0.4, 0)
- Notification_2.Size = UDim2.new(0, 150, 0, 75)
- Main.Name = "Main"
- Main.Parent = Notification_2
- Main.BackgroundColor3 = Color3.new(1, 1, 1)
- Main.BackgroundTransparency = 1
- Main.Size = UDim2.new(0, 150, 0, 25)
- Main.Font = Enum.Font.SourceSansBold
- Main.Text = Title
- Main.TextColor3 = Color3.new(1, 1, 1)
- Main.TextSize = 14
- Main.TextWrapped = true
- Contents.Name = "Contents"
- Contents.Parent = Notification_2
- Contents.BackgroundColor3 = Color3.new(1, 1, 1)
- Contents.BackgroundTransparency = 1
- Contents.Position = UDim2.new(0.0333333351, 0, 0.333333343, 0)
- Contents.Size = UDim2.new(0, 140, 0, 45)
- Contents.Font = Enum.Font.SourceSans
- Contents.Text = Text
- Contents.TextColor3 = Color3.new(1, 1, 1)
- Contents.TextSize = 14
- Contents.TextWrapped = true
- Notification_2:TweenPosition(UDim2.new(0.915, 0, 0.4, 0), "In", "Linear", .3)
- wait(2.3)
- Notification_2:TweenPosition(UDim2.new(2, 0, 0.4, 0), "In", "Quad", .3)
- wait(0.3)
- Notification:Destroy()
- end
- local BoomBoxDupingACTIVE, KnifeDupingACTIVE, PipeDupingACTIVE, SprayDupingACTIVE, LockpickDupingACTIVE, ShotgunDupingACTIVE, SignDupingACTIVE, KeepAllACTIVE, Duplicating = false
- local DupeValue = 1
- local DuplicateTools = {}
- local ins = function(str)
- table.insert(DuplicateTools, str)
- end
- local REWRITE = function()
- DuplicateTools = {}
- if BoomBoxDupingACTIVE then
- ins("BoomBox")
- end
- if KnifeDupingACTIVE then
- ins("Knife")
- end
- if PipeDupingACTIVE then
- ins("Pipe")
- end
- if SprayDupingACTIVE then
- ins("Spray")
- end
- if LockpickDupingACTIVE then
- for i = 1,4 do
- ins("Lockpick (".. tostring(i).. ")")
- end
- end
- if ShotgunDupingACTIVE then
- ins("Knife")
- end
- if SignDupingACTIVE then
- ins("Sign")
- end
- end
- local Save = function()
- REWRITE()
- for i,v in pairs(DuplicateTools) do
- for i,x in pairs(Plr.Backpack:GetChildren()) do
- if x.Name == v then
- Plr.Backpack[x.Name].Parent = Plr
- end
- end
- for i,x in pairs(Plr.Character:GetChildren()) do
- if x.Name == v then
- Plr.Character[x.Name].Parent = Plr
- end
- end
- end
- end
- BoomBoxDuping.MouseButton1Up:Connect(function()
- if CheckGamepass(1159109) then
- BoomBoxDupingACTIVE = not BoomBoxDupingACTIVE
- if BoomBoxDupingACTIVE then
- BoomBoxDuping.Text = "ON"
- BoomBoxDuping.TextColor3 = Color3.new(0, 1, 0)
- else
- BoomBoxDuping.Text = "OFF"
- BoomBoxDuping.TextColor3 = Color3.new(175/255, 0, 0)
- end
- else
- Notify("Error: Gamepass Required!", "You need the BoomBox gamepass to duplicate it.")
- end
- end)
- KnifeDuping.MouseButton1Up:Connect(function()
- if CheckGamepass(1378459) then
- KnifeDupingACTIVE = not KnifeDupingACTIVE
- if KnifeDupingACTIVE then
- KnifeDuping.Text = "ON"
- KnifeDuping.TextColor3 = Color3.new(0, 1, 0)
- else
- KnifeDuping.Text = "OFF"
- KnifeDuping.TextColor3 = Color3.new(175/255, 0, 0)
- end
- else
- Notify("Error: Gamepass Required!", "You need the Knife gamepass to duplicate it.")
- end
- end)
- PipeDuping.MouseButton1Up:Connect(function()
- if CheckGamepass(1378577) then
- PipeDupingACTIVE = not PipeDupingACTIVE
- if PipeDupingACTIVE then
- PipeDuping.Text = "ON"
- PipeDuping.TextColor3 = Color3.new(0, 1, 0)
- else
- PipeDuping.Text = "OFF"
- PipeDuping.TextColor3 = Color3.new(175/255, 0, 0)
- end
- else
- Notify("Error: Gamepass Required!", "You need the Pipe gamepass to duplicate it.")
- end
- end)
- SprayDuping.MouseButton1Up:Connect(function()
- if CheckGamepass(1541433) then
- SprayDupingACTIVE = not SprayDupingACTIVE
- if SprayDupingACTIVE then
- SprayDuping.Text = "ON"
- SprayDuping.TextColor3 = Color3.new(0, 1, 0)
- else
- SprayDuping.Text = "OFF"
- SprayDuping.TextColor3 = Color3.new(175/255, 0, 0)
- end
- else
- Notify("Error: Gamepass Required!", "You need the Spray gamepass to duplicate it.")
- end
- end)
- LockpickDuping.MouseButton1Up:Connect(function()
- if CheckGamepass(1671301) then
- LockpickDupingACTIVE = not LockpickDupingACTIVE
- if LockpickDupingACTIVE then
- LockpickDuping.Text = "ON"
- LockpickDuping.TextColor3 = Color3.new(0, 1, 0)
- else
- LockpickDuping.Text = "OFF"
- LockpickDuping.TextColor3 = Color3.new(175/255, 0, 0)
- end
- else
- Notify("Error: Gamepass Required!", "You need the Lockpick gamepass to duplicate it.")
- end
- end)
- ShotgunDuping.MouseButton1Up:Connect(function()
- if CheckGamepass(2716073) then
- ShotgunDupingACTIVE = not ShotgunDupingACTIVE
- if ShotgunDupingACTIVE then
- ShotgunDuping.Text = "ON"
- ShotgunDuping.TextColor3 = Color3.new(0, 1, 0)
- else
- ShotgunDuping.Text = "OFF"
- ShotgunDuping.TextColor3 = Color3.new(175/255, 0, 0)
- end
- else
- Notify("Error: Gamepass Required!", "You need the Shotgun gamepass to duplicate it.")
- end
- end)
- SignDuping.MouseButton1Up:Connect(function()
- if CheckGamepass(5058091) then
- SignDupingACTIVE = not SignDupingACTIVE
- if SignDupingACTIVE then
- SignDuping.Text = "ON"
- SignDuping.TextColor3 = Color3.new(0, 1, 0)
- else
- SignDuping.Text = "OFF"
- SignDuping.TextColor3 = Color3.new(175/255, 0, 0)
- end
- else
- Notify("Error: Gamepass Required!", "You need the Sign gamepass to duplicate it.")
- end
- end)
- KeepAll.MouseButton1Up:Connect(function()
- KeepAllACTIVE = not KeepAllACTIVE
- if KeepAllACTIVE then
- KeepAll.Text = "ON"
- KeepAll.TextColor3 = Color3.new(0, 1, 0)
- else
- KeepAll.Text = "OFF"
- KeepAll.TextColor3 = Color3.new(175/255, 0, 0)
- end
- end)
- Decrease.MouseButton1Up:Connect(function()
- if DupeValue ~= 1 then
- DupeValue = DupeValue - 1
- TextLabel_9.Text = tostring(DupeValue)
- else
- Notify("Error: Cannot be 0", "The Dupe Value must be greater than 1.")
- end
- end)
- Increase.MouseButton1Up:Connect(function()
- if DupeValue ~= 100 then
- DupeValue = DupeValue + 1
- TextLabel_9.Text = tostring(DupeValue)
- else
- Notify("Error: Overflow", "You're not going to spend 10 minutes duplicating.")
- end
- end)
- Duplicate.MouseButton1Up:Connect(function()
- Duplicating = not Duplicating
- for i = 1, DupeValue do
- if Duplicating then
- Plr.Character:BreakJoints()
- Save()
- repeat wait(1) until Plr.Character:FindFirstChildOfClass("Humanoid") and Plr.Character.Humanoid.Health ~= 0
- end
- end
- for i,v in pairs(Plr:GetChildren()) do
- if v:IsA("Tool") then
- v.Parent = Plr.Backpack
- end
- end
- for i,v in pairs(Plr.Backpack:GetChildren()) do
- if v:IsA("Tool") then
- v.CanBeDropped = true
- end
- end
- Duplicating = false
- end)
- Plr.CharacterAdded:Connect(function()
- Plr.Character:WaitForChild("Humanoid").Died:Connect(function()
- if KeepAllACTIVE and not Duplicating then
- for i,v in pairs(Plr.Backpack:GetChildren()) do
- if v:IsA("Tool") then
- v.Parent = Plr
- end
- end
- for i,v in pairs(Plr.Character:GetChildren()) do
- if v:IsA("Tool") then
- v.Parent = Plr
- end
- end
- repeat wait(1) until Plr.Character:FindFirstChildOfClass("Humanoid") and Plr.Character.Humanoid.Health ~= 0
- for i,v in pairs(Plr:GetChildren()) do
- if v:IsA("Tool") then
- v.Parent = Plr.Backpack
- end
- end
- for i,v in pairs(Plr.Backpack:GetChildren()) do
- if v:IsA("Tool") then
- v.CanBeDropped = true
- end
- end
- end
- end)
- end)
- if Plr.Character and Plr.Character:FindFirstChild("Humanoid") then
- Plr.Character.Humanoid.Died:Connect(function()
- if KeepAllACTIVE then
- for i,v in pairs(Plr.Backpack:GetChildren()) do
- if v:IsA("Tool") then
- v.Parent = Plr
- end
- end
- for i,v in pairs(Plr.Character:GetChildren()) do
- if v:IsA("Tool") then
- v.Parent = Plr
- end
- end
- repeat wait(1) until Plr.Character:FindFirstChildOfClass("Humanoid") and Plr.Character.Humanoid.Health ~= 0
- for i,v in pairs(Plr:GetChildren()) do
- if v:IsA("Tool") then
- v.Parent = Plr.Backpack
- end
- end
- for i,v in pairs(Plr.Backpack:GetChildren()) do
- if v:IsA("Tool") then
- v.CanBeDropped = true
- end
- end
- end
- end)
- end
- local BFGActive, Toggled, Mouse, Heartbeat = false, true, Plr:GetMouse(), game:GetService("RunService").Heartbeat
- local function onKeyPress(inputObject,gameProcessed)
- if inputObject.KeyCode == Enum.KeyCode.B then
- BFGActive = not BFGActive
- wait()
- if not BFGActive then
- for i,v in pairs(Plr.Character:GetChildren())do
- if v.Name == "Uzi" or v.Name == "Knife" or v.Name == "Knife" or v.Name == "Sawed Off" then
- v.Parent = Plr.Backpack
- end
- end
- end
- elseif inputObject.KeyCode == Enum.KeyCode.Insert then
- Toggled = not Toggled
- if Toggled then
- ScreenGui.Enabled = true
- else
- ScreenGui.Enabled = false
- end
- end
- end
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
- Mouse.Button1Down:connect(function()
- Heartbeat:wait()
- for i,v in pairs(Plr.Character:GetChildren())do
- if v.Name == "Knife" and v:FindFirstChild("Fire") then
- v.Fire:FireServer(Mouse.Hit)
- elseif v.Name == "Sawed Off" and v:FindFirstChild("Fire") then
- v.Fire:FireServer(Mouse.Hit)
- elseif v.Name == "Uzi" and v:FindFirstChild("Fire") then
- v.Fire:FireServer(Mouse.Hit)
- elseif v.Name == "Knife" and v:FindFirstChild("Fire") then
- v.Fire:FireServer(Mouse.Hit)
- end
- end
- end)
- while true do
- Heartbeat:wait()
- if BFGActive and Plr.Character then
- if Plr.Backpack:FindFirstChild("Knife") then
- Plr.Backpack.Knife.Parent = Plr.Character
- Heartbeat:wait()
- end
- if Plr.Backpack:FindFirstChild("Sawed Off") then
- Plr.Backpack["Sawed Off"].Parent = Plr.Character
- Heartbeat:wait()
- end
- if Plr.Backpack:FindFirstChild("Uzi") then
- Plr.Backpack.Uzi.Parent = Plr.Character
- Heartbeat:wait()
- end
- if Plr.Backpack:FindFirstChild("Knife") then
- Plr.Backpack.Knife.Parent = Plr.Character
- Heartbeat:wait()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement