Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --i will put a -- in front of everything i created or edited
- if game.CoreGui:FindFirstChild("Aud") then--
- game.CoreGui.Aud:Destroy()--
- end--
- local toggle = true--
- local gonnagrab = {}--
- local berriesOnState = false--
- local Objects
- local mouse = game:GetService("Players").LocalPlayer:GetMouse()--
- local Aud = Instance.new("ScreenGui")--
- local Frame = Instance.new("Frame")--
- local Content = Instance.new("ScrollingFrame")--
- local ores = Instance.new("TextButton")--
- local ore = Instance.new("Frame")--
- local Steel = Instance.new("TextButton")--
- local UIListLayout = Instance.new("UIListLayout")--
- local Iron = Instance.new("TextButton")--
- local Adurite = Instance.new("TextButton")--
- local Crystal = Instance.new("TextButton")--
- local Coal = Instance.new("TextButton")--
- local Magnetite = Instance.new("TextButton")--
- local Gold = Instance.new("TextButton")--
- local Diamond = Instance.new("TextButton")--
- local Emerald = Instance.new("TextButton")--
- local void = Instance.new("TextButton")--
- local Building = Instance.new("TextButton")--
- local Build = Instance.new("Frame")--
- local UIListLayout_2 = Instance.new("UIListLayout")--
- local ice = Instance.new("TextButton")--
- local wood = Instance.new("TextButton")--
- local Stone = Instance.new("TextButton")--
- local log = Instance.new("TextButton")--
- local miscl = Instance.new("TextButton")--
- local misc = Instance.new("Frame")--
- local UIListLayout_3 = Instance.new("UIListLayout")--
- local Coins = Instance.new("TextButton")--
- local spirit = Instance.new("TextButton")--
- local Bags = Instance.new("TextButton")--
- local Essence = Instance.new("TextButton")--
- local Hide = Instance.new("TextButton")--
- local leaves = Instance.new("TextButton")--
- local Foood = Instance.new("TextButton")--
- local food = Instance.new("Frame")--
- local UIListLayout_4 = Instance.new("UIListLayout")--
- local Raw = Instance.new("TextButton")--
- local Cooked = Instance.new("TextButton")--
- local berries = Instance.new("TextButton")--
- local Orange = Instance.new("TextButton")--
- local Apple = Instance.new("TextButton")--
- local Bread = Instance.new("TextButton")--
- local jelly = Instance.new("TextButton")--
- local stik = Instance.new("TextButton")--
- local tog = Instance.new("TextButton")--
- local function checkname(text)--
- for i,v in pairs(gonnagrab) do--
- if string.find(text,v) then--
- return true--
- end--
- end--
- return nil--
- end--
- local function unknown(text)--
- for i,v in pairs(gonnagrab) do--
- if v == text then--
- table.remove(gonnagrab,i)--
- return false--
- end--
- end--
- table.insert(gonnagrab, text)--
- return true--
- end--
- local Pickup = function(Character)
- local myPos = Character.HumanoidRootPart.Position
- local Objects = {}
- for i, v in pairs(workspace:GetChildren()) do
- if v:FindFirstChild("Pickup") and v.ClassName == "Part" and checkname(v.Name) then -- i added "and checkname(v.Name)"
- local Pos = v.Position
- local Distance = (myPos - Pos).magnitude
- if Distance < 40 then
- table.insert(Objects, v) --MeshPart
- end
- elseif v:FindFirstChild("Pickup") and v:FindFirstChild("Part") and v.Part.ClassName == "Part" and checkname(v.Name) then-- i added "and checkname(v.Name)"
- local Pos = v.Part.Position
- local Distance = (myPos - Pos).magnitude
- if Distance < 40 then
- table.insert(Objects, v)
- end
- elseif v:FindFirstChild("Pickup") and v.ClassName == "UnionOperation" and checkname(v.Name) then-- i added "and checkname(v.Name)"
- local Pos = v.Position
- local Distance = (myPos - Pos).magnitude
- if Distance < 40 then
- table.insert(Objects, v)
- end
- elseif v:FindFirstChild("Pickup") and v.ClassName == "MeshPart" and checkname(v.Name) then
- local Pos = v.Position
- local Distance = (myPos - Pos).magnitude
- if Distance < 40 then
- table.insert(Objects, v)
- end
- elseif v.Name == "Deployables" then--i added this entire check myself to support chests and other types of stuff that holds items, even fish traps!
- for a,b in pairs(v:GetChildren()) do--
- if b:FindFirstChild("Contents") then--
- for c,d in pairs(b.Contents:GetChildren()) do--
- if d.ClassName == "Model" and checkname(d.Name) then--
- local ref = d:FindFirstChild("Reference")--
- local Pos = ref.Position
- local Distance = (myPos - Pos).magnitude
- if Distance < 40 then
- table.insert(Objects, d)
- end
- elseif checkname(d.Name) then--
- local Pos = d.Position
- local Distance = (myPos - Pos).magnitude
- if Distance < 40 then
- table.insert(Objects, d)
- end
- end
- end--
- end--
- end--
- end--
- end
- for i, v in pairs(Objects) do
- for i = 1, 10 do
- if v.ClassName == "Model" then--
- v:FindFirstChild("Reference").Position = myPos--added and edited
- else--
- v.Position = myPos --edited
- end--
- game:GetService("ReplicatedStorage").Events.Pickup:FireServer(v)
- end
- end
- end
- Aud.Name = "Aud"--
- Aud.Parent = game.CoreGui--
- Aud.ResetOnSpawn = false--
- Frame.Parent = Aud--
- Frame.Active = true--
- Frame.Draggable = true--
- Frame.Position = UDim2.new(0, 500, 0, 200)--
- Frame.Size = UDim2.new(0.150000006, 0, 0.170000002, 0)--
- Frame.Style = Enum.FrameStyle.RobloxRound--
- Content.Name = "Content"--
- Content.Parent = Frame--
- Content.Active = true--
- Content.BackgroundTransparency = 1--
- Content.ClipsDescendants = false--
- Content.Size = UDim2.new(1, 0, 1, 0)--
- Content.CanvasSize = UDim2.new(0, 0, 0, 200)--
- ores.Name = "ores"--
- ores.Parent = Content--
- ores.Size = UDim2.new(0.899999976, 0, 0.0799999982, 0)--
- ores.Text = "Ores"--
- ore.Name = "ore"--
- ore.Parent = ores--
- ore.Active = true--
- ore.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)--
- ore.BackgroundTransparency = 1--------------------------------------------------------------im getting tired so everything underneath this i created
- ore.Position = UDim2.new(-0.100000001, 0, 0, 0)
- ore.Size = UDim2.new(-0.600000024, 0, 5, 0)
- Steel.Name = "Steel"
- Steel.Parent = ore
- Steel.BackgroundColor3 = Color3.new(1, 1, 1)
- Steel.Size = UDim2.new(1, 0, 0.200000003, 0)
- Steel.Font = Enum.Font.SourceSans
- Steel.Text = "Steel [false]"
- Steel.TextSize = 14
- UIListLayout.Parent = ore
- UIListLayout.Padding = UDim.new(0.0500000007, 0)
- Iron.Name = "Iron"
- Iron.Parent = ore
- Iron.BackgroundColor3 = Color3.new(1, 1, 1)
- Iron.Size = UDim2.new(1, 0, 0.200000003, 0)
- Iron.Font = Enum.Font.SourceSans
- Iron.Text = "Iron [false]"
- Iron.TextSize = 14
- Adurite.Name = "Adurite"
- Adurite.Parent = ore
- Adurite.BackgroundColor3 = Color3.new(1, 1, 1)
- Adurite.Size = UDim2.new(1, 0, 0.200000003, 0)
- Adurite.Font = Enum.Font.SourceSans
- Adurite.Text = "Adurite [false]"
- Adurite.TextSize = 14
- Crystal.Name = "Crystal"
- Crystal.Parent = ore
- Crystal.BackgroundColor3 = Color3.new(1, 1, 1)
- Crystal.Size = UDim2.new(1, 0, 0.200000003, 0)
- Crystal.Font = Enum.Font.SourceSans
- Crystal.Text = "Cystal [false]"
- Crystal.TextSize = 14
- Coal.Name = "Coal"
- Coal.Parent = ore
- Coal.BackgroundColor3 = Color3.new(1, 1, 1)
- Coal.Size = UDim2.new(1, 0, 0.200000003, 0)
- Coal.Font = Enum.Font.SourceSans
- Coal.Text = "Coal [false]"
- Coal.TextSize = 14
- Coal.TextTransparency = -1
- Magnetite.Name = "Magnetite"
- Magnetite.Parent = ore
- Magnetite.BackgroundColor3 = Color3.new(1, 1, 1)
- Magnetite.Size = UDim2.new(1, 0, 0.200000003, 0)
- Magnetite.Font = Enum.Font.SourceSans
- Magnetite.Text = "Magnetite [false]"
- Magnetite.TextSize = 14
- Gold.Name = "Gold"
- Gold.Parent = ore
- Gold.BackgroundColor3 = Color3.new(1, 1, 1)
- Gold.Size = UDim2.new(1, 0, 0.200000003, 0)
- Gold.Font = Enum.Font.SourceSans
- Gold.Text = "Gold [false]"
- Gold.TextSize = 14
- Diamond.Name = "Diamond"
- Diamond.Parent = ore
- Diamond.BackgroundColor3 = Color3.new(1, 1, 1)
- Diamond.Size = UDim2.new(1, 0, 0.200000003, 0)
- Diamond.Font = Enum.Font.SourceSans
- Diamond.Text = "Pink Diamond [false]"
- Diamond.TextScaled = true
- Diamond.TextSize = 14
- Diamond.TextWrapped = true
- Emerald.Name = "Emerald"
- Emerald.Parent = ore
- Emerald.BackgroundColor3 = Color3.new(1, 1, 1)
- Emerald.Size = UDim2.new(1, 0, 0.200000003, 0)
- Emerald.Font = Enum.Font.SourceSans
- Emerald.Text = "Emerald [false]"
- Emerald.TextSize = 14
- void.Name = "void"
- void.Parent = ore
- void.BackgroundColor3 = Color3.new(1, 1, 1)
- void.Size = UDim2.new(1, 0, 0.200000003, 0)
- void.Font = Enum.Font.SourceSans
- void.Text = "Void [false]"
- void.TextSize = 14
- Building.Name = "Building"
- Building.Parent = Content
- Building.Position = UDim2.new(0, 0, 0.100000001, 0)
- Building.Size = UDim2.new(0.899999976, 0, 0.0799999982, 0)
- Building.Text = "Building"
- Build.Name = "Build"
- Build.Parent = Building
- Build.Active = true
- Build.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
- Build.BackgroundTransparency = 1
- Build.Position = UDim2.new(-0.100000001, 0, 0, 0)
- Build.Size = UDim2.new(-0.600000024, 0, 5, 0)
- Build.Visible = false
- UIListLayout_2.Parent = Build
- UIListLayout_2.Padding = UDim.new(0.0500000007, 0)
- ice.Name = "ice"
- ice.Parent = Build
- ice.BackgroundColor3 = Color3.new(1, 1, 1)
- ice.Size = UDim2.new(1, 0, 0.200000003, 0)
- ice.Font = Enum.Font.SourceSans
- ice.Text = "Ice [false]"
- ice.TextSize = 14
- wood.Name = "wood"
- wood.Parent = Build
- wood.BackgroundColor3 = Color3.new(1, 1, 1)
- wood.Size = UDim2.new(1, 0, 0.200000003, 0)
- wood.Font = Enum.Font.SourceSans
- wood.Text = "Wood [false]"
- wood.TextSize = 14
- wood.TextTransparency = -1
- Stone.Name = "Stone"
- Stone.Parent = Build
- Stone.BackgroundColor3 = Color3.new(1, 1, 1)
- Stone.Size = UDim2.new(1, 0, 0.200000003, 0)
- Stone.Font = Enum.Font.SourceSans
- Stone.Text = "Stone [false]"
- Stone.TextSize = 14
- log.Name = "log"
- log.Parent = Build
- log.BackgroundColor3 = Color3.new(1, 1, 1)
- log.Size = UDim2.new(1, 0, 0.200000003, 0)
- log.Font = Enum.Font.SourceSans
- log.Text = "Logs [false]"
- log.TextSize = 14
- miscl.Name = "miscl"
- miscl.Parent = Content
- miscl.Position = UDim2.new(0, 0, 0.200000003, 0)
- miscl.Size = UDim2.new(0.899999976, 0, 0.0799999982, 0)
- miscl.Text = "Misc"
- misc.Name = "misc"
- misc.Parent = miscl
- misc.Active = true
- misc.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
- misc.BackgroundTransparency = 1
- misc.Position = UDim2.new(-0.100000001, 0, 0, 0)
- misc.Size = UDim2.new(-0.600000024, 0, 5, 0)
- misc.Visible = false
- UIListLayout_3.Parent = misc
- UIListLayout_3.Padding = UDim.new(0.0500000007, 0)
- Coins.Name = "Coins"
- Coins.Parent = misc
- Coins.BackgroundColor3 = Color3.new(1, 1, 1)
- Coins.Size = UDim2.new(1, 0, 0.200000003, 0)
- Coins.Font = Enum.Font.SourceSans
- Coins.Text = "Coins [false]"
- Coins.TextSize = 14
- spirit.Name = "spirit"
- spirit.Parent = misc
- spirit.BackgroundColor3 = Color3.new(1, 1, 1)
- spirit.Size = UDim2.new(1, 0, 0.200000003, 0)
- spirit.Font = Enum.Font.SourceSans
- spirit.Text = "Spirit [false]"
- spirit.TextSize = 14
- Bags.Name = "Bags"
- Bags.Parent = misc
- Bags.BackgroundColor3 = Color3.new(1, 1, 1)
- Bags.Size = UDim2.new(1, 0, 0.200000003, 0)
- Bags.Font = Enum.Font.SourceSans
- Bags.Text = "Bags [false]"
- Bags.TextSize = 14
- Bags.TextTransparency = -1
- Essence.Name = "Essence"
- Essence.Parent = misc
- Essence.BackgroundColor3 = Color3.new(1, 1, 1)
- Essence.Size = UDim2.new(1, 0, 0.200000003, 0)
- Essence.Font = Enum.Font.SourceSans
- Essence.Text = "Essence [false]"
- Essence.TextSize = 14
- Hide.Name = "Hide"
- Hide.Parent = misc
- Hide.BackgroundColor3 = Color3.new(1, 1, 1)
- Hide.Size = UDim2.new(1, 0, 0.200000003, 0)
- Hide.Font = Enum.Font.SourceSans
- Hide.Text = "Hide [false]"
- Hide.TextSize = 14
- leaves.Name = "leaves"
- leaves.Parent = misc
- leaves.BackgroundColor3 = Color3.new(1, 1, 1)
- leaves.Size = UDim2.new(1, 0, 0.200000003, 0)
- leaves.Font = Enum.Font.SourceSans
- leaves.Text = "Leaves [false]"
- leaves.TextSize = 14
- stik.Name = "stik"
- stik.Parent = Build
- stik.BackgroundColor3 = Color3.new(1, 1, 1)
- stik.Size = UDim2.new(1, 0, 0.200000003, 0)
- stik.Font = Enum.Font.SourceSans
- stik.Text = "Stick [false]"
- stik.TextSize = 14
- Foood.Name = "Foood"
- Foood.Parent = Content
- Foood.Position = UDim2.new(0, 0, 0.300000012, 0)
- Foood.Size = UDim2.new(0.899999976, 0, 0.0799999982, 0)
- Foood.Text = "Food"
- food.Name = "food"
- food.Parent = Foood
- food.Active = true
- food.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
- food.BackgroundTransparency = 1
- food.Position = UDim2.new(-0.100000001, 0, 0, 0)
- food.Size = UDim2.new(-0.600000024, 0, 5, 0)
- food.Visible = false
- UIListLayout_4.Parent = food
- UIListLayout_4.Padding = UDim.new(0.0500000007, 0)
- Raw.Name = "Raw"
- Raw.Parent = food
- Raw.BackgroundColor3 = Color3.new(1, 1, 1)
- Raw.Size = UDim2.new(1, 0, 0.200000003, 0)
- Raw.Font = Enum.Font.SourceSans
- Raw.Text = "Raw [false]"
- Raw.TextSize = 14
- Raw.TextTransparency = -1
- Cooked.Name = "Cooked"
- Cooked.Parent = food
- Cooked.BackgroundColor3 = Color3.new(1, 1, 1)
- Cooked.Size = UDim2.new(1, 0, 0.200000003, 0)
- Cooked.Font = Enum.Font.SourceSans
- Cooked.Text = "Cooked [false]"
- Cooked.TextSize = 14
- berries.Name = "berries"
- berries.Parent = food
- berries.BackgroundColor3 = Color3.new(1, 1, 1)
- berries.Size = UDim2.new(1, 0, 0.200000003, 0)
- berries.Font = Enum.Font.SourceSans
- berries.Text = "Berries/Fruit [false]"
- berries.TextSize = 14
- Orange.Name = "Orange"
- Orange.Parent = food
- Orange.BackgroundColor3 = Color3.new(1, 1, 1)
- Orange.Size = UDim2.new(1, 0, 0.200000003, 0)
- Orange.Font = Enum.Font.SourceSans
- Orange.Text = "Orange [false]"
- Orange.TextSize = 14
- Apple.Name = "Apple"
- Apple.Parent = food
- Apple.BackgroundColor3 = Color3.new(1, 1, 1)
- Apple.Size = UDim2.new(1, 0, 0.200000003, 0)
- Apple.Font = Enum.Font.SourceSans
- Apple.Text = "Apple [false]"
- Apple.TextSize = 14
- Bread.Name = "Bread"
- Bread.Parent = food
- Bread.BackgroundColor3 = Color3.new(1, 1, 1)
- Bread.Size = UDim2.new(1, 0, 0.200000003, 0)
- Bread.Font = Enum.Font.SourceSans
- Bread.Text = "Bread [false]"
- Bread.TextSize = 14
- jelly.Name = "jelly"
- jelly.Parent = food
- jelly.BackgroundColor3 = Color3.new(1, 1, 1)
- jelly.Size = UDim2.new(1, 0, 0.200000003, 0)
- jelly.Font = Enum.Font.SourceSans
- jelly.Text = "Jelly [false]"
- jelly.TextSize = 14
- tog.Name = "tog"
- tog.Parent = Content
- tog.Position = UDim2.new(0, 0, 0.400000006, 0)
- tog.Size = UDim2.new(0.899999976, 0, 0.0799999982, 0)
- tog.Text = "Toggle [true]"
- mouse.KeyDown:connect(function(key)
- if toggle then
- if key == "y" then
- Pickup(game.Players.LocalPlayer.Character)
- end
- end
- end)
- tog.MouseButton1Down:connect(function()
- toggle = not toggle
- tog.Text = "Toggle ["..tostring(toggle).."]"
- end)
- Building.MouseButton1Down:connect(function()
- food.Visible = false
- misc.Visible = false
- ore.Visible = false
- Build.Visible = true
- end)
- miscl.MouseButton1Down:connect(function()
- Build.Visible = false
- food.Visible = false
- ore.Visible = false
- misc.Visible = true
- end)
- Foood.MouseButton1Down:connect(function()
- Build.Visible = false
- misc.Visible = false
- ore.Visible = false
- food.Visible = true
- end)
- ores.MouseButton1Down:connect(function()
- Build.Visible = false
- misc.Visible = false
- food.Visible = false
- ore.Visible = true
- end)
- Stone.MouseButton1Down:connect(function()
- local text = "Stone"
- Stone.Text = text.." ["..tostring(unknown(text)).."]"
- end)
- ice.MouseButton1Down:connect(function()
- local text = "Ice"
- ice.Text = text.." ["..tostring(unknown(text)).."]"
- end)
- log.MouseButton1Down:connect(function()
- local text = "Log"
- log.Text = text.." ["..tostring(unknown(text)).."]"
- end)
- wood.MouseButton1Down:connect(function()
- local text = "Wood"
- wood.Text = text.." ["..tostring(unknown(text)).."]"
- end)
- jelly.MouseButton1Down:connect(function()
- local text = "Jelly"
- jelly.Text = text.." ["..tostring(unknown(text)).."]"
- end)
- Cooked.MouseButton1Down:connect(function()
- local text = "Cooked"
- Cooked.Text = text.." ["..tostring(unknown(text)).."]"
- end)
- Apple.MouseButton1Down:connect(function()
- local text = "Apple"
- Apple.Text = text.." ["..tostring(unknown(text)).."]"
- end)
- Bread.MouseButton1Down:connect(function()
- local text = "Bread"
- Bread.Text = text.." ["..tostring(unknown(text)).."]"
- end)
- berries.MouseButton1Down:connect(function()
- berriesOnState = not berriesOnState
- unknown("fruit")
- unknown("Berry")
- berries.Text = "Berries/Fruit ["..tostring(berriesOnState).."]"
- end)
- spirit.MouseButton1Down:connect(function()
- local text = "Spirit"
- spirit.Text = text.." ["..tostring(unknown(text)).."]"
- end)
- Raw.MouseButton1Down:connect(function()
- local text = "Raw"
- Raw.Text = text.." ["..tostring(unknown(text)).."]"
- end)
- Orange.MouseButton1Down:connect(function()
- local text = "Orange"
- Orange.Text = text.." ["..tostring(unknown(text)).."]"
- end)
- Bags.MouseButton1Down:connect(function()
- local text = "Bag"
- Bags.Text = text.." ["..tostring(unknown(text)).."]"
- end)
- Coins.MouseButton1Down:connect(function()
- local text = "Coin"
- Coins.Text = text.." ["..tostring(unknown(text)).."]"
- end)
- leaves.MouseButton1Down:connect(function()
- local text = "Leaves"
- leaves.Text = text.." ["..tostring(unknown(text)).."]"
- end)
- Essence.MouseButton1Down:connect(function()
- local text = "Essence"
- Essence.Text = text.." ["..tostring(unknown(text)).."]"
- end)
- Hide.MouseButton1Down:connect(function()
- local text = "Hide"
- Hide.Text = text.." ["..tostring(unknown(text)).."]"
- end)
- Diamond.MouseButton1Down:connect(function()
- local text = "Diamond"
- Diamond.Text = text.." ["..tostring(unknown(text)).."]"
- end)
- Adurite.MouseButton1Down:connect(function()
- local text = "Adurite"
- Adurite.Text = text.." ["..tostring(unknown(text)).."]"
- end)
- Coal.MouseButton1Down:connect(function()
- local text = "Coal"
- Coal.Text = text.." ["..tostring(unknown(text)).."]"
- end)
- Crystal.MouseButton1Down:connect(function()
- local text = "Crystal"
- Crystal.Text = text.." ["..tostring(unknown(text)).."]"
- end)
- Gold.MouseButton1Down:connect(function()
- local text = "Gold"
- Gold.Text = text.." ["..tostring(unknown(text)).."]"
- end)
- void.MouseButton1Down:connect(function()
- local text = "Void"
- void.Text = text.." ["..tostring(unknown(text)).."]"
- end)
- Iron.MouseButton1Down:connect(function()
- local text = "Iron"
- Iron.Text = text.." ["..tostring(unknown(text)).."]"
- end)
- Magnetite.MouseButton1Down:connect(function()
- local text = "Magnetite"
- Magnetite.Text = text.." ["..tostring(unknown(text)).."]"
- end)
- Emerald.MouseButton1Down:connect(function()
- local text = "Emerald"
- Emerald.Text = text.." ["..tostring(unknown(text)).."]"
- end)
- Steel.MouseButton1Down:connect(function()
- local text = "Steel"
- Steel.Text = text.." ["..tostring(unknown(text)).."]"
- end)
- stik.MouseButton1Down:connect(function()
- local text = "Stick"
- stik.Text = text.." ["..tostring(unknown(text)).."]"
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement