Advertisement
NovalRizky

LUMBER TYCOON GUI APRIL 2019

Apr 21st, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.68 KB | None | 0 0
  1. local WallMaker = Instance.new("ScreenGui")
  2. local Main = Instance.new("Frame")
  3. local Bar = Instance.new("Frame")
  4. local title = Instance.new("TextLabel")
  5. local title_2 = Instance.new("TextLabel")
  6. local Height = Instance.new("ImageLabel")
  7. local Hval = Instance.new("TextBox")
  8. local MakeWall = Instance.new("ImageLabel")
  9. local Make = Instance.new("TextButton")
  10. local Woodt = Instance.new("ImageLabel")
  11. local Wval = Instance.new("TextBox")
  12. local Clearb = Instance.new("ImageLabel")
  13. local Cb = Instance.new("TextButton")
  14. local height = Hval.Text
  15. local newtween = function(obj,props,speed,...)
  16. local info = TweenInfo.new(speed,...);
  17. local tween = game:GetService("TweenService"):Create(obj,info,props);
  18. return tween:Play();
  19. end;
  20.  
  21. WallMaker.Name = "WallMaker"
  22. WallMaker.Parent = game.CoreGui
  23.  
  24. Main.Name = "Main"
  25. Main.Parent = WallMaker
  26. Main.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
  27. Main.BorderSizePixel = 0
  28. Main.Position = UDim2.new(0.659811497, 0, 0.248062015, 0)
  29. Main.Size = UDim2.new(0, 200, 0, 159)
  30. Main.Active = true
  31. Main.Draggable = true
  32.  
  33. Bar.Name = "Bar"
  34. Bar.Parent = Main
  35. Bar.BackgroundColor3 = Color3.new(0.121569, 0.121569, 0.121569)
  36. Bar.BorderSizePixel = 0
  37. Bar.Position = UDim2.new(-0.000244140625, 0, -0.00297152926, 0)
  38. Bar.Size = UDim2.new(0, 200, 0, 38)
  39.  
  40. title.Name = "title"
  41. title.Parent = Bar
  42. title.BackgroundColor3 = Color3.new(1, 1, 1)
  43. title.BackgroundTransparency = 1
  44. title.Position = UDim2.new(0.284999996, 0, 0, 0)
  45. title.Size = UDim2.new(0, 37, 0, 38)
  46. title.Font = Enum.Font.GothamSemibold
  47. title.Text = "Wall"
  48. title.TextColor3 = Color3.new(1, 1, 1)
  49. title.TextSize = 16
  50. title.TextXAlignment = Enum.TextXAlignment.Left
  51.  
  52. title_2.Name = "title"
  53. title_2.Parent = Bar
  54. title_2.BackgroundColor3 = Color3.new(1, 1, 1)
  55. title_2.BackgroundTransparency = 1
  56. title_2.Position = UDim2.new(0.469999969, 0, 0, 0)
  57. title_2.Size = UDim2.new(0, 49, 0, 38)
  58. title_2.Font = Enum.Font.GothamSemibold
  59. title_2.Text = "Maker"
  60. title_2.TextColor3 = Color3.new(1, 0.988235, 1)
  61. title_2.TextSize = 16
  62. title_2.TextXAlignment = Enum.TextXAlignment.Left
  63.  
  64. Height.Name = "Height"
  65. Height.Parent = Main
  66. Height.Active = true
  67. Height.BackgroundColor3 = Color3.new(0.0627451, 0.945098, 0.341176)
  68. Height.BackgroundTransparency = 1
  69. Height.BorderSizePixel = 0
  70. Height.Position = UDim2.new(1.05200005, -106, 0.809000015, -86)
  71. Height.Size = UDim2.new(0, 86, 0, 34)
  72. Height.Image = "rbxassetid://2877881750"
  73. Height.ImageColor3 = Color3.new(0.129412, 0.129412, 0.129412)
  74. Height.ScaleType = Enum.ScaleType.Slice
  75. Height.SliceCenter = Rect.new(6, 6, 494, 494)
  76.  
  77. Hval.Name = "Hval"
  78. Hval.Parent = Height
  79. Hval.BackgroundColor3 = Color3.new(1, 1, 1)
  80. Hval.BackgroundTransparency = 1
  81. Hval.Size = UDim2.new(0, 86, 0, 34)
  82. Hval.Font = Enum.Font.GothamSemibold
  83. Hval.Text = "Height"
  84. Hval.TextColor3 = Color3.new(1, 1, 1)
  85. Hval.TextSize = 11
  86.  
  87. MakeWall.Name = "MakeWall"
  88. MakeWall.Parent = Main
  89. MakeWall.Active = true
  90. MakeWall.BackgroundColor3 = Color3.new(0.0627451, 0.945098, 0.341176)
  91. MakeWall.BackgroundTransparency = 1
  92. MakeWall.BorderSizePixel = 0
  93. MakeWall.Position = UDim2.new(0.575450122, -106, 0.764974713, -79)
  94. MakeWall.Size = UDim2.new(0, 88, 0, 111)
  95. MakeWall.Image = "rbxassetid://2877881750"
  96. MakeWall.ImageColor3 = Color3.new(0.121569, 0.121569, 0.121569)
  97. MakeWall.ScaleType = Enum.ScaleType.Slice
  98. MakeWall.SliceCenter = Rect.new(6, 6, 494, 494)
  99.  
  100. Make.Name = "Make"
  101. Make.Parent = MakeWall
  102. Make.BackgroundColor3 = Color3.new(1, 1, 1)
  103. Make.BackgroundTransparency = 1
  104. Make.Position = UDim2.new(-0.0153836338, 0, 0, 0)
  105. Make.Size = UDim2.new(0, 89, 0, 111)
  106. Make.Font = Enum.Font.GothamSemibold
  107. Make.Text = "MAKE WALL"
  108. Make.TextColor3 = Color3.new(1, 1, 1)
  109. Make.TextSize = 11
  110. Make.TextWrapped = true
  111.  
  112. Woodt.Name = "Woodt"
  113. Woodt.Parent = Main
  114. Woodt.Active = true
  115. Woodt.BackgroundColor3 = Color3.new(0.0627451, 0.945098, 0.341176)
  116. Woodt.BackgroundTransparency = 1
  117. Woodt.BorderSizePixel = 0
  118. Woodt.Position = UDim2.new(1.05200005, -106, 1.03600001, -83)
  119. Woodt.Size = UDim2.new(0, 86, 0, 34)
  120. Woodt.Image = "rbxassetid://2877881750"
  121. Woodt.ImageColor3 = Color3.new(0.129412, 0.129412, 0.129412)
  122. Woodt.ScaleType = Enum.ScaleType.Slice
  123. Woodt.SliceCenter = Rect.new(6, 6, 494, 494)
  124.  
  125. Wval.Name = "Wval"
  126. Wval.Parent = Woodt
  127. Wval.BackgroundColor3 = Color3.new(1, 1, 1)
  128. Wval.BackgroundTransparency = 1
  129. Wval.Size = UDim2.new(0, 86, 0, 34)
  130. Wval.Font = Enum.Font.GothamSemibold
  131. Wval.Text = "Wood Type"
  132. Wval.TextColor3 = Color3.new(1, 1, 1)
  133. Wval.TextSize = 11
  134.  
  135. Clearb.Name = "Clearb"
  136. Clearb.Parent = Main
  137. Clearb.Active = true
  138. Clearb.BackgroundColor3 = Color3.new(0.0627451, 0.945098, 0.341176)
  139. Clearb.BackgroundTransparency = 1
  140. Clearb.BorderSizePixel = 0
  141. Clearb.Position = UDim2.new(1.04700005, -106, 1.25999999, -79)
  142. Clearb.Size = UDim2.new(0, 86, 0, 34)
  143. Clearb.Image = "rbxassetid://2877881750"
  144. Clearb.ImageColor3 = Color3.new(0.121569, 0.121569, 0.121569)
  145. Clearb.ScaleType = Enum.ScaleType.Slice
  146. Clearb.SliceCenter = Rect.new(6, 6, 494, 494)
  147.  
  148. Cb.Name = "Cb"
  149. Cb.Parent = Clearb
  150. Cb.BackgroundColor3 = Color3.new(1, 1, 1)
  151. Cb.BackgroundTransparency = 1
  152. Cb.Size = UDim2.new(0, 86, 0, 34)
  153. Cb.Font = Enum.Font.GothamSemibold
  154. Cb.Text = "Clear Base"
  155. Cb.TextColor3 = Color3.new(1, 1, 1)
  156. Cb.TextSize = 11
  157.  
  158. Cb.MouseButton1Down:connect(function()
  159. for i, e in pairs(game.Workspace.PlayerModels:GetChildren()) do
  160. if e:FindFirstChild("Owner") and e.Owner.Value ~= nil and e.Owner.Value == game.Players[game.Players.LocalPlayer.Name] and e:FindFirstChild("ItemName") and e:FindFirstChild("Type") and (e.PrimaryPart ~= nil or e:FindFirstChild("MainCFrame")) then
  161. game.ReplicatedStorage.Interaction.DestroyStructure:FireServer(e)
  162. end
  163. end
  164. end)
  165.  
  166. --buttons
  167. Cb.MouseEnter:connect(function()
  168. newtween(Clearb,{ImageColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
  169. newtween(Cb,{TextColor3 = Color3.fromRGB(31,31,31)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
  170. end)
  171. Make.MouseEnter:connect(function()
  172. newtween(MakeWall,{ImageColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
  173. newtween(Make,{TextColor3 = Color3.fromRGB(31,31,31)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
  174. end)
  175. Cb.MouseButton1Down:connect(function()
  176. newtween(Clearb,{ImageColor3 = Color3.fromRGB(185,185,185)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
  177. newtween(Cb,{TextColor3 = Color3.fromRGB(31,31,31)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
  178. end)
  179. Make.MouseButton1Down:connect(function()
  180. newtween(MakeWall,{ImageColor3 = Color3.fromRGB(185,185,185)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
  181. newtween(Make,{TextColor3 = Color3.fromRGB(31,31,31)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
  182. end)
  183. Cb.MouseButton1Up:connect(function()
  184. newtween(Clearb,{ImageColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
  185. newtween(Cb,{TextColor3 = Color3.fromRGB(31,31,31)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
  186. end)
  187. Make.MouseButton1Up:connect(function()
  188. newtween(MakeWall,{ImageColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
  189. newtween(Make,{TextColor3 = Color3.fromRGB(31,31,31)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
  190. end)
  191. Cb.MouseLeave:connect(function()
  192. newtween(Clearb,{ImageColor3 = Color3.fromRGB(31,31,31)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
  193. newtween(Cb,{TextColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
  194. end)
  195. Make.MouseLeave:connect(function()
  196. newtween(MakeWall,{ImageColor3 = Color3.fromRGB(31,31,31)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
  197. newtween(Make,{TextColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
  198. end)
  199.  
  200. Make.MouseButton1Down:connect(function()
  201. local height = Hval.Text
  202. for i = 1, 50 do
  203. for e = 1, height do
  204. local A_1 = "Wall2Tall"
  205. local A_2 = CFrame.new(170 - (i*4), -8.199999809 + (e*8), -89.5, -1, -7.99715849e-08, -9.61688102e-07, -9.48740535e-08, 1, -1.51793438e-06, -9.61688102e-07, 1.34308857e-06, -1)
  206. local A_3 = game:GetService("Players").LocalPlayer
  207. local Event = game:GetService("ReplicatedStorage").PlaceStructure.ClientPlacedBlueprint
  208. Event:FireServer(A_1, A_2, A_3)
  209. wait ()
  210. end
  211. end
  212. for i = 1, 50 do
  213. for e = 1, height do
  214. local A_1 = "Wall2Tall"
  215. local A_2 = CFrame.new(-31.5, -8.199999809 + (e*8), -87 - (i*4), -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)
  216. local A_3 = game:GetService("Players").LocalPlayer
  217. local Event = game:GetService("ReplicatedStorage").PlaceStructure.ClientPlacedBlueprint
  218. Event:FireServer(A_1, A_2, A_3)
  219. wait ()
  220. end
  221. end
  222. for i = 1, 50 do
  223. for e = 1, height do
  224. local A_1 = "Wall2Tall"
  225. local A_2 = CFrame.new(-34 + (i*4), -8.199999809 + (e*8), -288.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  226. local A_3 = game:GetService("Players").LocalPlayer
  227. local Event = game:GetService("ReplicatedStorage").PlaceStructure.ClientPlacedBlueprint
  228. Event:FireServer(A_1, A_2, A_3)
  229. wait ()
  230. end
  231. end
  232. for i = 1, 50 do
  233. for e = 1, height do
  234. local A_1 = "Wall2Tall"
  235. local A_2 = CFrame.new(167.5, -8.199999809 + (e*8), -291 + (i*4), -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)
  236. local A_3 = game:GetService("Players").LocalPlayer
  237. local Event = game:GetService("ReplicatedStorage").PlaceStructure.ClientPlacedBlueprint
  238. Event:FireServer(A_1, A_2, A_3)
  239. wait ()
  240. end
  241. end
  242. for i,v in next,workspace.PlayerModels:GetChildren() do
  243. if v:FindFirstChild("Type") and v.Type.Value == "Blueprint" and (v.Owner.Value == game.Players.LocalPlayer or game.ReplicatedStorage.Interaction.ClientIsWhitelisted:InvokeServer(v.Owner.Value)) then
  244. game.ReplicatedStorage.PlaceStructure.ClientPlacedStructure:FireServer(v.ItemName.Value, v.Main.CFrame, game.Players.LocalPlayer, Wval.Text, v, false)
  245. end;
  246. end;
  247. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement