Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local TreelandsDuplicatorGui = Instance.new("ScreenGui")
- local MainFrame = Instance.new("Frame")
- local FruitsFrame = Instance.new("ScrollingFrame")
- TreelandsDuplicatorGui.Name = "TreelandsDuplicatorGui"
- TreelandsDuplicatorGui.Parent = game.CoreGui
- MainFrame.Name = "MainFrame"
- MainFrame.Parent = TreelandsDuplicatorGui
- MainFrame.Active = true
- MainFrame.BackgroundColor3 = Color3.new(0, 0, 0)
- MainFrame.BorderSizePixel = 0
- MainFrame.Draggable = true
- MainFrame.Position = UDim2.new(0.249816313, 0, 0.250611246, 0)
- MainFrame.Size = UDim2.new(0.200000003, 0, 0.150000006, 0)
- FruitsFrame.Name = "FruitsFrame"
- FruitsFrame.Parent = MainFrame
- FruitsFrame.BackgroundColor3 = Color3.new(1, 1, 1)
- FruitsFrame.BackgroundTransparency = 0.69999998807907
- FruitsFrame.BorderSizePixel = 0
- FruitsFrame.Position = UDim2.new(0.075000003, 0, 0.25, 0)
- FruitsFrame.Size = UDim2.new(0.850000024, 0, 0.5, 0)
- FruitsFrame.ScrollBarThickness = 0
- FruitsFrame.CanvasSize = UDim2.new(0, 0, 100, 0)
- local Fruits = game.Workspace.Fruits
- local Status = false
- local possibleFruits =
- {
- "",
- "-- FRUITS --",
- "",
- "Apple",
- "Banana",
- "Blackberry",
- "Blueberry",
- "Durian",
- "Green Apple",
- "Kiwi",
- "Large Banana",
- "Horned Melon",
- "Kumquat",
- "Lemon",
- "Mango",
- "Orange",
- "Papaya",
- "Peach",
- "Pear",
- "Pineapple",
- "Plum",
- "Pomelo",
- "Potato",
- "Watermelon",
- "",
- "-- CRYSTALS --",
- "",
- "Blue Crystal",
- "Green Crystal",
- "Orange Crystal",
- "Purple Crystal",
- "Red Crystal",
- "",
- "-- MOST VALUABLE --",
- "",
- "Pineapple",
- }
- nr = 0
- currentPos = UDim2.new(0,0,0,0)
- for iv,xv in pairs(possibleFruits) do
- print(possibleFruits[nr])
- nr = nr+1
- local FruitButton = Instance.new("TextButton")
- FruitButton.Name = "FruitButton"
- FruitButton.Parent = FruitsFrame
- FruitButton.BackgroundColor3 = Color3.new(0.345098, 0.345098, 0.345098)
- FruitButton.BorderColor3 = Color3.new(1, 1, 1)
- FruitButton.BorderSizePixel = 0
- FruitButton.Size = UDim2.new(1, 0, 0.0025, 0)
- FruitButton.Font = Enum.Font.SourceSans
- FruitButton.FontSize = Enum.FontSize.Size14
- FruitButton.Text = possibleFruits[nr]
- FruitButton.TextColor3 = Color3.new(1, 1, 1)
- FruitButton.TextScaled = true
- FruitButton.Position = currentPos
- FruitButton.TextSize = 14
- FruitButton.TextWrapped = true
- FruitButton.MouseButton1Down:connect(function()
- local checkhowmany = 0;
- for i,v in pairs(Fruits:GetChildren()) do
- checkhowmany = checkhowmany + 1
- end
- if checkhowmany == 0 then
- Status = false
- return
- else
- Status = true
- end
- for i,v in pairs(Fruits:GetChildren()) do
- v.Name = FruitButton.Text
- v.Tooltip.Value = FruitButton.Text
- local d = Instance.new("Decal")
- d.Face = "Top"
- d.Texture = "http://www.roblox.com/asset/?id=1135215259"
- local d1 = d:clone()
- local d2 = d:clone()
- local d3 = d:clone()
- local d4 = d:clone()
- local d5 = d:clone()
- local d6 = d:clone()
- local b = v:Clone()
- d1.Parent = b
- d2.Parent = b
- d3.Parent = b
- d4.Parent = b
- d5.Parent = b
- d6.Parent = b
- d1.Face = "Top"
- d2.Face = "Right"
- d3.Face = "Left"
- d4.Face = "Front"
- d5.Face = "Bottom"
- d6.Face = "Back"
- b.Mesh:remove()
- b.Size = Vector3.new(2,2,2)
- b.Parent = Fruits
- b.Transparency = 0.5
- break
- end
- end)
- currentPos = currentPos + UDim2.new(0, 0, 0.0025,0)
- end
- Fruits.ChildAdded:connect(function()
- Status = true
- end)
- Fruits.ChildRemoved:connect(function()
- local checkhowmany = 0;
- for i,v in pairs(Fruits:GetChildren()) do
- checkhowmany = checkhowmany + 1
- end
- if checkhowmany == 0 then
- Status = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement