Advertisement
DAJDAJ

Zidovipodesivi

Aug 1st, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.34 KB | None | 0 0
  1. -- Objects
  2.  
  3. local WallMaker = Instance.new("ScreenGui")
  4. local Main = Instance.new("Frame")
  5. local Bar = Instance.new("Frame")
  6. local title = Instance.new("TextLabel")
  7. local title_2 = Instance.new("TextLabel")
  8. local Height = Instance.new("ImageLabel")
  9. local Hval = Instance.new("TextBox")
  10. local MakeWall = Instance.new("ImageLabel")
  11. local Make = Instance.new("TextButton")
  12. local Woodt = Instance.new("ImageLabel")
  13. local Wval = Instance.new("TextBox")
  14. local Clearb = Instance.new("ImageLabel")
  15. local Cb = Instance.new("TextButton")
  16. local Bluet = Instance.new("ImageLabel")
  17. local Bval = Instance.new("TextBox")
  18. local height = Hval.Text
  19. local wtype = Wval.Text
  20. local btype = Bval.Text
  21. local compact = 8
  22. local newtween = function(obj,props,speed,...)
  23. local info = TweenInfo.new(speed,...);
  24. local tween = game:GetService("TweenService"):Create(obj,info,props);
  25. return tween:Play();
  26. end;
  27.  
  28. -- Properties
  29.  
  30. WallMaker.Name = "WallMaker"
  31. WallMaker.Parent = game.CoreGui
  32.  
  33. Main.Name = "Main"
  34. Main.Parent = WallMaker
  35. Main.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
  36. Main.BorderSizePixel = 0
  37. Main.Position = UDim2.new(0.659811497, 0, 0.248062015, 0)
  38. Main.Size = UDim2.new(0, 200, 0, 159)
  39. Main.Active = true
  40. Main.Draggable = true
  41.  
  42. Bar.Name = "Bar"
  43. Bar.Parent = Main
  44. Bar.BackgroundColor3 = Color3.new(0.121569, 0.121569, 0.121569)
  45. Bar.BorderSizePixel = 0
  46. Bar.Position = UDim2.new(-0.000244140625, 0, -0.00297152926, 0)
  47. Bar.Size = UDim2.new(0, 200, 0, 38)
  48.  
  49. title.Name = "title"
  50. title.Parent = Bar
  51. title.BackgroundColor3 = Color3.new(1, 1, 1)
  52. title.BackgroundTransparency = 1
  53. title.Position = UDim2.new(0.284999996, 0, 0, 0)
  54. title.Size = UDim2.new(0, 37, 0, 38)
  55. title.Font = Enum.Font.GothamSemibold
  56. title.Text = "Wall"
  57. title.TextColor3 = Color3.new(1, 1, 1)
  58. title.TextSize = 16
  59. title.TextXAlignment = Enum.TextXAlignment.Left
  60.  
  61. title_2.Name = "title"
  62. title_2.Parent = Bar
  63. title_2.BackgroundColor3 = Color3.new(1, 1, 1)
  64. title_2.BackgroundTransparency = 1
  65. title_2.Position = UDim2.new(0.469999969, 0, 0, 0)
  66. title_2.Size = UDim2.new(0, 49, 0, 38)
  67. title_2.Font = Enum.Font.GothamSemibold
  68. title_2.Text = "Maker"
  69. title_2.TextColor3 = Color3.new(1, 0.988235, 1)
  70. title_2.TextSize = 16
  71. title_2.TextXAlignment = Enum.TextXAlignment.Left
  72.  
  73. Height.Name = "Height"
  74. Height.Parent = Main
  75. Height.Active = true
  76. Height.BackgroundColor3 = Color3.new(0.0627451, 0.945098, 0.341176)
  77. Height.BackgroundTransparency = 1
  78. Height.BorderSizePixel = 0
  79. Height.Position = UDim2.new(1.05200005, -106, 0.809000015, -86)
  80. Height.Size = UDim2.new(0, 86, 0, 34)
  81. Height.Image = "rbxassetid://2877881750"
  82. Height.ImageColor3 = Color3.new(0.129412, 0.129412, 0.129412)
  83. Height.ScaleType = Enum.ScaleType.Slice
  84. Height.SliceCenter = Rect.new(6, 6, 494, 494)
  85.  
  86. Hval.Name = "Hval"
  87. Hval.Parent = Height
  88. Hval.BackgroundColor3 = Color3.new(1, 1, 1)
  89. Hval.BackgroundTransparency = 1
  90. Hval.Size = UDim2.new(0, 86, 0, 34)
  91. Hval.Font = Enum.Font.GothamSemibold
  92. Hval.Text = "Height"
  93. Hval.TextColor3 = Color3.new(1, 1, 1)
  94. Hval.TextSize = 11
  95. Hval.PlaceholderText = "Height"
  96. Hval.PlaceholderColor3 = Color3.fromRGB(255,255,255)
  97.  
  98. MakeWall.Name = "MakeWall"
  99. MakeWall.Parent = Main
  100. MakeWall.Active = true
  101. MakeWall.BackgroundColor3 = Color3.new(0.0627451, 0.945098, 0.341176)
  102. MakeWall.BackgroundTransparency = 1
  103. MakeWall.BorderSizePixel = 0
  104. MakeWall.Position = UDim2.new(0.574999988, -106, 0.764999986, -81)
  105. MakeWall.Size = UDim2.new(0, 88, 0, 56)
  106. MakeWall.Image = "rbxassetid://2877881750"
  107. MakeWall.ImageColor3 = Color3.new(0.121569, 0.121569, 0.121569)
  108. MakeWall.ScaleType = Enum.ScaleType.Slice
  109. MakeWall.SliceCenter = Rect.new(6, 6, 494, 494)
  110.  
  111. Make.Name = "Make"
  112. Make.Parent = MakeWall
  113. Make.BackgroundColor3 = Color3.new(1, 1, 1)
  114. Make.BackgroundTransparency = 1
  115. Make.Position = UDim2.new(-0.0153836338, 0, 0, 0)
  116. Make.Size = UDim2.new(0, 89, 0, 56)
  117. Make.Font = Enum.Font.GothamSemibold
  118. Make.Text = "MAKE WALL"
  119. Make.TextColor3 = Color3.new(1, 1, 1)
  120. Make.TextSize = 11
  121. Make.TextWrapped = true
  122.  
  123. Woodt.Name = "Woodt"
  124. Woodt.Parent = Main
  125. Woodt.Active = true
  126. Woodt.BackgroundColor3 = Color3.new(0.0627451, 0.945098, 0.341176)
  127. Woodt.BackgroundTransparency = 1
  128. Woodt.BorderSizePixel = 0
  129. Woodt.Position = UDim2.new(1.05200005, -106, 1.03600001, -84)
  130. Woodt.Size = UDim2.new(0, 86, 0, 34)
  131. Woodt.Image = "rbxassetid://2877881750"
  132. Woodt.ImageColor3 = Color3.new(0.129412, 0.129412, 0.129412)
  133. Woodt.ScaleType = Enum.ScaleType.Slice
  134. Woodt.SliceCenter = Rect.new(6, 6, 494, 494)
  135.  
  136. Wval.Name = "Wval"
  137. Wval.Parent = Woodt
  138. Wval.BackgroundColor3 = Color3.new(1, 1, 1)
  139. Wval.BackgroundTransparency = 1
  140. Wval.Size = UDim2.new(0, 86, 0, 34)
  141. Wval.Font = Enum.Font.GothamSemibold
  142. Wval.Text = "Wood Type"
  143. Wval.TextColor3 = Color3.new(1, 1, 1)
  144. Wval.TextSize = 11
  145. Wval.PlaceholderText = "Wood Type"
  146. Wval.PlaceholderColor3 = Color3.fromRGB(255,255,255)
  147.  
  148. Clearb.Name = "Clearb"
  149. Clearb.Parent = Main
  150. Clearb.Active = true
  151. Clearb.BackgroundColor3 = Color3.new(0.0627451, 0.945098, 0.341176)
  152. Clearb.BackgroundTransparency = 1
  153. Clearb.BorderSizePixel = 0
  154. Clearb.Position = UDim2.new(0.582000017, -106, 1.11500001, -78)
  155. Clearb.Size = UDim2.new(0, 86, 0, 56)
  156. Clearb.Image = "rbxassetid://2877881750"
  157. Clearb.ImageColor3 = Color3.new(0.121569, 0.121569, 0.121569)
  158. Clearb.ScaleType = Enum.ScaleType.Slice
  159. Clearb.SliceCenter = Rect.new(6, 6, 494, 494)
  160.  
  161. Cb.Name = "Cb"
  162. Cb.Parent = Clearb
  163. Cb.BackgroundColor3 = Color3.new(1, 1, 1)
  164. Cb.BackgroundTransparency = 1
  165. Cb.Size = UDim2.new(0, 86, 0, 56)
  166. Cb.Font = Enum.Font.GothamSemibold
  167. Cb.Text = "Clear Base"
  168. Cb.TextColor3 = Color3.new(1, 1, 1)
  169. Cb.TextSize = 11
  170.  
  171. Bluet.Name = "Bluet"
  172. Bluet.Parent = Main
  173. Bluet.Active = true
  174. Bluet.BackgroundColor3 = Color3.new(0.0627451, 0.945098, 0.341176)
  175. Bluet.BackgroundTransparency = 1
  176. Bluet.BorderSizePixel = 0
  177. Bluet.Position = UDim2.new(1.05200005, -106, 1.26800001, -83)
  178. Bluet.Size = UDim2.new(0, 86, 0, 34)
  179. Bluet.Image = "rbxassetid://2877881750"
  180. Bluet.ImageColor3 = Color3.new(0.129412, 0.129412, 0.129412)
  181. Bluet.ScaleType = Enum.ScaleType.Slice
  182. Bluet.SliceCenter = Rect.new(6, 6, 494, 494)
  183.  
  184. Bval.Name = "Bval"
  185. Bval.Parent = Bluet
  186. Bval.BackgroundColor3 = Color3.new(1, 1, 1)
  187. Bval.BackgroundTransparency = 1
  188. Bval.Size = UDim2.new(0, 86, 0, 34)
  189. Bval.Font = Enum.Font.GothamSemibold
  190. Bval.Text = "Blueprint Type"
  191. Bval.TextColor3 = Color3.new(1, 1, 1)
  192. Bval.TextSize = 11
  193. Bval.PlaceholderText = "Blueprint Type"
  194. Bval.PlaceholderColor3 = Color3.fromRGB(255,255,255)
  195.  
  196. Cb.MouseButton1Down:connect(function()
  197. for i, e in pairs(game.Workspace.PlayerModels:GetChildren()) do
  198. 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
  199. game.ReplicatedStorage.Interaction.DestroyStructure:FireServer(e)
  200. end
  201. end
  202. end)
  203.  
  204. Make.MouseButton1Down:connect(function()
  205. local height = Hval.Text
  206. local btype = Bval.Text
  207. if btype == "Ladder1" or btype == "Wall2Short" or btype == "Wall3Short" or btype == "Wall2ShortThin" then
  208. compact = 4
  209. else
  210. compact = 8
  211. end
  212. for i = 1, 50 do
  213. for e = 1, height do
  214. local A_1 = btype
  215. local A_2 = CFrame.new(170 - (i*4), -8.199999809 + (e*compact), -89.5, -1, -7.99715849e-08, -9.61688102e-07, -9.48740535e-08, 1, -1.51793438e-06, -9.61688102e-07, 1.34308857e-06, -1)
  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. wait(4)
  223. for i,v in next,workspace.PlayerModels:GetChildren() do
  224. 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
  225. game.ReplicatedStorage.PlaceStructure.ClientPlacedStructure:FireServer(v.ItemName.Value, v.Main.CFrame, game.Players.LocalPlayer, Wval.Text, v, false)
  226. --break
  227. end;
  228. end;
  229. for i = 1, 50 do
  230. for e = 1, height do
  231. local A_1 = btype
  232. local A_2 = CFrame.new(-31.5, -8.199999809 + (e*compact), -87 - (i*4), -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)
  233. local A_3 = game:GetService("Players").LocalPlayer
  234. local Event = game:GetService("ReplicatedStorage").PlaceStructure.ClientPlacedBlueprint
  235. Event:FireServer(A_1, A_2, A_3)
  236. wait ()
  237. end
  238. end
  239. wait(4)
  240. for i,v in next,workspace.PlayerModels:GetChildren() do
  241. 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
  242. game.ReplicatedStorage.PlaceStructure.ClientPlacedStructure:FireServer(v.ItemName.Value, v.Main.CFrame, game.Players.LocalPlayer, Wval.Text, v, false)
  243. --break
  244. end;
  245. end;
  246. for i = 1, 50 do
  247. for e = 1, height do
  248. local A_1 = btype
  249. local A_2 = CFrame.new(-34 + (i*4), -8.199999809 + (e*compact), -288.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  250. local A_3 = game:GetService("Players").LocalPlayer
  251. local Event = game:GetService("ReplicatedStorage").PlaceStructure.ClientPlacedBlueprint
  252. Event:FireServer(A_1, A_2, A_3)
  253. wait ()
  254. end
  255. end
  256. wait(4)
  257. for i,v in next,workspace.PlayerModels:GetChildren() do
  258. 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
  259. game.ReplicatedStorage.PlaceStructure.ClientPlacedStructure:FireServer(v.ItemName.Value, v.Main.CFrame, game.Players.LocalPlayer, Wval.Text, v, false)
  260. --break
  261. end;
  262. end;
  263. for i = 1, 50 do
  264. for e = 1, height do
  265. local A_1 = btype
  266. local A_2 = CFrame.new(167.5, -8.199999809 + (e*compact), -291 + (i*4), -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)
  267. local A_3 = game:GetService("Players").LocalPlayer
  268. local Event = game:GetService("ReplicatedStorage").PlaceStructure.ClientPlacedBlueprint
  269. Event:FireServer(A_1, A_2, A_3)
  270. wait ()
  271. end
  272. end
  273. wait(4)
  274. for i,v in next,workspace.PlayerModels:GetChildren() do
  275. 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
  276. game.ReplicatedStorage.PlaceStructure.ClientPlacedStructure:FireServer(v.ItemName.Value, v.Main.CFrame, game.Players.LocalPlayer, Wval.Text, v, false)
  277. --break
  278. end;
  279. end;
  280. end)
  281.  
  282. Cb.MouseEnter:connect(function()
  283. newtween(Clearb,{ImageColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
  284. newtween(Cb,{TextColor3 = Color3.fromRGB(31,31,31)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
  285. end)
  286. Make.MouseEnter:connect(function()
  287. newtween(MakeWall,{ImageColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
  288. newtween(Make,{TextColor3 = Color3.fromRGB(31,31,31)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
  289. end)
  290. Cb.MouseButton1Down:connect(function()
  291. newtween(Clearb,{ImageColor3 = Color3.fromRGB(185,185,185)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
  292. newtween(Cb,{TextColor3 = Color3.fromRGB(31,31,31)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
  293. end)
  294. Make.MouseButton1Down:connect(function()
  295. newtween(MakeWall,{ImageColor3 = Color3.fromRGB(185,185,185)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
  296. newtween(Make,{TextColor3 = Color3.fromRGB(31,31,31)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
  297. end)
  298. Cb.MouseButton1Up:connect(function()
  299. newtween(Clearb,{ImageColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
  300. newtween(Cb,{TextColor3 = Color3.fromRGB(31,31,31)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
  301. end)
  302. Make.MouseButton1Up:connect(function()
  303. newtween(MakeWall,{ImageColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
  304. newtween(Make,{TextColor3 = Color3.fromRGB(31,31,31)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
  305. end)
  306. Cb.MouseLeave:connect(function()
  307. newtween(Clearb,{ImageColor3 = Color3.fromRGB(31,31,31)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
  308. newtween(Cb,{TextColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
  309. end)
  310. Make.MouseLeave:connect(function()
  311. newtween(MakeWall,{ImageColor3 = Color3.fromRGB(31,31,31)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
  312. newtween(Make,{TextColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
  313. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement