Advertisement
Guest User

Tree Planting Simulator GUI

a guest
Nov 23rd, 2019
6,744
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.62 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3
  3.  
  4. -- Instances:
  5.  
  6. local TreePlantingGUI = Instance.new("ScreenGui")
  7. local MainFrame = Instance.new("Frame")
  8. local TitleFrame = Instance.new("Frame")
  9. local Title = Instance.new("TextLabel")
  10. local CreditFrame = Instance.new("Frame")
  11. local ravensbooger0422 = Instance.new("TextLabel")
  12. local Farm = Instance.new("TextButton")
  13. local Close = Instance.new("TextButton")
  14. local Open = Instance.new("TextButton")
  15.  
  16. --Properties:
  17.  
  18. TreePlantingGUI.Name = "TreePlantingGUI"
  19. TreePlantingGUI.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  20. TreePlantingGUI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  21.  
  22. MainFrame.Name = "MainFrame"
  23. MainFrame.Parent = TreePlantingGUI
  24. MainFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  25. MainFrame.Position = UDim2.new(0.371808767, 0, 0.265007317, 0)
  26. MainFrame.Size = UDim2.new(0, 320, 0, 320)
  27.  
  28. TitleFrame.Name = "TitleFrame"
  29. TitleFrame.Parent = MainFrame
  30. TitleFrame.BackgroundColor3 = Color3.new(0.258824, 0.258824, 0.258824)
  31. TitleFrame.BackgroundTransparency = 0.80000001192093
  32. TitleFrame.Position = UDim2.new(0.0562499985, 0, 0.0281250011, 0)
  33. TitleFrame.Size = UDim2.new(0, 284, 0, 40)
  34.  
  35. Title.Name = "Title"
  36. Title.Parent = TitleFrame
  37. Title.BackgroundColor3 = Color3.new(1, 1, 1)
  38. Title.BackgroundTransparency = 1
  39. Title.Position = UDim2.new(-7.4505806e-09, 0, 0, 0)
  40. Title.Size = UDim2.new(0, 284, 0, 40)
  41. Title.Font = Enum.Font.SourceSans
  42. Title.Text = "benji bubby V1.0.0"
  43. Title.TextColor3 = Color3.new(0, 0, 0)
  44. Title.TextSize = 14
  45.  
  46. CreditFrame.Name = "CreditFrame"
  47. CreditFrame.Parent = MainFrame
  48. CreditFrame.BackgroundColor3 = Color3.new(0.258824, 0.258824, 0.258824)
  49. CreditFrame.BackgroundTransparency = 0.80000001192093
  50. CreditFrame.Position = UDim2.new(0.0562499985, 0, 0.875, 0)
  51. CreditFrame.Size = UDim2.new(0, 284, 0, 40)
  52.  
  53. ravensbooger0422.Name = "ravensbooger#0422"
  54. ravensbooger0422.Parent = CreditFrame
  55. ravensbooger0422.BackgroundColor3 = Color3.new(1, 1, 1)
  56. ravensbooger0422.BackgroundTransparency = 1
  57. ravensbooger0422.Size = UDim2.new(0, 284, 0, 40)
  58. ravensbooger0422.Font = Enum.Font.SourceSans
  59. ravensbooger0422.Text = "ravensbooger#0422"
  60. ravensbooger0422.TextColor3 = Color3.new(0, 0, 0)
  61. ravensbooger0422.TextSize = 14
  62.  
  63. Farm.Name = "Farm"
  64. Farm.Parent = MainFrame
  65. Farm.BackgroundColor3 = Color3.new(1, 1, 1)
  66. Farm.Position = UDim2.new(0.400000006, 0, 0.396874994, 0)
  67. Farm.Size = UDim2.new(0, 65, 0, 65)
  68. Farm.Style = Enum.ButtonStyle.RobloxRoundButton
  69. Farm.Font = Enum.Font.SourceSans
  70. Farm.Text = "Farm Coins"
  71. Farm.TextColor3 = Color3.new(0, 0, 0)
  72. Farm.TextScaled = true
  73. Farm.TextSize = 14
  74. Farm.TextWrapped = true
  75.  
  76. Close.Name = "Close"
  77. Close.Parent = MainFrame
  78. Close.BackgroundColor3 = Color3.new(1, 1, 1)
  79. Close.Position = UDim2.new(0, 0, -0.00312495325, 0)
  80. Close.Size = UDim2.new(0, 50, 0, 50)
  81. Close.Font = Enum.Font.SourceSans
  82. Close.Text = "X"
  83. Close.TextColor3 = Color3.new(0, 0, 0)
  84. Close.TextScaled = true
  85. Close.TextSize = 14
  86. Close.TextWrapped = true
  87.  
  88. Open.Name = "Open"
  89. Open.Parent = TreePlantingGUI
  90. Open.BackgroundColor3 = Color3.new(1, 1, 1)
  91. Open.Position = UDim2.new(0, 0, 0.619326472, 0)
  92. Open.Size = UDim2.new(0, 115, 0, 115)
  93. Open.Style = Enum.ButtonStyle.RobloxRoundButton
  94. Open.Font = Enum.Font.SourceSans
  95. Open.Text = "Open"
  96. Open.TextColor3 = Color3.new(0, 0, 0)
  97. Open.TextScaled = true
  98. Open.TextSize = 14
  99. Open.TextWrapped = true
  100.  
  101. -- Scripts:
  102.  
  103. local function MJFYTZ_fake_script() -- Farm.Active
  104.     local script = Instance.new('Script', Farm)
  105.  
  106.     function leftClick()
  107.         while true do
  108.         game:GetService("ReplicatedStorage").Events.CollectSeed:FireServer(1, 100000000)
  109.     wait()
  110.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").Interactables.SellPart.CFrame
  111.     wait(.003125)
  112.     end
  113.     end
  114.     script.Parent.MouseButton1Click:Connect(leftClick)
  115. end
  116. coroutine.wrap(MJFYTZ_fake_script)()
  117. local function HVRFC_fake_script() -- Close.Close
  118.     local script = Instance.new('Script', Close)
  119.  
  120.     function leftClick()
  121.         script.Parent.Parent.Visible = false
  122.         script.Parent.Parent.Selectable = false
  123.         end
  124.     script.Parent.MouseButton1Click:Connect(leftClick)
  125. end
  126. coroutine.wrap(HVRFC_fake_script)()
  127. local function PDFYBI_fake_script() -- Open.Script
  128.     local script = Instance.new('Script', Open)
  129.  
  130.     function leftClick()
  131.         script.Parent.Parent.MainFrame.Visible = true
  132.         script.Parent.Parent.MainFrame.Selectable = true
  133.         end
  134.     script.Parent.MouseButton1Click:Connect(leftClick)
  135. end
  136. coroutine.wrap(PDFYBI_fake_script)()
  137. local function HWRZ_fake_script() -- TreePlantingGUI.SetCore
  138.     local script = Instance.new('Script', TreePlantingGUI)
  139.  
  140.     script.Parent.Parent = game.CoreGui
  141. end
  142. coroutine.wrap(HWRZ_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement