Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- This work is protected under copyright
- -- Any attempts to steal and publish this work will be taken action against under law.
- --
- -- © 2020, Denizen Donut, All rights reserved.
- local remote = game.Players.LocalPlayer:WaitForChild("GrowBrick")
- local player = game.Players.LocalPlayer
- local name = nil
- -- Instances:
- local WelcomeScreen = Instance.new("ScreenGui")
- local Outside = Instance.new("Frame")
- local Title = Instance.new("TextLabel")
- local SubTitle = Instance.new("TextLabel")
- local Frame = Instance.new("TextLabel")
- local FrameBottom = Instance.new("TextLabel")
- local TextLabel = Instance.new("TextLabel")
- local TextBox = Instance.new("TextBox")
- local TextButton = Instance.new("TextButton")
- --Properties:
- WelcomeScreen.Name = "WelcomeScreen"
- WelcomeScreen.Parent = player.PlayerGui
- WelcomeScreen.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- WelcomeScreen.ResetOnSpawn = false
- Outside.Name = "Outside"
- Outside.Parent = WelcomeScreen
- Outside.AnchorPoint = Vector2.new(0.5, 0.5)
- Outside.BackgroundColor3 = Color3.fromRGB(17, 152, 255)
- Outside.BackgroundTransparency = 0.500
- Outside.BorderColor3 = Color3.fromRGB(28, 107, 255)
- Outside.BorderSizePixel = 10
- Outside.Position = UDim2.new(0.5, 0, 0.5, 0)
- Outside.Size = UDim2.new(0.899999976, 0, 0.5, 0)
- Outside.SizeConstraint = Enum.SizeConstraint.RelativeYY
- Title.Name = "Title"
- Title.Parent = Outside
- Title.AnchorPoint = Vector2.new(0.5, 0)
- Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Title.BackgroundTransparency = 1.000
- Title.Position = UDim2.new(0.5, 0, 0.0500000007, 0)
- Title.Size = UDim2.new(0.800000012, 0, 0.200000003, 0)
- Title.ZIndex = 2
- Title.Font = Enum.Font.PermanentMarker
- Title.Text = "Grow A Brick!"
- Title.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title.TextScaled = true
- Title.TextSize = 14.000
- Title.TextStrokeColor3 = Color3.fromRGB(136, 136, 136)
- Title.TextStrokeTransparency = 0.000
- Title.TextWrapped = true
- SubTitle.Name = "SubTitle"
- SubTitle.Parent = Outside
- SubTitle.AnchorPoint = Vector2.new(0.5, 0)
- SubTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- SubTitle.BackgroundTransparency = 1.000
- SubTitle.Position = UDim2.new(0.5, 0, 0.200000003, 0)
- SubTitle.Size = UDim2.new(0.800000012, 0, 0.075000003, 0)
- SubTitle.ZIndex = 2
- SubTitle.Font = Enum.Font.PermanentMarker
- SubTitle.Text = "By Memo1332"
- SubTitle.TextColor3 = Color3.fromRGB(227, 227, 227)
- SubTitle.TextScaled = true
- SubTitle.TextSize = 14.000
- SubTitle.TextStrokeColor3 = Color3.fromRGB(136, 136, 136)
- SubTitle.TextStrokeTransparency = 0.000
- SubTitle.TextWrapped = true
- Frame.Name = "Frame"
- Frame.Parent = Outside
- Frame.AnchorPoint = Vector2.new(0.5, 0)
- Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Frame.BackgroundTransparency = 0.700
- Frame.Position = UDim2.new(0.5, 0, 0.0500000007, 0)
- Frame.Size = UDim2.new(0.800000012, 0, 0.25, 0)
- Frame.Font = Enum.Font.PermanentMarker
- Frame.Text = ""
- Frame.TextColor3 = Color3.fromRGB(227, 227, 227)
- Frame.TextScaled = true
- Frame.TextSize = 14.000
- Frame.TextStrokeColor3 = Color3.fromRGB(136, 136, 136)
- Frame.TextStrokeTransparency = 0.000
- Frame.TextWrapped = true
- FrameBottom.Name = "FrameBottom"
- FrameBottom.Parent = Outside
- FrameBottom.AnchorPoint = Vector2.new(0.5, 0)
- FrameBottom.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- FrameBottom.BackgroundTransparency = 0.700
- FrameBottom.Position = UDim2.new(0.5, 0, 0.349999994, 0)
- FrameBottom.Size = UDim2.new(0.949999988, 0, 0.600000024, 0)
- FrameBottom.Font = Enum.Font.PermanentMarker
- FrameBottom.Text = ""
- FrameBottom.TextColor3 = Color3.fromRGB(227, 227, 227)
- FrameBottom.TextScaled = true
- FrameBottom.TextSize = 14.000
- FrameBottom.TextStrokeColor3 = Color3.fromRGB(136, 136, 136)
- FrameBottom.TextStrokeTransparency = 0.000
- FrameBottom.TextWrapped = true
- TextLabel.Parent = FrameBottom
- TextLabel.AnchorPoint = Vector2.new(1, 0.5)
- TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.BackgroundTransparency = 1.000
- TextLabel.Position = UDim2.new(0.479999989, 0, 0.449999988, 0)
- TextLabel.Size = UDim2.new(0.400000006, 0, 0.300000012, 0)
- TextLabel.Font = Enum.Font.PermanentMarker
- TextLabel.Text = "Brick Name:"
- TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14.000
- TextLabel.TextWrapped = true
- TextBox.Parent = FrameBottom
- TextBox.AnchorPoint = Vector2.new(0, 0.5)
- TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextBox.BackgroundTransparency = 0.500
- TextBox.BorderColor3 = Color3.fromRGB(157, 157, 157)
- TextBox.BorderSizePixel = 5
- TextBox.Position = UDim2.new(0.519999981, 0, 0.449999988, 0)
- TextBox.Size = UDim2.new(0.400000006, 0, 0.300000012, 0)
- TextBox.Font = Enum.Font.SourceSans
- TextBox.PlaceholderColor3 = Color3.fromRGB(140, 140, 140)
- TextBox.PlaceholderText = "Ava"
- TextBox.Text = ""
- TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextBox.TextScaled = true
- TextBox.TextSize = 14.000
- TextBox.TextWrapped = true
- TextButton.Parent = FrameBottom
- TextButton.AnchorPoint = Vector2.new(0.5, 0.5)
- TextButton.BackgroundColor3 = Color3.fromRGB(3, 200, 0)
- TextButton.BorderColor3 = Color3.fromRGB(9, 135, 0)
- TextButton.BorderSizePixel = 5
- TextButton.Position = UDim2.new(0.5, 0, 0.850000024, 0)
- TextButton.Size = UDim2.new(0.300000012, 0, 0.200000003, 0)
- TextButton.Font = Enum.Font.PermanentMarker
- TextButton.Text = "Go!"
- TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextButton.TextScaled = true
- TextButton.TextSize = 14.000
- TextButton.TextWrapped = true
- TextButton.MouseButton1Click:Connect(function()
- name = TextBox.Text
- end)
- repeat wait() until name ~= nil
- -- Instances:
- local aBillboardGui = Instance.new("BillboardGui")
- local aFrame1 = Instance.new("Frame")
- local aFrame = Instance.new("Frame")
- local aFrame2 = Instance.new("Frame")
- local aFrame_2 = Instance.new("Frame")
- local aFrame3 = Instance.new("Frame")
- local aFrame_3 = Instance.new("Frame")
- local aFrame4 = Instance.new("Frame")
- local aFrame_4 = Instance.new("Frame")
- local aCenter = Instance.new("Frame")
- local aTextLabel = Instance.new("TextLabel")
- --Properties:
- aBillboardGui.Parent = nil
- aBillboardGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- aBillboardGui.Active = true
- aBillboardGui.AlwaysOnTop = true
- aBillboardGui.LightInfluence = 1.000
- aBillboardGui.Size = UDim2.new(2, 0, 2, 0)
- aFrame1.Name = "Frame1"
- aFrame1.Parent = aBillboardGui
- aFrame1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- aFrame1.BackgroundTransparency = 0.500
- aFrame1.BorderSizePixel = 0
- aFrame1.Position = UDim2.new(0, 0, 0.0500000007, 0)
- aFrame1.Size = UDim2.new(0.0500000007, 0, 0.949999988, 0)
- aFrame.Parent = aFrame1
- aFrame.AnchorPoint = Vector2.new(0, 1)
- aFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- aFrame.BackgroundTransparency = 0.500
- aFrame.BorderSizePixel = 0
- aFrame.Position = UDim2.new(0, 0, 1, 0)
- aFrame.Size = UDim2.new(1, 0, 0.5, 0)
- aFrame2.Name = "Frame2"
- aFrame2.Parent = aBillboardGui
- aFrame2.AnchorPoint = Vector2.new(1, 0)
- aFrame2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- aFrame2.BackgroundTransparency = 0.500
- aFrame2.BorderSizePixel = 0
- aFrame2.Position = UDim2.new(1, 0, 0, 0)
- aFrame2.Size = UDim2.new(0.0500000007, 0, 0.949999988, 0)
- aFrame_2.Parent = aFrame2
- aFrame_2.BackgroundColor3 = Color3.fromRGB(255,255,255)
- aFrame_2.BackgroundTransparency = 0.500
- aFrame_2.BorderSizePixel = 0
- aFrame_2.Size = UDim2.new(1, 0, 0.5, 0)
- aFrame3.Name = "Frame3"
- aFrame3.Parent = aBillboardGui
- aFrame3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- aFrame3.BackgroundTransparency = 0.500
- aFrame3.BorderSizePixel = 0
- aFrame3.Size = UDim2.new(0.949999988, 0, 0.0500000007, 0)
- aFrame_3.Parent = aFrame3
- aFrame_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- aFrame_3.BackgroundTransparency = 0.500
- aFrame_3.BorderSizePixel = 0
- aFrame_3.Size = UDim2.new(0.5, 0, 1, 0)
- aFrame4.Name = "Frame4"
- aFrame4.Parent = aBillboardGui
- aFrame4.AnchorPoint = Vector2.new(0, 1)
- aFrame4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- aFrame4.BackgroundTransparency = 0.500
- aFrame4.BorderSizePixel = 0
- aFrame4.Position = UDim2.new(0.0500000007, 0, 1, 0)
- aFrame4.Size = UDim2.new(0.949999988, 0, 0.0500000007, 0)
- aFrame_4.Parent = aFrame4
- aFrame_4.AnchorPoint = Vector2.new(1, 0)
- aFrame_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- aFrame_4.BackgroundTransparency = 0.500
- aFrame_4.BorderSizePixel = 0
- aFrame_4.Position = UDim2.new(1, 0, 0, 0)
- aFrame_4.Size = UDim2.new(0.5, 0, 1, 0)
- aCenter.Name = "Center"
- aCenter.Parent = aBillboardGui
- aCenter.AnchorPoint = Vector2.new(0.5, 0.5)
- aCenter.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- aCenter.BackgroundTransparency = 1.000
- aCenter.BorderSizePixel = 0
- aCenter.Position = UDim2.new(0.5, 0, 0.5, 0)
- aCenter.Size = UDim2.new(0.600000024, 0, 0.600000024, 0)
- aTextLabel.Parent = aCenter
- aTextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- aTextLabel.BackgroundTransparency = 0.800
- aTextLabel.Size = UDim2.new(1, 0, 1, 0)
- aTextLabel.Font = Enum.Font.SourceSans
- aTextLabel.Text = "F"
- aTextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- aTextLabel.TextScaled = true
- aTextLabel.TextSize = 14.000
- aTextLabel.TextWrapped = true
- WelcomeScreen:Destroy()
- remote:FireServer("Begin",name)
- local folder = nil
- remote.OnClientEvent:Connect(function(sc)
- if folder == nil then
- folder = sc
- end
- end)
- repeat wait() until folder ~= nil
- -- Instances:
- local Inventory = Instance.new("ScreenGui")
- local Outside = Instance.new("Frame")
- local StatFrame = Instance.new("Frame")
- local Namer = Instance.new("TextLabel")
- local ImageLabel = Instance.new("ImageLabel")
- local grad = Instance.new("ImageLabel")
- local grad_2 = Instance.new("ImageLabel")
- local statss = Instance.new("TextLabel")
- local Hunger = Instance.new("TextLabel")
- local Health = Instance.new("TextLabel")
- local Boredom = Instance.new("TextLabel")
- local Defecation = Instance.new("TextLabel")
- local Following = Instance.new("TextLabel")
- local Wandering = Instance.new("TextLabel")
- local Speed = Instance.new("TextLabel")
- local Size = Instance.new("TextLabel")
- local Ticks = Instance.new("TextLabel")
- local DefTick = Instance.new("TextLabel")
- local Color = Instance.new("TextLabel")
- local ItemFrame = Instance.new("Frame")
- local Itemi = Instance.new("Frame")
- local Frame = Instance.new("Frame")
- local Description = Instance.new("TextLabel")
- local UseButton = Instance.new("TextButton")
- local DropButton = Instance.new("TextButton")
- local ImageLabel2 = Instance.new("ImageLabel")
- local grad_3 = Instance.new("ImageLabel")
- local grad_4 = Instance.new("ImageLabel")
- local Namer2 = Instance.new("TextLabel")
- local crafti = Instance.new("Frame")
- local CraftFrame = Instance.new("Frame")
- local CraftSample = Instance.new("TextLabel")
- local CraftButton = Instance.new("TextButton")
- local ImageLabel2_2 = Instance.new("ImageLabel")
- local grad_5 = Instance.new("ImageLabel")
- local grad_6 = Instance.new("ImageLabel")
- local Namer2_2 = Instance.new("TextLabel")
- local InventoryFrame = Instance.new("Frame")
- local InventoryScrollFrame = Instance.new("ScrollingFrame")
- local Sample = Instance.new("ImageButton")
- local Amount = Instance.new("TextLabel")
- local Top = Instance.new("Frame")
- local InventoryButton = Instance.new("TextButton")
- local CraftingButton = Instance.new("TextButton")
- local CraftingScrollFrame = Instance.new("ScrollingFrame")
- --Properties:
- Inventory.Name = "Inventory"
- Inventory.Parent = player:WaitForChild("PlayerGui")
- Inventory.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Inventory.Enabled = false
- Inventory.ResetOnSpawn = false
- Outside.Name = "Outside"
- Outside.Parent = Inventory
- Outside.AnchorPoint = Vector2.new(0.5, 0.5)
- Outside.BackgroundColor3 = Color3.fromRGB(17, 152, 255)
- Outside.BackgroundTransparency = 0.500
- Outside.BorderColor3 = Color3.fromRGB(28, 107, 255)
- Outside.BorderSizePixel = 10
- Outside.Position = UDim2.new(0.5, 0, 0.5, 0)
- Outside.Size = UDim2.new(1.29999995, 0, 0.899999976, 0)
- Outside.SizeConstraint = Enum.SizeConstraint.RelativeYY
- StatFrame.Name = "StatFrame"
- StatFrame.Parent = Outside
- StatFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- StatFrame.BackgroundTransparency = 0.500
- StatFrame.BorderSizePixel = 0
- StatFrame.Size = UDim2.new(0.300000012, 0, 1, 0)
- Namer.Name = "Namer"
- Namer.Parent = StatFrame
- Namer.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Namer.BackgroundTransparency = 1.000
- Namer.Size = UDim2.new(1, 0, 0.100000001, 0)
- Namer.Font = Enum.Font.PermanentMarker
- Namer.Text = name
- Namer.TextColor3 = Color3.fromRGB(255, 255, 255)
- Namer.TextScaled = true
- Namer.TextSize = 14.000
- Namer.TextStrokeColor3 = Color3.fromRGB(147, 147, 147)
- Namer.TextStrokeTransparency = 0.000
- Namer.TextWrapped = true
- ImageLabel.Parent = StatFrame
- ImageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ImageLabel.BackgroundTransparency = 1.000
- ImageLabel.BorderSizePixel = 0
- ImageLabel.Position = UDim2.new(0, 0, 0.100000031, 0)
- ImageLabel.Size = UDim2.new(1, 0, 0.300000012, 0)
- ImageLabel.Image = "http://www.roblox.com/asset/?id=5841668418"
- ImageLabel.ScaleType = Enum.ScaleType.Crop
- grad.Name = "grad"
- grad.Parent = StatFrame
- grad.AnchorPoint = Vector2.new(0, 0.5)
- grad.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- grad.BackgroundTransparency = 1.000
- grad.BorderSizePixel = 0
- grad.ClipsDescendants = true
- grad.Position = UDim2.new(0, 0, 0.100000001, 0)
- grad.Size = UDim2.new(1, 0, 0.00400000019, 0)
- grad.Image = "http://www.roblox.com/asset/?id=5285832934"
- grad.ScaleType = Enum.ScaleType.Tile
- grad_2.Name = "grad"
- grad_2.Parent = StatFrame
- grad_2.AnchorPoint = Vector2.new(0, 0.5)
- grad_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- grad_2.BackgroundTransparency = 1.000
- grad_2.BorderSizePixel = 0
- grad_2.ClipsDescendants = true
- grad_2.Position = UDim2.new(0, 0, 0.400000006, 0)
- grad_2.Size = UDim2.new(1, 0, 0.00400000019, 0)
- grad_2.Image = "http://www.roblox.com/asset/?id=5285832934"
- grad_2.ScaleType = Enum.ScaleType.Tile
- statss.Name = "stats"
- statss.Parent = StatFrame
- statss.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- statss.BackgroundTransparency = 1.000
- statss.Position = UDim2.new(0, 0, 0.400000006, 0)
- statss.Size = UDim2.new(1, 0, 0.0500000007, 0)
- statss.Font = Enum.Font.PermanentMarker
- statss.Text = "Stats"
- statss.TextColor3 = Color3.fromRGB(255, 255, 255)
- statss.TextScaled = true
- statss.TextSize = 14.000
- statss.TextStrokeColor3 = Color3.fromRGB(147, 147, 147)
- statss.TextStrokeTransparency = 0.000
- statss.TextWrapped = true
- Hunger.Name = "Hunger"
- Hunger.Parent = StatFrame
- Hunger.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Hunger.BackgroundTransparency = 0.500
- Hunger.BorderColor3 = Color3.fromRGB(79, 79, 79)
- Hunger.BorderSizePixel = 3
- Hunger.Position = UDim2.new(0, 0, 0.449999988, 0)
- Hunger.Size = UDim2.new(1, 0, 0.0500000007, 0)
- Hunger.Font = Enum.Font.Code
- Hunger.Text = "Hunger: 0"
- Hunger.TextColor3 = Color3.fromRGB(255, 255, 255)
- Hunger.TextScaled = true
- Hunger.TextSize = 14.000
- Hunger.TextStrokeColor3 = Color3.fromRGB(147, 147, 147)
- Hunger.TextStrokeTransparency = 0.000
- Hunger.TextWrapped = true
- Health.Name = "Health"
- Health.Parent = StatFrame
- Health.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Health.BackgroundTransparency = 0.500
- Health.BorderColor3 = Color3.fromRGB(79, 79, 79)
- Health.BorderSizePixel = 3
- Health.Position = UDim2.new(0, 0, 0.5, 0)
- Health.Size = UDim2.new(1, 0, 0.0500000007, 0)
- Health.Font = Enum.Font.Code
- Health.Text = "Health: 0"
- Health.TextColor3 = Color3.fromRGB(255, 255, 255)
- Health.TextScaled = true
- Health.TextSize = 14.000
- Health.TextStrokeColor3 = Color3.fromRGB(147, 147, 147)
- Health.TextStrokeTransparency = 0.000
- Health.TextWrapped = true
- Boredom.Name = "Boredom"
- Boredom.Parent = StatFrame
- Boredom.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Boredom.BackgroundTransparency = 0.500
- Boredom.BorderColor3 = Color3.fromRGB(79, 79, 79)
- Boredom.BorderSizePixel = 3
- Boredom.Position = UDim2.new(0, 0, 0.550000012, 0)
- Boredom.Size = UDim2.new(1, 0, 0.0500000007, 0)
- Boredom.Font = Enum.Font.Code
- Boredom.Text = "Boredom: 0"
- Boredom.TextColor3 = Color3.fromRGB(255, 255, 255)
- Boredom.TextScaled = true
- Boredom.TextSize = 14.000
- Boredom.TextStrokeColor3 = Color3.fromRGB(147, 147, 147)
- Boredom.TextStrokeTransparency = 0.000
- Boredom.TextWrapped = true
- Defecation.Name = "Defecation"
- Defecation.Parent = StatFrame
- Defecation.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Defecation.BackgroundTransparency = 0.500
- Defecation.BorderColor3 = Color3.fromRGB(79, 79, 79)
- Defecation.BorderSizePixel = 3
- Defecation.Position = UDim2.new(0, 0, 0.600000024, 0)
- Defecation.Size = UDim2.new(1, 0, 0.0500000007, 0)
- Defecation.Font = Enum.Font.Code
- Defecation.Text = "Defecation: 0"
- Defecation.TextColor3 = Color3.fromRGB(255, 255, 255)
- Defecation.TextScaled = true
- Defecation.TextSize = 14.000
- Defecation.TextStrokeColor3 = Color3.fromRGB(147, 147, 147)
- Defecation.TextStrokeTransparency = 0.000
- Defecation.TextWrapped = true
- Following.Name = "Following"
- Following.Parent = StatFrame
- Following.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Following.BackgroundTransparency = 0.500
- Following.BorderColor3 = Color3.fromRGB(79, 79, 79)
- Following.BorderSizePixel = 3
- Following.Position = UDim2.new(0, 0, 0.75, 0)
- Following.Size = UDim2.new(1, 0, 0.0500000007, 0)
- Following.Font = Enum.Font.Code
- Following.Text = "Following: false"
- Following.TextColor3 = Color3.fromRGB(255, 255, 255)
- Following.TextScaled = true
- Following.TextSize = 14.000
- Following.TextStrokeColor3 = Color3.fromRGB(147, 147, 147)
- Following.TextStrokeTransparency = 0.000
- Following.TextWrapped = true
- Wandering.Name = "Wandering"
- Wandering.Parent = StatFrame
- Wandering.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Wandering.BackgroundTransparency = 0.500
- Wandering.BorderColor3 = Color3.fromRGB(79, 79, 79)
- Wandering.BorderSizePixel = 3
- Wandering.Position = UDim2.new(0, 0, 0.800000012, 0)
- Wandering.Size = UDim2.new(1, 0, 0.0500000007, 0)
- Wandering.Font = Enum.Font.Code
- Wandering.Text = "Wandering: true"
- Wandering.TextColor3 = Color3.fromRGB(255, 255, 255)
- Wandering.TextScaled = true
- Wandering.TextSize = 14.000
- Wandering.TextStrokeColor3 = Color3.fromRGB(147, 147, 147)
- Wandering.TextStrokeTransparency = 0.000
- Wandering.TextWrapped = true
- Speed.Name = "Speed"
- Speed.Parent = StatFrame
- Speed.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Speed.BackgroundTransparency = 0.500
- Speed.BorderColor3 = Color3.fromRGB(79, 79, 79)
- Speed.BorderSizePixel = 3
- Speed.Position = UDim2.new(0, 0, 0.649999976, 0)
- Speed.Size = UDim2.new(1, 0, 0.0500000007, 0)
- Speed.Font = Enum.Font.Code
- Speed.Text = "Speed: 4"
- Speed.TextColor3 = Color3.fromRGB(255, 255, 255)
- Speed.TextScaled = true
- Speed.TextSize = 14.000
- Speed.TextStrokeColor3 = Color3.fromRGB(147, 147, 147)
- Speed.TextStrokeTransparency = 0.000
- Speed.TextWrapped = true
- Size.Name = "Size"
- Size.Parent = StatFrame
- Size.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Size.BackgroundTransparency = 0.500
- Size.BorderColor3 = Color3.fromRGB(79, 79, 79)
- Size.BorderSizePixel = 3
- Size.Position = UDim2.new(0, 0, 0.699999988, 0)
- Size.Size = UDim2.new(1, 0, 0.0500000007, 0)
- Size.Font = Enum.Font.Code
- Size.Text = "Size: 1"
- Size.TextColor3 = Color3.fromRGB(255, 255, 255)
- Size.TextScaled = true
- Size.TextSize = 14.000
- Size.TextStrokeColor3 = Color3.fromRGB(147, 147, 147)
- Size.TextStrokeTransparency = 0.000
- Size.TextWrapped = true
- Ticks.Name = "Ticks"
- Ticks.Parent = StatFrame
- Ticks.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Ticks.BackgroundTransparency = 0.500
- Ticks.BorderColor3 = Color3.fromRGB(79, 79, 79)
- Ticks.BorderSizePixel = 3
- Ticks.Position = UDim2.new(0, 0, 0.850000024, 0)
- Ticks.Size = UDim2.new(1, 0, 0.0500000007, 0)
- Ticks.Font = Enum.Font.Code
- Ticks.Text = "Tick: 0"
- Ticks.TextColor3 = Color3.fromRGB(255, 255, 255)
- Ticks.TextScaled = true
- Ticks.TextSize = 14.000
- Ticks.TextStrokeColor3 = Color3.fromRGB(147, 147, 147)
- Ticks.TextStrokeTransparency = 0.000
- Ticks.TextWrapped = true
- DefTick.Name = "DefTick"
- DefTick.Parent = StatFrame
- DefTick.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- DefTick.BackgroundTransparency = 0.500
- DefTick.BorderColor3 = Color3.fromRGB(79, 79, 79)
- DefTick.BorderSizePixel = 3
- DefTick.Position = UDim2.new(0, 0, 0.899999976, 0)
- DefTick.Size = UDim2.new(1, 0, 0.0500000007, 0)
- DefTick.Font = Enum.Font.Code
- DefTick.Text = "DefTick: 0"
- DefTick.TextColor3 = Color3.fromRGB(255, 255, 255)
- DefTick.TextScaled = true
- DefTick.TextSize = 14.000
- DefTick.TextStrokeColor3 = Color3.fromRGB(147, 147, 147)
- DefTick.TextStrokeTransparency = 0.000
- DefTick.TextWrapped = true
- Color.Name = "Color"
- Color.Parent = StatFrame
- Color.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Color.BackgroundTransparency = 0.500
- Color.BorderColor3 = Color3.fromRGB(79, 79, 79)
- Color.BorderSizePixel = 3
- Color.Position = UDim2.new(0, 0, 0.949999988, 0)
- Color.Size = UDim2.new(1, 0, 0.0500000007, 0)
- Color.Font = Enum.Font.Code
- Color.Text = "Color: (255,0,255)"
- Color.TextColor3 = Color3.fromRGB(255, 255, 255)
- Color.TextScaled = true
- Color.TextSize = 14.000
- Color.TextStrokeColor3 = Color3.fromRGB(147, 147, 147)
- Color.TextStrokeTransparency = 0.000
- Color.TextWrapped = true
- ItemFrame.Name = "ItemFrame"
- ItemFrame.Parent = Outside
- ItemFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- ItemFrame.BackgroundTransparency = 0.500
- ItemFrame.BorderSizePixel = 0
- ItemFrame.Position = UDim2.new(0.699999988, 0, 0, 0)
- ItemFrame.Size = UDim2.new(0.300000012, 0, 1, 0)
- Itemi.Name = "Itemi"
- Itemi.Parent = ItemFrame
- Itemi.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Itemi.BackgroundTransparency = 1.000
- Itemi.BorderColor3 = Color3.fromRGB(27, 42, 53)
- Itemi.Size = UDim2.new(1, 0, 1, 0)
- Frame.Parent = Itemi
- Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Frame.BackgroundTransparency = 0.600
- Frame.Position = UDim2.new(0.0500000007, 0, 0.519999981, 0)
- Frame.Size = UDim2.new(0.899999976, 0, 0.349999994, 0)
- Description.Name = "Description"
- Description.Parent = Frame
- Description.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Description.BackgroundTransparency = 1.000
- Description.BorderSizePixel = 8
- Description.Size = UDim2.new(1, 0, 1, 0)
- Description.Text = "A fruit with a metal shell and strange design. Inside the shell contains many small and squishy capsules that are jam packed with fiber. This might make your brick need to use the restroom."
- Description.TextColor3 = Color3.fromRGB(255, 255, 255)
- Description.TextSize = 24.000
- Description.TextWrapped = true
- Description.TextXAlignment = Enum.TextXAlignment.Left
- Description.TextYAlignment = Enum.TextYAlignment.Top
- UseButton.Name = "UseButton"
- UseButton.Parent = Itemi
- UseButton.AnchorPoint = Vector2.new(1, 0.5)
- UseButton.BackgroundColor3 = Color3.fromRGB(255, 157, 0)
- UseButton.BorderSizePixel = 0
- UseButton.Position = UDim2.new(0.479999989, 0, 0.935000002, 0)
- UseButton.Size = UDim2.new(0.400000006, 0, 0.0599999987, 0)
- UseButton.Font = Enum.Font.SourceSans
- UseButton.Text = "Use"
- UseButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- UseButton.TextScaled = true
- UseButton.TextSize = 14.000
- UseButton.TextWrapped = true
- DropButton.Name = "DropButton"
- DropButton.Parent = Itemi
- DropButton.AnchorPoint = Vector2.new(0, 0.5)
- DropButton.BackgroundColor3 = Color3.fromRGB(188, 0, 0)
- DropButton.BorderSizePixel = 0
- DropButton.Position = UDim2.new(0.519999981, 0, 0.935000002, 0)
- DropButton.Size = UDim2.new(0.400000006, 0, 0.0599999987, 0)
- DropButton.Font = Enum.Font.SourceSans
- DropButton.Text = "Drop"
- DropButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- DropButton.TextScaled = true
- DropButton.TextSize = 14.000
- DropButton.TextWrapped = true
- ImageLabel2.Name = "ImageLabel2"
- ImageLabel2.Parent = Itemi
- ImageLabel2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ImageLabel2.BackgroundTransparency = 1.000
- ImageLabel2.BorderSizePixel = 0
- ImageLabel2.Position = UDim2.new(0, 0, 0.100000031, 0)
- ImageLabel2.Size = UDim2.new(1, 0, 0.400000006, 0)
- ImageLabel2.Image = "http://www.roblox.com/asset/?id=5841403880"
- ImageLabel2.ScaleType = Enum.ScaleType.Crop
- grad_3.Name = "grad"
- grad_3.Parent = Itemi
- grad_3.AnchorPoint = Vector2.new(0, 0.5)
- grad_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- grad_3.BackgroundTransparency = 1.000
- grad_3.BorderSizePixel = 0
- grad_3.ClipsDescendants = true
- grad_3.Position = UDim2.new(0, 0, 0.100000001, 0)
- grad_3.Rotation = 180.000
- grad_3.Size = UDim2.new(1, 0, 0.00400000019, 0)
- grad_3.Image = "http://www.roblox.com/asset/?id=5285832934"
- grad_3.ScaleType = Enum.ScaleType.Tile
- grad_4.Name = "grad"
- grad_4.Parent = Itemi
- grad_4.AnchorPoint = Vector2.new(0, 0.5)
- grad_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- grad_4.BackgroundTransparency = 1.000
- grad_4.BorderSizePixel = 0
- grad_4.ClipsDescendants = true
- grad_4.Position = UDim2.new(0, 0, 0.5, 0)
- grad_4.Rotation = 180.000
- grad_4.Size = UDim2.new(1, 0, 0.00400000019, 0)
- grad_4.Image = "http://www.roblox.com/asset/?id=5285832934"
- grad_4.ScaleType = Enum.ScaleType.Tile
- Namer2.Name = "Namer2"
- Namer2.Parent = Itemi
- Namer2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Namer2.BackgroundTransparency = 1.000
- Namer2.Size = UDim2.new(1, 0, 0.100000001, 0)
- Namer2.Font = Enum.Font.PermanentMarker
- Namer2.Text = "Bush's Baked Beans"
- Namer2.TextColor3 = Color3.fromRGB(255, 255, 255)
- Namer2.TextScaled = true
- Namer2.TextSize = 14.000
- Namer2.TextStrokeColor3 = Color3.fromRGB(147, 147, 147)
- Namer2.TextStrokeTransparency = 0.000
- Namer2.TextWrapped = true
- crafti.Name = "crafti"
- crafti.Parent = ItemFrame
- crafti.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- crafti.BackgroundTransparency = 1.000
- crafti.BorderColor3 = Color3.fromRGB(27, 42, 53)
- crafti.Size = UDim2.new(1, 0, 1, 0)
- crafti.Visible = false
- CraftFrame.Name = "CraftFrame"
- CraftFrame.Parent = crafti
- CraftFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- CraftFrame.BackgroundTransparency = 0.600
- CraftFrame.Position = UDim2.new(0.0500000007, 0, 0.519999981, 0)
- CraftFrame.Size = UDim2.new(0.899999976, 0, 0.349999994, 0)
- CraftSample.Name = "CraftSample"
- CraftSample.Parent = CraftFrame
- CraftSample.BackgroundColor3 = Color3.fromRGB(34, 255, 0)
- CraftSample.BackgroundTransparency = 0.300
- CraftSample.BorderSizePixel = 3
- CraftSample.Size = UDim2.new(1, 0, 0.100000001, 0)
- CraftSample.Font = Enum.Font.SourceSans
- CraftSample.Text = "2x Fertilizer"
- CraftSample.TextColor3 = Color3.fromRGB(255, 255, 255)
- CraftSample.TextScaled = true
- CraftSample.TextSize = 14.000
- CraftSample.TextWrapped = true
- CraftButton.Name = "CraftButton"
- CraftButton.Parent = crafti
- CraftButton.AnchorPoint = Vector2.new(0.5, 0.5)
- CraftButton.BackgroundColor3 = Color3.fromRGB(182, 0, 0)
- CraftButton.BorderSizePixel = 0
- CraftButton.Position = UDim2.new(0.5, 0, 0.935000002, 0)
- CraftButton.Size = UDim2.new(0.400000006, 0, 0.0599999987, 0)
- CraftButton.Font = Enum.Font.SourceSans
- CraftButton.Text = "Craft"
- CraftButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- CraftButton.TextScaled = true
- CraftButton.TextSize = 14.000
- CraftButton.TextWrapped = true
- ImageLabel2_2.Name = "ImageLabel2"
- ImageLabel2_2.Parent = crafti
- ImageLabel2_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ImageLabel2_2.BackgroundTransparency = 1.000
- ImageLabel2_2.BorderSizePixel = 0
- ImageLabel2_2.Position = UDim2.new(0, 0, 0.100000031, 0)
- ImageLabel2_2.Size = UDim2.new(1, 0, 0.400000006, 0)
- ImageLabel2_2.Image = "http://www.roblox.com/asset/?id=5841403880"
- ImageLabel2_2.ScaleType = Enum.ScaleType.Crop
- grad_5.Name = "grad"
- grad_5.Parent = crafti
- grad_5.AnchorPoint = Vector2.new(0, 0.5)
- grad_5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- grad_5.BackgroundTransparency = 1.000
- grad_5.BorderSizePixel = 0
- grad_5.ClipsDescendants = true
- grad_5.Position = UDim2.new(0, 0, 0.100000001, 0)
- grad_5.Rotation = 180.000
- grad_5.Size = UDim2.new(1, 0, 0.00400000019, 0)
- grad_5.Image = "http://www.roblox.com/asset/?id=5285832934"
- grad_5.ScaleType = Enum.ScaleType.Tile
- grad_6.Name = "grad"
- grad_6.Parent = crafti
- grad_6.AnchorPoint = Vector2.new(0, 0.5)
- grad_6.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- grad_6.BackgroundTransparency = 1.000
- grad_6.BorderSizePixel = 0
- grad_6.ClipsDescendants = true
- grad_6.Position = UDim2.new(0, 0, 0.5, 0)
- grad_6.Rotation = 180.000
- grad_6.Size = UDim2.new(1, 0, 0.00400000019, 0)
- grad_6.Image = "http://www.roblox.com/asset/?id=5285832934"
- grad_6.ScaleType = Enum.ScaleType.Tile
- Namer2_2.Name = "Namer2"
- Namer2_2.Parent = crafti
- Namer2_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Namer2_2.BackgroundTransparency = 1.000
- Namer2_2.Size = UDim2.new(1, 0, 0.100000001, 0)
- Namer2_2.Font = Enum.Font.PermanentMarker
- Namer2_2.Text = ""
- Namer2_2.TextColor3 = Color3.fromRGB(255, 255, 255)
- Namer2_2.TextScaled = true
- Namer2_2.TextSize = 14.000
- Namer2_2.TextStrokeColor3 = Color3.fromRGB(147, 147, 147)
- Namer2_2.TextStrokeTransparency = 0.000
- Namer2_2.TextWrapped = true
- InventoryFrame.Name = "InventoryFrame"
- InventoryFrame.Parent = Outside
- InventoryFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- InventoryFrame.BackgroundTransparency = 1.000
- InventoryFrame.BorderSizePixel = 0
- InventoryFrame.Position = UDim2.new(0.300000012, 0, 0, 0)
- InventoryFrame.Size = UDim2.new(0.400000006, 0, 1, 0)
- InventoryScrollFrame.Name = "InventoryScrollFrame"
- InventoryScrollFrame.Parent = InventoryFrame
- InventoryScrollFrame.Active = true
- InventoryScrollFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- InventoryScrollFrame.BackgroundTransparency = 1.000
- InventoryScrollFrame.Position = UDim2.new(0, 0, 0.075000003, 0)
- InventoryScrollFrame.Size = UDim2.new(1, 0, 0.925000012, 0)
- InventoryScrollFrame.CanvasSize = UDim2.new(0, 0, 1, 0)
- InventoryScrollFrame.ScrollBarThickness = 5
- Sample.Name = "Sample"
- Sample.Parent = InventoryScrollFrame
- Sample.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Sample.BackgroundTransparency = 0.300
- Sample.Position = UDim2.new(0.0250000004, 0, 0.0250000004, 0)
- Sample.Size = UDim2.new(0.300000012, 0, 0.172000006, 0)
- Sample.Image = "http://www.roblox.com/asset/?id=5841401980"
- Sample.ScaleType = Enum.ScaleType.Crop
- Amount.Name = "Amount"
- Amount.Parent = Sample
- Amount.AnchorPoint = Vector2.new(1, 0)
- Amount.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Amount.BackgroundTransparency = 1.000
- Amount.Position = UDim2.new(1, 0, 0, 0)
- Amount.Size = UDim2.new(0.25, 0, 0.25, 0)
- Amount.SizeConstraint = Enum.SizeConstraint.RelativeYY
- Amount.Font = Enum.Font.GothamBold
- Amount.Text = "14"
- Amount.TextColor3 = Color3.fromRGB(255, 255, 255)
- Amount.TextScaled = true
- Amount.TextSize = 14.000
- Amount.TextWrapped = true
- Top.Name = "Top"
- Top.Parent = InventoryFrame
- Top.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Top.BackgroundTransparency = 0.500
- Top.BorderSizePixel = 0
- Top.Size = UDim2.new(1, 0, 0.075000003, 0)
- InventoryButton.Name = "InventoryButton"
- InventoryButton.Parent = Top
- InventoryButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- InventoryButton.BackgroundTransparency = 0.500
- InventoryButton.BorderColor3 = Color3.fromRGB(140, 140, 140)
- InventoryButton.BorderSizePixel = 5
- InventoryButton.Size = UDim2.new(0.5, 0, 1, 0)
- InventoryButton.Font = Enum.Font.SourceSansSemibold
- InventoryButton.Text = "Inventory"
- InventoryButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- InventoryButton.TextScaled = true
- InventoryButton.TextSize = 14.000
- InventoryButton.TextWrapped = true
- CraftingButton.Name = "CraftingButton"
- CraftingButton.Parent = Top
- CraftingButton.BackgroundColor3 = Color3.fromRGB(61, 61, 61)
- CraftingButton.BackgroundTransparency = 0.500
- CraftingButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
- CraftingButton.BorderSizePixel = 5
- CraftingButton.Position = UDim2.new(0.5, 0, 0, 0)
- CraftingButton.Size = UDim2.new(0.5, 0, 1, 0)
- CraftingButton.Font = Enum.Font.SourceSansSemibold
- CraftingButton.Text = "Crafting"
- CraftingButton.TextColor3 = Color3.fromRGB(99, 99, 99)
- CraftingButton.TextScaled = true
- CraftingButton.TextSize = 14.000
- CraftingButton.TextWrapped = true
- CraftingScrollFrame.Name = "CraftingScrollFrame"
- CraftingScrollFrame.Parent = InventoryFrame
- CraftingScrollFrame.Active = true
- CraftingScrollFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- CraftingScrollFrame.BackgroundTransparency = 1.000
- CraftingScrollFrame.Position = UDim2.new(0, 0, 0.075000003, 0)
- CraftingScrollFrame.Size = UDim2.new(1, 0, 0.925000012, 0)
- CraftingScrollFrame.Visible = false
- CraftingScrollFrame.CanvasSize = UDim2.new(0, 0, 1, 0)
- CraftingScrollFrame.ScrollBarThickness = 5
- Sample.Parent = nil
- CraftSample.Parent = nil
- -- Instances:
- local Songs = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local Mute = Instance.new("TextButton")
- local NowPlaying = Instance.new("TextLabel")
- --Properties:
- Songs.Name = "Songs"
- Songs.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- Songs.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Songs.ResetOnSpawn = false
- Frame.Parent = Songs
- Frame.AnchorPoint = Vector2.new(1, 1)
- Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Frame.BackgroundTransparency = 1.000
- Frame.Position = UDim2.new(1, 0, 1, 0)
- Frame.Size = UDim2.new(0.200000003, 0, 0.150000006, 0)
- Mute.Name = "Mute"
- Mute.Parent = Frame
- Mute.AnchorPoint = Vector2.new(1, 1)
- Mute.BackgroundColor3 = Color3.fromRGB(255, 0, 251)
- Mute.BackgroundTransparency = 0.500
- Mute.BorderSizePixel = 0
- Mute.Position = UDim2.new(1, -3, 1, -3)
- Mute.Size = UDim2.new(0.300000012, 0, 0.200000003, 0)
- Mute.Font = Enum.Font.SourceSans
- Mute.Text = "Mute"
- Mute.TextColor3 = Color3.fromRGB(255, 255, 255)
- Mute.TextScaled = true
- Mute.TextSize = 14.000
- Mute.TextWrapped = true
- NowPlaying.Name = "NowPlaying"
- NowPlaying.Parent = Frame
- NowPlaying.AnchorPoint = Vector2.new(0, 1)
- NowPlaying.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- NowPlaying.BackgroundTransparency = 0.500
- NowPlaying.Position = UDim2.new(1.10000002, -3, 0.75, 0)
- NowPlaying.Size = UDim2.new(1, 0, 0.449999988, 0)
- NowPlaying.Font = Enum.Font.SourceSans
- NowPlaying.Text = "Now playing: Garbage truck"
- NowPlaying.TextColor3 = Color3.fromRGB(255, 255, 255)
- NowPlaying.TextSize = 22.000
- local songs = {
- 911993485,
- 4110953040,
- 838005568,
- 2217398035,
- 1625489737,
- 1402202152,
- 1045722860,
- 1339865767,
- 5686389321,
- 5630330827,
- 5196933474,
- 5046738115,
- 5523078772,
- 961018305,
- 895079632,
- 4924129997,
- 5554411383,
- 2522691284,
- 4069430993,
- 3328634141,
- 2654040596,
- 4963202696,
- 1180273873,
- 2482937864,
- 1123126733,
- 4595789343,
- 2393991991,
- 5034732210,
- 1938554614,
- 1591776686,
- 3406661902,
- 5011189105,
- 3315991165,
- 1866644818
- }
- local items = {
- "Apple",
- "Orange",
- "Blueberry",
- "Cabbage",
- "DragonFruit",
- "BushsBakedBeans",
- "SnowBerry",
- "Tier1Sapling",
- "Tier2Sapling",
- "Tier3Sapling",
- "Tier4Sapling",
- "Tier5Sapling",
- "BrickPoop",
- "Fertilizer",
- "AppleCompound",
- "OrangeCompound",
- "BlueberryCompound",
- "CabbageCompound",
- "DragonFruitCompound",
- "Log",
- "Stick",
- "StandingTorch"
- }
- local inventory = {}
- for i,v in pairs(items) do
- table.insert(inventory,0)
- end
- inventory[8] = 1
- local craftingrecipes = {
- "Fertilizer",{"4/BrickPoop"},
- "Tier1Sapling",{"1/Fertilizer","4/Apple"},
- "Tier2Sapling",{"2/Fertilizer","4/Orange"},
- "Tier3Sapling",{"3/Fertilizer","4/Blueberry"},
- "Tier4Sapling",{"4/Fertilizer","4/Cabbage"},
- "Tier5Sapling",{"5/Fertilizer","4/DragonFruit"},
- "AppleCompound",{"10/Apple","1/SnowBerry","1/BushsBakedBeans"},
- "OrangeCompound",{"10/Orange","2/SnowBerry","1/BushsBakedBeans"},
- "BlueberryCompound",{"10/Blueberry","2/SnowBerry","2/BushsBakedBeans"},
- "CabbageCompound",{"10/Cabbage","3/SnowBerry","2/BushsBakedBeans"},
- "DragonFruitCompound",{"10/DragonFruit","3/SnowBerry","3/BushsBakedBeans"},
- "Stick/2",{"1/Log"},
- "StandingTorch",{"4/Stick"}
- }
- local dic = {
- Apple = {
- Name = "Apple",
- Description = "The most common and basic food source. It's full of sugar, nutriant, and found everywhere!",
- Color = Color3.fromRGB(196, 40, 28),
- Size = Vector3.new(0.75, 1, 0.75),
- Material = Enum.Material.SmoothPlastic,
- Saturation = 25,
- Image = "http://www.roblox.com/asset/?id=5841401980"
- },
- Orange = {
- Name = "Orange",
- Description = "A less generic food source full of water. Bricks find these to be a very tasty treat!",
- Color = Color3.fromRGB(218, 133, 65),
- Size = Vector3.new(0.75, 1, 0.75),
- Material = Enum.Material.SmoothPlastic,
- Saturation = 53,
- Image = "http://www.roblox.com/asset/?id=5841402486"
- },
- Blueberry = {
- Name = "Blueberry",
- Description = "A thick capsule of sugar that explode with flavor. Bricks find these to look very pretty!",
- Color = Color3.fromRGB(13, 105, 172),
- Size = Vector3.new(0.75, 1, 0.75),
- Material = Enum.Material.SmoothPlastic,
- Saturation = 67,
- Image = "http://www.roblox.com/asset/?id=5841402851"
- },
- Cabbage = {
- Name = "Cabbage",
- Description = "A nutrient rich ball of leaves. Bricks love the crunch, and to them cabbages taste sour and sweet! They sometimes play soccer with these.",
- Color = Color3.fromRGB(75, 151, 75),
- Size = Vector3.new(0.75, 1, 0.75),
- Material = Enum.Material.Slate,
- Saturation = 83,
- Image = "http://www.roblox.com/asset/?id=5841403181"
- },
- DragonFruit = {
- Name = "Dragon Fruit",
- Description = "A cookies and cream fruit with a beautiful pink shell. These are full of nutrience and are especially full of flavor. Bricks tend to fight to the death for these.",
- Color = Color3.fromRGB(255, 102, 204),
- Size = Vector3.new(0.75, 1, 0.75),
- Material = Enum.Material.Sand,
- Saturation = 98,
- Image = "http://www.roblox.com/asset/?id=5841403563"
- },
- BushsBakedBeans = {
- Name = "Bush's Baked Beans",
- Description = "A fruit with a metal shell and strange design. Inside the shell contains many small and squishy capsules that are jam packed with fiber. This might make your brick need to use the restroom.",
- Color = Color3.fromRGB(86, 36, 36),
- Size = Vector3.new(0.75, 1, 0.75),
- Material = Enum.Material.Metal,
- Saturation = 113,
- Image = "http://www.roblox.com/asset/?id=5841403880"
- },
- SnowBerry = {
- Name = "Snow Berry",
- Description = "A berry that isn't very filling, yet full of stimulants. This will excite your brick and make it travel faster!",
- Color = Color3.fromRGB(231, 231, 236),
- Size = Vector3.new(0.75, 1, 0.75),
- Material = Enum.Material.SmoothPlastic,
- Saturation = 20,
- Image = "http://www.roblox.com/asset/?id=5841404303"
- },
- Tier1Sapling = {
- Name = "Tier 1 Sapling",
- Description = "A genetically modified apple sapling which grows many types of fruits, but mostly outputs apples.",
- Color = Color3.fromRGB(124, 156, 107),
- Size = Vector3.new(0.75, 1.5, 0.75),
- Material = Enum.Material.Slate,
- Image = "http://www.roblox.com/asset/?id=5842132663"
- },
- Tier2Sapling = {
- Name = "Tier 2 Sapling",
- Description = "A genetically modified orange sapling which grows many types of fruits. It mostly grows apples and oranges but sometimes can sprout blueberries.",
- Color = Color3.fromRGB(124, 156, 107),
- Size = Vector3.new(0.75, 1.5, 0.75),
- Material = Enum.Material.Slate,
- Image = "http://www.roblox.com/asset/?id=5842132922"
- },
- Tier3Sapling = {
- Name = "Tier 3 Sapling",
- Description = "A genetically modified blueberry sapling which grows all types of fruits. This sapling can grow all types of food, but usually grows blueberries and oranges.",
- Color = Color3.fromRGB(124, 156, 107),
- Size = Vector3.new(0.75, 1.5, 0.75),
- Material = Enum.Material.Slate,
- Image = "http://www.roblox.com/asset/?id=5842133357"
- },
- Tier4Sapling = {
- Name = "Tier 4 Sapling",
- Description = "A genetically modified cabbage sapling which grows all types of fruits. This is a very balanced sapling that grows all food types nearly evenly.",
- Color = Color3.fromRGB(124, 156, 107),
- Size = Vector3.new(0.75, 1.5, 0.75),
- Material = Enum.Material.Slate,
- Image = "http://www.roblox.com/asset/?id=5842133570"
- },
- Tier5Sapling = {
- Name = "Tier 5 Sapling",
- Description = "A genetically modified cabbage sapling which grows all types of fruits. This is a very rare and exotic sapling which grows mostly exotic fruits.",
- Color = Color3.fromRGB(124, 156, 107),
- Size = Vector3.new(0.75, 1.5, 0.75),
- Material = Enum.Material.Slate,
- Image = "http://www.roblox.com/asset/?id=5842133857"
- },
- BrickPoop = {
- Name = "Brick Poop",
- Description = "Some smelly and yucky stuff that came out of your brick. Used for fertilizer.",
- Color = Color3.fromRGB(106, 57, 9),
- Size = Vector3.new(0.75, 0.75, 0.75),
- Material = Enum.Material.Granite,
- Image = "http://www.roblox.com/asset/?id=5842162205"
- },
- Fertilizer = {
- Name = "Fertilizer",
- Description = "Very gross and smelly, but saplings love it.",
- Color = Color3.fromRGB(106, 57, 9),
- Size = Vector3.new(0.75, 1.75, 0.75),
- Material = Enum.Material.Slate,
- Image = "http://www.roblox.com/asset/?id=5842171608"
- },
- AppleCompound = {
- Name = "Apple Compound",
- Description = "A bunch of apples that have been fused together to create an even bigger more powerful apple! These are very very filling.",
- Color = Color3.fromRGB(151, 0, 0),
- Size = Vector3.new(1.25, 2, 1.25),
- Material = Enum.Material.Slate,
- Saturation = 375,
- Image = "http://www.roblox.com/asset/?id=5853176500"
- },
- OrangeCompound = {
- Name = "Orange Compound",
- Description = "Congradulations! You are now the world record holder of the world's largest orange!",
- Color = Color3.fromRGB(170, 85, 0),
- Size = Vector3.new(1.25, 2, 1.25),
- Material = Enum.Material.Slate,
- Saturation = 795,
- Image = "http://www.roblox.com/asset/?id=5853176830"
- },
- BlueberryCompound = {
- Name = "Blueberry Compound",
- Description = "You could probably just keep this as a bean bag. A very big fleshy bean bag.",
- Color = Color3.fromRGB(33, 84, 185),
- Size = Vector3.new(1.25, 2, 1.25),
- Material = Enum.Material.Slate,
- Saturation = 1005,
- Image = "http://www.roblox.com/asset/?id=5853177154"
- },
- CabbageCompound = {
- Name = "Cabbage Compound",
- Description = "Wow okay now that's ALOT of fiber.",
- Color = Color3.fromRGB(44, 101, 29),
- Size = Vector3.new(1.25, 2, 1.25),
- Material = Enum.Material.Slate,
- Saturation = 1245,
- Image = "http://www.roblox.com/asset/?id=5853177599"
- },
- DragonFruitCompound = {
- Name = "Dragon Fruit Compound",
- Description = "BIG PINK FRUIT YUMMY BIG PINK SUPER NEON BRIGHT YUMMY PINK NO GREEN YUMMY PINK YUM YUM",
- Color = Color3.fromRGB(255,0,255),
- Size = Vector3.new(1.25, 2, 1.25),
- Material = Enum.Material.Slate,
- Saturation = 1470,
- Image = "http://www.roblox.com/asset/?id=5853178072"
- },
- Log = {
- Name = "Log",
- Description = "A fresh log harvested from a fresh tree.",
- Color = Color3.fromRGB(105, 63, 40),
- Size = Vector3.new(10, 2, 2),
- Material = Enum.Material.Wood,
- Image = "http://www.roblox.com/asset/?id=6326165327"
- },
- Stick = {
- Name = "Stick",
- Description = "A very small log which is used as a handle or for supporting a structure.",
- Color = Color3.fromRGB(105, 63, 40),
- Size = Vector3.new(5, 1, 1),
- Material = Enum.Material.Wood,
- Image = "http://www.roblox.com/asset/?id=6326165733"
- },
- StandingTorch = {
- Name = "Standing Torch",
- Description = "A super cool torch that you can use to light up super cool things.",
- Color = Color3.fromRGB(105, 63, 40),
- Size = Vector3.new(2, 4, 2),
- Material = Enum.Material.Wood,
- Image = "http://www.roblox.com/asset/?id=6326164632"
- }
- }
- local bap = 0
- function playSound(id,volume,pitch,parent,namer,timer)
- bap = bap + 1
- local oldbap = bap
- local sound = Instance.new("Sound",parent)
- sound.Volume = volume
- sound.SoundId = "rbxassetid://"..tostring(id)
- sound.Pitch = pitch
- sound.Name = namer
- sound:Play()
- if timer ~= nil then
- coroutine.resume(coroutine.create(function()
- wait(timer)
- if bap == oldbap then
- sound:Destroy()
- end
- end))
- end
- end
- local craft = false
- local inventoryselected = nil
- local craftselected = nil
- local mouse = player:GetMouse()
- local absy
- local atc = nil
- local shift = false
- user = game:GetService("UserInputService")
- user.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.Keyboard then
- local key = input.KeyCode
- if input.KeyCode == Enum.KeyCode.LeftControl then
- shift = true
- CraftButton.Text = "Craft all"
- if atc then
- CraftButton.BackgroundColor3 = Color3.fromRGB(255, 0, 255)
- else
- CraftButton.BackgroundColor3 = Color3.fromRGB(182, 0, 0)
- end
- elseif input.KeyCode == Enum.KeyCode.LeftShift then
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 50
- end
- end
- end)
- user.InputEnded:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.Keyboard then
- local key = input.KeyCode
- if input.KeyCode == Enum.KeyCode.LeftControl then
- shift = false
- CraftButton.Text = "Craft"
- if atc then
- CraftButton.BackgroundColor3 = Color3.fromRGB(0, 182, 6)
- else
- CraftButton.BackgroundColor3 = Color3.fromRGB(182, 0, 0)
- end
- elseif input.KeyCode == Enum.KeyCode.LeftShift then
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
- end
- end
- end)
- function refreshInventory()
- InventoryScrollFrame:ClearAllChildren()
- local count = 0
- local lasty
- local lastysize
- for i=1,#items do
- if inventory[i] > 0 then
- count = count + 1
- local sam = Sample:Clone()
- local x = (count%3)
- if x == 0 then x = 3 end
- local y = math.floor((count-1)/3)
- sam.Parent = InventoryScrollFrame
- if absy == nil then absy = sam.AbsoluteSize.Y end
- sam.Size = UDim2.new(sam.Size.X.Scale,sam.Size.X.Offset,0,absy)
- sam.Position = UDim2.new((0.325*(x-1))+0.025,sam.AbsoluteSize.X/2,0,(((absy*y)+15*y)+15)+sam.AbsoluteSize.Y/2)
- sam.Amount.Text = tostring(inventory[i])
- sam.Image = dic[items[i]].Image
- sam.AnchorPoint = Vector2.new(0.5,0.5)
- lasty = sam.Position.Y.Offset
- lastysize = sam.Size.Y.Offset
- sam.MouseButton1Click:Connect(function()
- ImageLabel2.Image = dic[items[i]].Image
- Description.Text = dic[items[i]].Description
- Description.TextSize = 24
- while Description.TextFits == false do
- Description.TextSize = Description.TextSize - 0.5
- end
- Namer2.Text = dic[items[i]].Name
- inventoryselected = i
- end)
- local unexpandedsize = sam.Size
- local expandedsize = UDim2.new(0.35,0,0,absy+30)
- sam.MouseEnter:Connect(function()
- playSound(278039453,1,1,Inventory,"Hover")
- sam:TweenSize(expandedsize,Enum.EasingDirection.Out,Enum.EasingStyle.Quad,0.25,true)
- end)
- sam.MouseLeave:Connect(function()
- sam:TweenSize(unexpandedsize,Enum.EasingDirection.Out,Enum.EasingStyle.Quad,0.25,true)
- end)
- end
- end
- if lasty ~= nil and lasty > 1 then
- InventoryScrollFrame.CanvasSize = UDim2.new(0,0,0,lasty+lastysize)
- else
- InventoryScrollFrame.CanvasSize = UDim2.new(0,0,0,0)
- end
- end
- function refreshCrafting()
- CraftingScrollFrame:ClearAllChildren()
- local count = 0
- local lasty
- local lastysize
- for i=1,#craftingrecipes do
- if i%2 == 1 then
- count = count + 1
- local itemtocraft = string.split(craftingrecipes[i],"/")[1]
- local components = craftingrecipes[i+1]
- local id = table.find(items,itemtocraft)
- local sam = Sample:Clone()
- local x = (count%3)
- if x == 0 then x = 3 end
- local y = math.floor((count-1)/3)
- sam.Parent = CraftingScrollFrame
- if absy == nil then absy = sam.AbsoluteSize.Y end
- sam.Size = UDim2.new(sam.Size.X.Scale,sam.Size.X.Offset,0,absy)
- sam.Position = UDim2.new((0.325*(x-1))+0.025,sam.AbsoluteSize.X/2,0,(((absy*y)+15*y)+15)+sam.AbsoluteSize.Y/2)
- sam.AnchorPoint = Vector2.new(0.5,0.5)
- sam.Amount.Text = tostring(inventory[id])
- sam.Image = dic[items[id]].Image
- lasty = sam.Position.Y.Offset
- lastysize = sam.Size.Y.Offset
- sam.MouseButton1Click:Connect(function()
- CraftFrame:ClearAllChildren()
- local abletocraft = true
- ImageLabel2_2.Image = dic[itemtocraft].Image
- Namer2_2.Text = dic[itemtocraft].Name
- craftselected = i
- for ii=1,#components do
- local str = string.split(components[ii],"/")
- local amount = tonumber(str[1])
- local item = str[2]
- local id = table.find(items,item)
- if inventory[id] >= amount then
- local clon = CraftSample:Clone()
- clon.Parent = CraftFrame
- clon.Text = tostring(amount).."x "..dic[item].Name
- clon.BorderColor3 = Color3.fromRGB(2, 167, 0)
- clon.Position = UDim2.new(0,0,(0.1*(ii-1)),0)
- else
- abletocraft = false
- local clon = CraftSample:Clone()
- clon.Parent = CraftFrame
- clon.Text = tostring(amount).."x "..dic[item].Name
- clon.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- clon.BorderColor3 = Color3.fromRGB(167, 0, 0)
- clon.Position = UDim2.new(0,0,(0.1*(ii-1)),0)
- end
- end
- if abletocraft then
- CraftButton.BackgroundColor3 = Color3.fromRGB(0, 182, 6)
- atc = true
- if shift then
- CraftButton.BackgroundColor3 = Color3.fromRGB(255, 0, 255)
- end
- else
- CraftButton.BackgroundColor3 = Color3.fromRGB(182, 0, 0)
- atc = false
- end
- --refreshCrafting()
- end)
- local unexpandedsize = sam.Size
- local expandedsize = UDim2.new(0.35,0,0,absy+30)
- sam.MouseEnter:Connect(function()
- playSound(278039453,1,1,Inventory,"Hover")
- sam:TweenSize(expandedsize,Enum.EasingDirection.Out,Enum.EasingStyle.Quad,0.25,true)
- end)
- sam.MouseLeave:Connect(function()
- sam:TweenSize(unexpandedsize,Enum.EasingDirection.Out,Enum.EasingStyle.Quad,0.25,true)
- end)
- end
- end
- if lasty ~= nil and lasty > 1 then
- CraftingScrollFrame.CanvasSize = UDim2.new(0,0,0,lasty+lastysize)
- else
- CraftingScrollFrame.CanvasSize = UDim2.new(0,0,0,0)
- end
- end
- CraftButton.MouseButton1Click:Connect(function()
- if craftselected ~= nil then
- if atc == true then
- if not shift then
- local itemtocraft = string.split(craftingrecipes[craftselected],"/")
- local components = craftingrecipes[craftselected+1]
- for ii=1,#components do
- local str = string.split(components[ii],"/")
- local amount = tonumber(str[1])
- local item = str[2]
- local id = table.find(items,item)
- inventory[id] = inventory[id] - amount
- end
- local item2craft = table.find(items,itemtocraft[1])
- local amount = itemtocraft[2]
- if amount == nil then amount = 1 end
- inventory[item2craft] = inventory[item2craft] + amount
- remote:FireServer("Craft")
- --
- CraftFrame:ClearAllChildren()
- local abletocraft = true
- for ii=1,#components do
- local str = string.split(components[ii],"/")
- local amount = tonumber(str[1])
- local item = str[2]
- local id = table.find(items,item)
- if inventory[id] >= amount then
- local clon = CraftSample:Clone()
- clon.Parent = CraftFrame
- clon.Text = tostring(amount).."x "..dic[item].Name
- clon.BorderColor3 = Color3.fromRGB(2, 167, 0)
- clon.Position = UDim2.new(0,0,(0.1*(ii-1)),0)
- else
- abletocraft = false
- local clon = CraftSample:Clone()
- clon.Parent = CraftFrame
- clon.Text = tostring(amount).."x "..dic[item].Name
- clon.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- clon.BorderColor3 = Color3.fromRGB(167, 0, 0)
- clon.Position = UDim2.new(0,0,(0.1*(ii-1)),0)
- end
- end
- if abletocraft then
- CraftButton.BackgroundColor3 = Color3.fromRGB(0, 182, 6)
- atc = true
- else
- CraftButton.BackgroundColor3 = Color3.fromRGB(182, 0, 0)
- atc = false
- end
- refreshCrafting()
- else
- local able = true
- while able do
- local itemtocraft = string.split(craftingrecipes[craftselected],"/")
- local components = craftingrecipes[craftselected+1]
- for ii=1,#components do
- local str = string.split(components[ii],"/")
- local amount = tonumber(str[1])
- local item = str[2]
- local id = table.find(items,item)
- if inventory[id] < amount then
- able = false
- end
- end
- if able then
- for ii=1,#components do
- local str = string.split(components[ii],"/")
- local amount = tonumber(str[1])
- local item = str[2]
- local id = table.find(items,item)
- inventory[id] = inventory[id] - amount
- end
- local item2craft = table.find(items,itemtocraft[1])
- local amount = itemtocraft[2]
- if amount == nil then amount = 1 end
- inventory[item2craft] = inventory[item2craft] + amount
- end
- end
- remote:FireServer("Craft")
- --
- local itemtocraft = craftingrecipes[craftselected]
- local components = craftingrecipes[craftselected+1]
- CraftFrame:ClearAllChildren()
- local abletocraft = true
- for ii=1,#components do
- local str = string.split(components[ii],"/")
- local amount = tonumber(str[1])
- local item = str[2]
- local id = table.find(items,item)
- if inventory[id] >= amount then
- local clon = CraftSample:Clone()
- clon.Parent = CraftFrame
- clon.Text = tostring(amount).."x "..dic[item].Name
- clon.BorderColor3 = Color3.fromRGB(2, 167, 0)
- clon.Position = UDim2.new(0,0,(0.1*(ii-1)),0)
- else
- abletocraft = false
- local clon = CraftSample:Clone()
- clon.Parent = CraftFrame
- clon.Text = tostring(amount).."x "..dic[item].Name
- clon.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- clon.BorderColor3 = Color3.fromRGB(167, 0, 0)
- clon.Position = UDim2.new(0,0,(0.1*(ii-1)),0)
- end
- end
- if abletocraft then
- CraftButton.BackgroundColor3 = Color3.fromRGB(0, 182, 6)
- atc = true
- else
- CraftButton.BackgroundColor3 = Color3.fromRGB(182, 0, 0)
- atc = false
- end
- refreshCrafting()
- end
- end
- end
- end)
- player.Chatted:Connect(function(msg)
- if string.lower(string.sub(msg,1,14)) == ";setinventory " then
- local g = string.split(string.sub(msg,15)," ")
- for i,v in pairs(g) do
- if i <= #inventory then
- g[i] = tonumber(g[i])
- inventory[i] = g[i]
- else
- break
- end
- end
- end
- end)
- InventoryButton.MouseButton1Click:Connect(function()
- InventoryButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- InventoryButton.BorderColor3 = Color3.fromRGB(140, 140, 140)
- InventoryButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- CraftingButton.BackgroundColor3 = Color3.fromRGB(61, 61, 61)
- CraftingButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
- CraftingButton.TextColor3 = Color3.fromRGB(99, 99, 99)
- CraftingScrollFrame.Visible = false
- InventoryScrollFrame.Visible = true
- Itemi.Visible = true
- crafti.Visible = false
- refreshInventory()
- end)
- CraftingButton.MouseButton1Click:Connect(function()
- CraftingButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- CraftingButton.BorderColor3 = Color3.fromRGB(140, 140, 140)
- CraftingButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- InventoryButton.BackgroundColor3 = Color3.fromRGB(61, 61, 61)
- InventoryButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
- InventoryButton.TextColor3 = Color3.fromRGB(99, 99, 99)
- CraftingScrollFrame.Visible = true
- InventoryScrollFrame.Visible = false
- Itemi.Visible = false
- crafti.Visible = true
- refreshCrafting()
- end)
- function spawnTree(pos,parent)
- local Folder0 = Instance.new("Folder")
- local Part1 = Instance.new("Part")
- local Part2 = Instance.new("Part")
- local Part3 = Instance.new("Part")
- local Part4 = Instance.new("Part")
- local Part5 = Instance.new("Part")
- local Part6 = Instance.new("Part")
- local Part7 = Instance.new("Part")
- local Part8 = Instance.new("Part")
- local Part9 = Instance.new("Part")
- local Part10 = Instance.new("Part")
- Folder0.Name = "Tree"
- Folder0.Parent = parent
- Part1.Name = "hitpart"
- Part1.Parent = Folder0
- Part1.Size = Vector3.new(1, 1, 1)
- Part1.Anchored = true
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.CanCollide = false
- Part1.Locked = true
- Part1.Transparency = 1
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.Position = pos
- Part2.Name = "leaves"
- Part2.Parent = Folder0
- Part2.Position = Part1.Position + Vector3.new(0, 12, 0)
- Part2.Color = Color3.new(0.294118, 0.592157, 0.294118)
- Part2.Size = Vector3.new(5, 2, 5)
- Part2.Anchored = true
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.Locked = true
- Part2.Transparency = 0.5
- Part2.Material = Enum.Material.Slate
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part3.Name = "trun"
- Part3.Parent = Folder0
- Part3.Transparency = 0.5
- Part3.Position = Part1.Position + Vector3.new(0, 3.5, 0)
- Part3.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part3.Size = Vector3.new(2, 10, 2)
- Part3.Anchored = true
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.Locked = true
- Part3.Material = Enum.Material.Wood
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part4.Name = "leaves"
- Part4.Transparency = 0.5
- Part4.Parent = Folder0
- Part4.Position = Part1.Position + Vector3.new(0, 9.75, 0)
- Part4.Color = Color3.new(0.294118, 0.592157, 0.294118)
- Part4.Size = Vector3.new(9, 2.5, 9)
- Part4.Anchored = true
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.Locked = true
- Part4.Material = Enum.Material.Slate
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part5.Name = "FruitSpawner1"
- Part5.Parent = Folder0
- Part5.Transparency = 1
- Part5.Position = Part1.Position + Vector3.new(-2.5, 8.25, -2.5)
- Part5.Color = Color3.new(0.294118, 0.592157, 0.294118)
- Part5.Transparency = 1
- Part5.Size = Vector3.new(1, 0.5, 1)
- Part5.Anchored = true
- Part5.BottomSurface = Enum.SurfaceType.Smooth
- Part5.Locked = true
- Part5.Material = Enum.Material.Slate
- Part5.TopSurface = Enum.SurfaceType.Smooth
- Part6.Name = "FruitSpawner2"
- Part6.Transparency = 1
- Part6.Parent = Folder0
- Part6.Position = Part1.Position + Vector3.new(2.5, 8.25, -2.5)
- Part6.Color = Color3.new(0.294118, 0.592157, 0.294118)
- Part6.Transparency = 1
- Part6.Size = Vector3.new(1, 0.5, 1)
- Part6.Anchored = true
- Part6.BottomSurface = Enum.SurfaceType.Smooth
- Part6.Locked = true
- Part6.Material = Enum.Material.Slate
- Part6.TopSurface = Enum.SurfaceType.Smooth
- Part7.Name = "FruitSpawner3"
- Part7.Parent = Folder0
- Part7.Transparency = 1
- Part7.Position = Part1.Position + Vector3.new(4, 8.25, 0.5)
- Part7.Color = Color3.new(0.294118, 0.592157, 0.294118)
- Part7.Transparency = 1
- Part7.Size = Vector3.new(1, 0.5, 1)
- Part7.Anchored = true
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.Locked = true
- Part7.Material = Enum.Material.Slate
- Part7.TopSurface = Enum.SurfaceType.Smooth
- Part8.Name = "FruitSpawner4"
- Part8.Transparency = 1
- Part8.Parent = Folder0
- Part8.Position = Part1.Position + Vector3.new(3.5, 8.25, 3)
- Part8.Color = Color3.new(0.294118, 0.592157, 0.294118)
- Part8.Transparency = 1
- Part8.Size = Vector3.new(1, 0.5, 1)
- Part8.Anchored = true
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.Locked = true
- Part8.Material = Enum.Material.Slate
- Part8.TopSurface = Enum.SurfaceType.Smooth
- Part9.Name = "FruitSpawner5"
- Part9.Parent = Folder0
- Part9.Transparency = 1
- Part9.Position = Part1.Position + Vector3.new(-1, 8.25, 3)
- Part9.Color = Color3.new(0.294118, 0.592157, 0.294118)
- Part9.Transparency = 1
- Part9.Size = Vector3.new(1, 0.5, 1)
- Part9.Anchored = true
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.Locked = true
- Part9.Material = Enum.Material.Slate
- Part9.TopSurface = Enum.SurfaceType.Smooth
- Part10.Name = "FruitSpawner6"
- Part10.Parent = Folder0
- Part10.Position = Part1.Position + Vector3.new(-3.5, 8.25, 0)
- Part10.Color = Color3.new(0.294118, 0.592157, 0.294118)
- Part10.Transparency = 1
- Part10.Size = Vector3.new(1, 0.5, 1)
- Part10.Anchored = true
- Part10.BottomSurface = Enum.SurfaceType.Smooth
- Part10.Locked = true
- Part10.Material = Enum.Material.Slate
- Part10.TopSurface = Enum.SurfaceType.Smooth
- return Folder0
- end
- function spawnTorch(pos,mas)
- local Model0 = Instance.new("Model")
- local Part1 = Instance.new("Part")
- local Part2 = Instance.new("Part")
- local Part3 = Instance.new("Part")
- local Part4 = Instance.new("Part")
- local Part5 = Instance.new("Part")
- local Part6 = Instance.new("Part")
- local Part7 = Instance.new("Part")
- local Part8 = Instance.new("Part")
- local Part9 = Instance.new("Part")
- local Part10 = Instance.new("Part")
- local Part11 = Instance.new("Part")
- local Part12 = Instance.new("Part")
- local Part13 = Instance.new("Part")
- local Part14 = Instance.new("Part")
- local Fire15 = Instance.new("Fire")
- local Part16 = Instance.new("Part")
- local PointLight17 = Instance.new("PointLight")
- local Part19 = Instance.new("Part")
- Model0.Name = "Standing Torch"
- Model0.Parent = mas
- Model0.PrimaryPart = Part12
- Part1.Name = "Tripod"
- Part1.Parent = Model0
- Part1.Orientation = Vector3.new(30, 0, 0)
- Part1.Transparency = 0.5
- Part1.Position = Vector3.new(-0.000365999993, 1.37948096, -0.730346978)
- Part1.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part1.Size = Vector3.new(0.5, 2.75, 0.5)
- Part1.Anchored = true
- Part1.Locked = true
- Part1.Material = Enum.Material.Wood
- Part2.Name = "Tripod"
- Part2.Transparency = 0.5
- Part2.Parent = Model0
- Part2.Orientation = Vector3.new(30, 120, 0)
- Part2.Position = Vector3.new(-0.565231025, 1.38970196, 0.326691002)
- Part2.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part2.Size = Vector3.new(0.5, 2.75, 0.5)
- Part2.Anchored = true
- Part2.Locked = true
- Part2.Material = Enum.Material.Wood
- Part3.Name = "Tripod"
- Part3.Transparency = 0.5
- Part3.Parent = Model0
- Part3.Orientation = Vector3.new(30, -120, 0)
- Part3.Position = Vector3.new(0.642310977, 1.31578696, 0.313324004)
- Part3.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part3.Size = Vector3.new(0.5, 2.75, 0.5)
- Part3.Anchored = true
- Part3.Locked = true
- Part3.Material = Enum.Material.Wood
- Part4.Name = "Cage"
- Part4.Transparency = 0.5
- Part4.Parent = Model0
- Part4.Orientation = Vector3.new(15, -90, 0)
- Part4.Position = Vector3.new(0.366115987, 5.36940813, -0.000335999997)
- Part4.Color = Color3.new(0.8, 0.556863, 0.411765)
- Part4.Size = Vector3.new(0.125, 1.75, 0.125)
- Part4.Anchored = true
- Part4.Locked = true
- Part4.Material = Enum.Material.Slate
- Part5.Name = "Cage"
- Part5.Transparency = 0.5
- Part5.Parent = Model0
- Part5.Orientation = Vector3.new(-15, -90, 0)
- Part5.Position = Vector3.new(-0.383884013, 5.36940813, -0.000335999997)
- Part5.Color = Color3.new(0.8, 0.556863, 0.411765)
- Part5.Size = Vector3.new(0.125, 1.75, 0.125)
- Part5.Anchored = true
- Part5.Locked = true
- Part5.Material = Enum.Material.Slate
- Part6.Name = "Cage"
- Part6.Transparency = 0.5
- Part6.Parent = Model0
- Part6.Orientation = Vector3.new(-15, -135, 0)
- Part6.Position = Vector3.new(-0.274048001, 5.36940813, -0.265502989)
- Part6.Color = Color3.new(0.8, 0.556863, 0.411765)
- Part6.Size = Vector3.new(0.125, 1.75, 0.125)
- Part6.Anchored = true
- Part6.Locked = true
- Part6.Material = Enum.Material.Slate
- Part7.Name = "Cage"
- Part7.Transparency = 0.5
- Part7.Parent = Model0
- Part7.Orientation = Vector3.new(15, -135, 0)
- Part7.Position = Vector3.new(0.256278992, 5.36940813, 0.26483199)
- Part7.Color = Color3.new(0.8, 0.556863, 0.411765)
- Part7.Size = Vector3.new(0.125, 1.75, 0.125)
- Part7.Anchored = true
- Part7.Locked = true
- Part7.Material = Enum.Material.Slate
- Part8.Name = "Cage"
- Part8.Transparency = 0.5
- Part8.Parent = Model0
- Part8.Orientation = Vector3.new(-15, 180, 0)
- Part8.Position = Vector3.new(-0.00888399966, 5.36940813, -0.375319988)
- Part8.Color = Color3.new(0.8, 0.556863, 0.411765)
- Part8.Size = Vector3.new(0.125, 1.75, 0.125)
- Part8.Anchored = true
- Part8.Locked = true
- Part8.Material = Enum.Material.Slate
- Part9.Name = "Cage"
- Part9.Transparency = 0.5
- Part9.Parent = Model0
- Part9.Orientation = Vector3.new(15, 180, 0)
- Part9.Position = Vector3.new(-0.00888399966, 5.36940813, 0.374680012)
- Part9.Color = Color3.new(0.8, 0.556863, 0.411765)
- Part9.Size = Vector3.new(0.125, 1.75, 0.125)
- Part9.Anchored = true
- Part9.Locked = true
- Part9.Material = Enum.Material.Slate
- Part10.Name = "Cage"
- Part10.Transparency = 0.5
- Part10.Parent = Model0
- Part10.Orientation = Vector3.new(-15, 135, 0)
- Part10.Position = Vector3.new(0.271872997, 5.36940813, -0.259032995)
- Part10.Color = Color3.new(0.8, 0.556863, 0.411765)
- Part10.Size = Vector3.new(0.125, 1.75, 0.125)
- Part10.Anchored = true
- Part10.Locked = true
- Part10.Material = Enum.Material.Slate
- Part11.Name = "Cage"
- Part11.Transparency = 0.5
- Part11.Parent = Model0
- Part11.Orientation = Vector3.new(15, 135, 0)
- Part11.Position = Vector3.new(-0.258450001, 5.36940813, 0.271286011)
- Part11.Color = Color3.new(0.8, 0.556863, 0.411765)
- Part11.Size = Vector3.new(0.125, 1.75, 0.125)
- Part11.Anchored = true
- Part11.Locked = true
- Part11.Material = Enum.Material.Slate
- Part12.Name = "HitPart"
- Part12.Transparency = 0.5
- Part12.Parent = Model0
- Part12.Position = Vector3.new(0, 0.378405005, 0)
- Part12.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part12.Transparency = 1
- Part12.Size = Vector3.new(0.5, 0.5, 0.5)
- Part12.Anchored = true
- Part12.CanCollide = false
- Part12.Locked = true
- Part12.Material = Enum.Material.Wood
- Part13.Name = "Base"
- Part13.Transparency = 0.5
- Part13.Parent = Model0
- Part13.Position = Vector3.new(-0.000365999993, 4.55469084, -0.000335999997)
- Part13.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part13.Size = Vector3.new(1, 0.25, 1)
- Part13.Anchored = true
- Part13.Locked = true
- Part13.Material = Enum.Material.Wood
- Part14.Name = "Coal"
- Part14.Transparency = 0.5
- Part14.Parent = Model0
- Part14.Position = Vector3.new(-0.000365999993, 4.86718607, -0.000335999997)
- Part14.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part14.Size = Vector3.new(0.5, 0.375, 0.5)
- Part14.Anchored = true
- Part14.Locked = true
- Part14.Material = Enum.Material.Slate
- Part16.Name = "light"
- Part16.Parent = Model0
- Part16.Position = Vector3.new(-0.000365999993, 6.86718988, -0.000335999997)
- Part16.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part16.Transparency = 1
- Part16.Size = Vector3.new(0.5, 0.375, 0.5)
- Part16.Anchored = true
- Part16.CanCollide = false
- Part16.Locked = true
- Part16.Material = Enum.Material.Slate
- Part19.Name = "Base"
- Part19.Transparency = 0.5
- Part19.Parent = Model0
- Part19.Position = Vector3.new(-0.000365999993, 3.17971802, -0.000335999997)
- Part19.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part19.Size = Vector3.new(0.5, 2.5, 0.5)
- Part19.Anchored = true
- Part19.Locked = true
- Part19.Material = Enum.Material.Wood
- Model0:MoveTo(pos)
- end
- function placepart(part)
- part.Transparency = 0.5
- part.Anchored = true
- part.CanCollide = false
- local mouse = player:GetMouse()
- local dap = false
- mouse.Button1Up:Connect(function()
- dap = true
- end)
- mouse.TargetFilter = part
- repeat
- local hit = mouse.Hit.p
- part.Position = Vector3.new(hit.X,hit.Y+(part.Size.Y/2),hit.Z)
- wait()
- until dap
- local pos = part.Position
- part:Destroy()
- return pos
- end
- function placetree()
- local mouse = player:GetMouse()
- local dap = false
- mouse.Button1Up:Connect(function()
- dap = true
- end)
- local fold = Instance.new("Folder",workspace)
- local pos = nil
- mouse.TargetFilter = fold
- Inventory.Enabled = false
- repeat
- fold:ClearAllChildren()
- local hit = mouse.Hit.p
- pos = hit
- spawnTree(hit,fold)
- wait()
- until dap
- fold:Destroy()
- Inventory.Enabled = true
- return pos
- end
- function placetorch()
- local mouse = player:GetMouse()
- local dap = false
- mouse.Button1Up:Connect(function()
- dap = true
- end)
- local fold = Instance.new("Folder",workspace)
- local pos = nil
- mouse.TargetFilter = fold
- Inventory.Enabled = false
- repeat
- fold:ClearAllChildren()
- local hit = mouse.Hit.p
- pos = hit
- spawnTorch(hit,fold)
- wait()
- until dap
- fold:Destroy()
- Inventory.Enabled = true
- return pos
- end
- DropButton.MouseButton1Click:Connect(function()
- if inventoryselected ~= nil then
- if inventory[inventoryselected]-1 >= 0 then
- remote:FireServer("Drop",inventoryselected)
- inventory[inventoryselected] = inventory[inventoryselected] - 1
- if inventory[inventoryselected] == 0 then
- ImageLabel2.Image = ""
- Description.Text = ""
- Description.TextSize = 24
- while Description.TextFits == false do
- Description.TextSize = Description.TextSize - 0.5
- end
- Namer2.Text = ""
- inventoryselected = nil
- end
- refreshInventory()
- end
- end
- end)
- UseButton.MouseButton1Click:Connect(function()
- if inventoryselected ~= nil then
- if inventoryselected < 8 or (inventoryselected > 14 and inventoryselected < 20) then
- local item = dic[items[inventoryselected]]
- local part = Instance.new("Part",workspace)
- part.Material = item.Material
- part.Color = item.Color
- part.Size = item.Size
- local p = part:Clone()
- Inventory.Enabled = false
- local pos = placepart(part)
- inventory[inventoryselected] = inventory[inventoryselected] - 1
- remote:FireServer("Use",{inventoryselected,pos})
- if shift == true then
- while (inventory[inventoryselected] ~= 0 and shift == true) do
- local par = p:Clone()
- par.Parent = workspace
- local pos = placepart(par)
- inventory[inventoryselected] = inventory[inventoryselected] - 1
- remote:FireServer("Use",{inventoryselected,pos})
- end
- end
- if inventory[inventoryselected] == 0 then
- ImageLabel2.Image = ""
- Description.Text = ""
- Description.TextSize = 24
- while Description.TextFits == false do
- Description.TextSize = Description.TextSize - 0.5
- end
- Namer2.Text = ""
- inventoryselected = nil
- end
- Inventory.Enabled = true
- refreshInventory()
- elseif inventoryselected >= 8 and inventoryselected < 13 and inventory[inventoryselected] > 0 then
- local pos = placetree()
- inventory[inventoryselected] = inventory[inventoryselected] - 1
- local tier = inventoryselected-7
- remote:FireServer("Tree",{pos,tier})
- refreshInventory()
- elseif inventoryselected == 22 then
- local pos = placetorch()
- inventory[inventoryselected] = inventory[inventoryselected] - 1
- remote:FireServer("Torch",pos)
- refreshInventory()
- end
- end
- end)
- mouse.KeyDown:Connect(function(key)
- if string.lower(key) == "e" then
- Inventory.Enabled = not Inventory.Enabled
- if Inventory.Enabled then
- Description.Text = ""
- Description.TextSize = 24
- while Description.TextFits == false do
- Description.TextSize = Description.TextSize - 0.5
- end
- ImageLabel2.Image = ""
- Namer2.Text = ""
- refreshInventory()
- end
- elseif string.lower(key) == "g" then
- remote:FireServer("Whistle")
- end
- end)
- function countTrees()
- local c = 0
- local fold = folder:FindFirstChild("Trees-"..player.Name)
- for i,v in pairs(fold:GetChildren()) do
- if v.ClassName == "Folder" then
- c = c + 1
- end
- end
- return c
- end
- remote.OnClientEvent:Connect(function(mode,data)
- if mode == "Pickup" then
- inventory[data] = inventory[data] + 1
- elseif mode == "Stats" then
- Hunger.Text = "Hunger: "..tostring(data[1])
- Health.Text = "Health: "..tostring(data[2])
- Boredom.Text = "Boredom: "..tostring(data[3])
- Defecation.Text = "Defecation: "..tostring(data[4])
- Speed.Text = "Speed: "..tostring(data[5])
- Size.Text = "Size: "..tostring(data[6])
- Following.Text = "Following: "..tostring(data[7])
- Wandering.Text = "Wandering: "..tostring(data[8])
- Ticks.Text = "Tick: "..tostring(data[9])
- DefTick.Text = "DefTick: "..tostring(data[10])
- --Color.Text = "Color: ("..tostring(data[11].R)..", "..tostring(data[11].G)..", "..tostring(data[12].B)..")"
- end
- end)
- local songlist = {}
- muted = false
- currentsong = 1
- rbx = game:GetService("MarketplaceService")
- song = Instance.new("Sound",Songs)
- song.Volume = 0.4
- lastsong = 0
- -- rbx:GetProductInfo().Name
- Mute.MouseButton1Click:Connect(function()
- if not muted then
- muted = true
- Mute.BackgroundColor3 = Color3.fromRGB(0,0,0)
- Mute.Text = "Unmute"
- else
- muted = false
- Mute.BackgroundColor3 = Color3.fromRGB(255, 0, 251)
- Mute.Text = "Mute"
- end
- end)
- local function copyarray(original)
- local copy = {}
- for k, v in pairs(original) do
- if type(v) == "table" then
- v = copyarray(v)
- end
- copy[k] = v
- end
- return copy
- end
- function shufflesongs()
- local s = copyarray(songs)
- for i,v in pairs(songlist) do
- table.remove(songlist,1)
- end
- for i=1,#s do
- local num = math.random(1,#s)
- table.insert(songlist,s[num])
- table.remove(s,num)
- end
- end
- shufflesongs()
- coroutine.resume(coroutine.create(function()
- while wait() do
- if not muted then
- if lastsong ~= songlist[currentsong] then
- song.SoundId = "rbxassetid://"..tostring(songlist[currentsong])
- song:Play()
- lastsong = songlist[currentsong]
- NowPlaying.Text = "Now playing: "..rbx:GetProductInfo(songlist[currentsong]).Name
- NowPlaying:TweenPosition(UDim2.new(0,-3,0.75,0),Enum.EasingDirection.Out,Enum.EasingStyle.Back,0.7,true)
- coroutine.resume(coroutine.create(function()
- wait(4)
- NowPlaying:TweenPosition(UDim2.new(1.1,-3,0.75,0),Enum.EasingDirection.In,Enum.EasingStyle.Back,0.7,true)
- end))
- repeat wait(.5) until song.Playing == false or muted
- currentsong = currentsong + 1
- if currentsong > #songlist then
- currentsong = 1
- shufflesongs()
- end
- else
- currentsong = currentsong + 1
- end
- else
- song:Stop()
- wait(1)
- end
- end
- end))
- player.Chatted:Connect(function(msg)
- if string.lower(msg) == ";quit" then
- Songs:Destroy()
- Inventory:Destroy()
- remote:FireServer("Quit")
- script:Destroy()
- end
- end)
- wait(2)
- while wait() do
- if player.Character ~= nil and player.Character.HumanoidRootPart ~= nil then
- local treecount = countTrees()
- local a = player.Character.HumanoidRootPart.Position - Vector3.new(8,1,8)
- local b = player.Character.HumanoidRootPart.Position + Vector3.new(8,5,8)
- local region = Region3.new(a,b)
- local tab = {}
- for i,v in pairs(folder:GetDescendants()) do
- table.insert(tab,v)
- end
- local tab2 = {}
- local typ = nil
- for i,v in pairs(tab) do
- if ((v.Name == "trunk" and v.Parent.Parent.Name == "Trees-"..player.Name) or (v.Name == "Baser" and v.Parent.Parent.Name == "Trees-"..player.Name)) and (player.Character.HumanoidRootPart.Position - v.Position).Magnitude <= 8 then
- table.insert(tab2,v)
- typ = v.Name
- end
- end
- if #tab2 > 0 then
- local done = false
- if countTrees() > 1 or typ == "Baser" then
- local closest = tab2[1]
- for i,v in pairs(tab2) do
- if (player.Character.HumanoidRootPart.Position - v.Position).Magnitude < (player.Character.HumanoidRootPart.Position - closest.Position).Magnitude then
- closest = v
- end
- end
- local clon = aBillboardGui:Clone()
- local down = false
- local antispam = false
- local count = 0
- local active = false
- clon.Parent = closest
- clon.Frame1.Frame.Size = UDim2.new(1,0,0,0) -- 1,0,0.5,0
- clon.Frame2.Frame.Size = UDim2.new(1,0,0,0) -- 1,0,0.5,0
- clon.Frame3.Frame.Size = UDim2.new(0,0,1,0) -- 0.5,0,1,0
- clon.Frame4.Frame.Size = UDim2.new(0,0,1,0) -- 0.5,0,1,0
- user.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.Keyboard then
- local key = input.KeyCode
- if input.KeyCode == Enum.KeyCode.F and not antispam then
- antispam = true
- wait()
- down = true
- active = true
- local goal1 = {}
- goal1.Size = UDim2.new(1,0,1,0)
- goal1.BackgroundColor3 = Color3.fromRGB(46, 255, 0)
- local goal2 = {}
- goal2.BackgroundColor3 = Color3.fromRGB(46, 255, 0)
- local goal3 = {}
- goal3.TextColor3 = Color3.fromRGB(46, 255, 0)
- local tweeninfo = TweenInfo.new(4,Enum.EasingStyle.Linear,Enum.EasingDirection.In)
- pcall(function()
- local tween1 = game:GetService("TweenService"):Create(clon.Frame1.Frame,tweeninfo,goal1)
- local tween2 = game:GetService("TweenService"):Create(clon.Frame2.Frame,tweeninfo,goal1)
- local tween3 = game:GetService("TweenService"):Create(clon.Frame3.Frame,tweeninfo,goal1)
- local tween4 = game:GetService("TweenService"):Create(clon.Frame4.Frame,tweeninfo,goal1)
- local tween5 = game:GetService("TweenService"):Create(clon.Center,tweeninfo,goal2)
- local tween6 = game:GetService("TweenService"):Create(clon.Center.TextLabel,tweeninfo,goal3)
- local finished = false
- tween1.Completed:Connect(function()
- finished = true
- end)
- tween1:Play()
- tween2:Play()
- tween3:Play()
- tween4:Play()
- tween5:Play()
- tween6:Play()
- repeat wait() until (finished or not down)
- if not finished then
- tween1:Pause()
- tween2:Pause()
- tween3:Pause()
- tween4:Pause()
- tween5:Pause()
- tween6:Pause()
- local goal1 = {}
- goal1.Size = UDim2.new(1,0,0,0)
- goal1.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- local goal1a = {}
- goal1a.Size = UDim2.new(0,0,1,0)
- goal1a.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- local goal2 = {}
- goal2.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- local goal3 = {}
- goal3.TextColor3 = Color3.fromRGB(255, 0, 0)
- local tweeninfo = TweenInfo.new(0.5,Enum.EasingStyle.Linear,Enum.EasingDirection.In)
- local tween1 = game:GetService("TweenService"):Create(clon.Frame1.Frame,tweeninfo,goal1)
- local tween2 = game:GetService("TweenService"):Create(clon.Frame2.Frame,tweeninfo,goal1)
- local tween3 = game:GetService("TweenService"):Create(clon.Frame3.Frame,tweeninfo,goal1a)
- local tween4 = game:GetService("TweenService"):Create(clon.Frame4.Frame,tweeninfo,goal1a)
- local tween5 = game:GetService("TweenService"):Create(clon.Center,tweeninfo,goal2)
- local tween6 = game:GetService("TweenService"):Create(clon.Center.TextLabel,tweeninfo,goal3)
- tween1:Play()
- tween2:Play()
- tween3:Play()
- tween4:Play()
- tween5:Play()
- tween6:Play()
- wait(0.5)
- --
- local goal1 = {}
- goal1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- local goal2 = {}
- goal2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- local goal3 = {}
- goal3.TextColor3 = Color3.fromRGB(255, 255, 255)
- local tweeninfo = TweenInfo.new(0.5,Enum.EasingStyle.Linear,Enum.EasingDirection.In)
- local tween1 = game:GetService("TweenService"):Create(clon.Frame1.Frame,tweeninfo,goal1)
- local tween2 = game:GetService("TweenService"):Create(clon.Frame2.Frame,tweeninfo,goal1)
- local tween3 = game:GetService("TweenService"):Create(clon.Frame3.Frame,tweeninfo,goal1)
- local tween4 = game:GetService("TweenService"):Create(clon.Frame4.Frame,tweeninfo,goal1)
- local tween5 = game:GetService("TweenService"):Create(clon.Center,tweeninfo,goal2)
- local tween6 = game:GetService("TweenService"):Create(clon.Center.TextLabel,tweeninfo,goal3)
- tween1:Play()
- tween2:Play()
- tween3:Play()
- tween4:Play()
- tween5:Play()
- tween6:Play()
- wait(0.5)
- else
- if typ ~= "Baser" then
- inventory[20] = inventory[20] + 1
- end
- remote:FireServer("Demolish",closest)
- done = true
- end
- active = false
- antispam = false
- end)
- end
- end
- end)
- user.InputEnded:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.Keyboard then
- local key = input.KeyCode
- if input.KeyCode == Enum.KeyCode.F then
- down = false
- end
- end
- end)
- repeat wait(1) until (((player.Character.HumanoidRootPart.Position - closest.Position).Magnitude > 8) and not active) or done == true or treecount ~= countTrees()
- clon:Destroy()
- else
- local clon = aBillboardGui:Clone()
- local closest = tab2[1]
- for i,v in pairs(tab2) do
- if (player.Character.HumanoidRootPart.Position - v.Position).Magnitude < (player.Character.HumanoidRootPart.Position - closest.Position).Magnitude then
- closest = v
- end
- end
- clon.Parent = closest
- clon.Center.TextLabel.BackgroundColor3 = Color3.fromRGB(125, 125, 125)
- clon.Center.TextLabel.TextColor3 = Color3.fromRGB(81, 81, 81)
- clon.Frame1.BackgroundColor3 = Color3.fromRGB(54, 54, 54)
- clon.Frame2.BackgroundColor3 = Color3.fromRGB(54, 54, 54)
- clon.Frame3.BackgroundColor3 = Color3.fromRGB(54, 54, 54)
- clon.Frame4.BackgroundColor3 = Color3.fromRGB(54, 54, 54)
- clon.Frame1.Frame:Destroy()
- clon.Frame2.Frame:Destroy()
- clon.Frame3.Frame:Destroy()
- clon.Frame4.Frame:Destroy()
- repeat wait(1) until ((player.Character.HumanoidRootPart.Position - closest.Position).Magnitude > 10) or treecount ~= countTrees()
- clon:Destroy()
- end
- else
- wait(0.2)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement