LuaExploitz

"Wall Maker"

Oct 3rd, 2016
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.08 KB | None | 0 0
  1.  
  2.  
  3. gui = false
  4.  
  5. me = game.Players.LocalPlayer.Name
  6.  
  7. bigcolor = "Really black"
  8.  
  9. smallcolor = "Really black"
  10.  
  11. XSize = 10
  12.  
  13. YSize = 5
  14.  
  15. ZSize = 2
  16.  
  17. Distance = 15
  18.  
  19. if script.Parent.className ~= "HopperBin" then
  20.  
  21. tool = Instance.new("HopperBin")
  22.  
  23. tool.Parent = game.Players[me].Backpack
  24.  
  25. tool.Name = "Wall Maker"
  26.  
  27. script.Parent = tool
  28.  
  29. end  
  30.  
  31. tool.Selected:connect(function(mouse)
  32.  
  33. if gui == false then
  34.  
  35. gui = true
  36.  
  37. screen = Instance.new("ScreenGui")
  38.  
  39. screen.Parent = game.Players[me].PlayerGui
  40.  
  41. b1 = Instance.new("TextButton")
  42.  
  43. b1.Parent = screen
  44.  
  45. b1.Size = UDim2.new(0.02, 0, 0.05, 0)
  46.  
  47. b1.Position = UDim2.new(0.1, 0, 0.3, 0)
  48.  
  49. b1.Text = ">"
  50.  
  51. b1.MouseButton1Down:connect(function()
  52.  
  53. XSize = XSize + 1
  54.  
  55. msg = Instance.new("Message")
  56.  
  57. msg.Parent = tool.Parent.Parent
  58.  
  59. msg.Text = "X increased to "..XSize
  60.  
  61. msg.Name = "Text"
  62.  
  63. wait (2)
  64.  
  65. tool.Parent.Parent.Text:Remove()
  66.  
  67. end)
  68.  
  69. b2 = Instance.new("TextButton")
  70.  
  71. b2.Parent = screen
  72.  
  73. b2.Size = UDim2.new(0.02, 0, 0.05, 0)
  74.  
  75. b2.Position = UDim2.new(0, 0, 0.3, 0)
  76.  
  77. b2.Text = "<"
  78.  
  79. b2.MouseButton1Down:connect(function()
  80.  
  81. XSize = XSize - 1
  82.  
  83. msg = Instance.new("Message")
  84.  
  85. msg.Parent = tool.Parent.Parent
  86.  
  87. msg.Text = "X decreased to "..XSize
  88.  
  89. msg.Name = "Text"
  90.  
  91. wait (2)
  92.  
  93. tool.Parent.Parent.Text:Remove()
  94.  
  95. end)
  96.  
  97. b3 = Instance.new("TextLabel")
  98.  
  99. b3.Parent = screen
  100.  
  101. b3.Size = UDim2.new(0.08, 0, 0.05, 0)
  102.  
  103. b3.Position = UDim2.new(0.02, 0, 0.3, 0)
  104.  
  105. b3.Text = "Size-X"
  106.  
  107. b4 = Instance.new("TextButton")
  108.  
  109. b4.Parent = screen
  110.  
  111. b4.Size = UDim2.new(0.02, 0, 0.05, 0)
  112.  
  113. b4.Position = UDim2.new(0.1, 0, 0.35, 0)
  114.  
  115. b4.Text = ">"
  116.  
  117. b4.MouseButton1Down:connect(function()
  118.  
  119. YSize = YSize + 1
  120.  
  121. msg = Instance.new("Message")
  122.  
  123. msg.Parent = tool.Parent.Parent
  124.  
  125. msg.Text = "Y increased to "..YSize
  126.  
  127. msg.Name = "Text"
  128.  
  129. wait (2)
  130.  
  131. tool.Parent.Parent.Text:Remove()
  132.  
  133. end)
  134.  
  135. b5 = Instance.new("TextButton")
  136.  
  137. b5.Parent = screen
  138.  
  139. b5.Size = UDim2.new(0.02, 0, 0.05, 0)
  140.  
  141. b5.Position = UDim2.new(0, 0, 0.35, 0)
  142.  
  143. b5.Text = "<"
  144.  
  145. b5.MouseButton1Down:connect(function()
  146.  
  147. YSize = YSize - 1
  148.  
  149. msg = Instance.new("Message")
  150.  
  151. msg.Parent = tool.Parent.Parent
  152.  
  153. msg.Text = "Y decreased to "..YSize
  154.  
  155. msg.Name = "Text"
  156.  
  157. wait (2)
  158.  
  159. tool.Parent.Parent.Text:Remove()
  160.  
  161. end)
  162.  
  163. b6 = Instance.new("TextLabel")
  164.  
  165. b6.Parent = screen
  166.  
  167. b6.Size = UDim2.new(0.08, 0, 0.05, 0)
  168.  
  169. b6.Position = UDim2.new(0.02, 0, 0.35, 0)
  170.  
  171. b6.Text = "Size-Y"
  172.  
  173. b7 = Instance.new("TextButton")
  174.  
  175. b7.Parent = screen
  176.  
  177. b7.Size = UDim2.new(0.02, 0, 0.05, 0)
  178.  
  179. b7.Position = UDim2.new(0.1, 0, 0.4, 0)
  180.  
  181. b7.Text = ">"
  182.  
  183. b7.MouseButton1Down:connect(function()
  184.  
  185. ZSize = ZSize + 1
  186.  
  187. msg = Instance.new("Message")
  188.  
  189. msg.Parent = tool.Parent.Parent
  190.  
  191. msg.Text = "Z increased to "..ZSize
  192.  
  193. msg.Name = "Text"
  194.  
  195. wait (2)
  196.  
  197. tool.Parent.Parent.Text:Remove()
  198.  
  199. end)
  200.  
  201. b8 = Instance.new("TextButton")
  202.  
  203. b8.Parent = screen
  204.  
  205. b8.Size = UDim2.new(0.02, 0, 0.05, 0)
  206.  
  207. b8.Position = UDim2.new(0, 0, 0.4, 0)
  208.  
  209. b8.Text = "<"
  210.  
  211. b8.MouseButton1Down:connect(function()
  212.  
  213. ZSize = ZSize - 1
  214.  
  215. msg = Instance.new("Message")
  216.  
  217. msg.Parent = tool.Parent.Parent
  218.  
  219. msg.Text = "Z decreased to "..ZSize
  220.  
  221. msg.Name = "Text"
  222.  
  223. wait (2)
  224.  
  225. tool.Parent.Parent.Text:Remove()
  226.  
  227. end)
  228.  
  229. b9 = Instance.new("TextLabel")
  230.  
  231. b9.Parent = screen
  232.  
  233. b9.Size = UDim2.new(0.08, 0, 0.05, 0)
  234.  
  235. b9.Position = UDim2.new(0.02, 0, 0.4, 0)
  236.  
  237. b9.Text = "Size-Z"
  238.  
  239. b10 = Instance.new("TextButton")
  240.  
  241. b10.Parent = screen
  242.  
  243. b10.Size = UDim2.new(0.02, 0, 0.05, 0)
  244.  
  245. b10.Position = UDim2.new(0.1, 0, 0.45, 0)
  246.  
  247. b10.Text = ">"
  248.  
  249. b10.MouseButton1Down:connect(function()
  250.  
  251. Distance = Distance + 1
  252.  
  253. msg = Instance.new("Message")
  254.  
  255. msg.Parent = tool.Parent.Parent
  256.  
  257. msg.Text = "Distance increased to "..Distance
  258.  
  259. msg.Name = "Text"
  260.  
  261. wait (2)
  262.  
  263. tool.Parent.Parent.Text:Remove()
  264.  
  265. end)
  266.  
  267. b11 = Instance.new("TextButton")
  268.  
  269. b11.Parent = screen
  270.  
  271. b11.Size = UDim2.new(0.02, 0, 0.05, 0)
  272.  
  273. b11.Position = UDim2.new(0, 0, 0.45, 0)
  274.  
  275. b11.Text = "<"
  276.  
  277. b11.MouseButton1Down:connect(function()
  278.  
  279. Distance = Distance - 1
  280.  
  281. msg = Instance.new("Message")
  282.  
  283. msg.Parent = tool.Parent.Parent
  284.  
  285. msg.Text = "Distance decreased to "..Distance
  286.  
  287. msg.Name = "Text"
  288.  
  289. wait (2)
  290.  
  291. tool.Parent.Parent.Text:Remove()
  292.  
  293. end)
  294.  
  295. b12 = Instance.new("TextLabel")
  296.  
  297. b12.Parent = screen
  298.  
  299. b12.Size = UDim2.new(0.08, 0, 0.05, 0)
  300.  
  301. b12.Position = UDim2.new(0.02, 0, 0.45, 0)
  302.  
  303. b12.Text = "Distance"
  304.  
  305. end
  306.  
  307. mouse.Button1Down:connect(function()
  308.  
  309. click = true
  310.  
  311. while click == true do
  312.  
  313. wall = Instance.new("Part")
  314.  
  315. wall.Parent = workspace
  316.  
  317. wall.Size = Vector3.new(XSize, YSize, ZSize)
  318.  
  319. wall.Locked = true
  320.  
  321. wall.CFrame = CFrame.new(tool.Parent.Parent.Character.Torso.Position, mouse.Hit.p)
  322.  
  323. wall.CFrame = CFrame.new(wall.Position + (wall.CFrame.lookVector * Distance), mouse.Hit.p)
  324.  
  325. wall.BrickColor = BrickColor.new(bigcolor)
  326.  
  327. wall.Anchored = true
  328.  
  329. wait (0.1)
  330.  
  331. end
  332.  
  333. end)
  334.  
  335. mouse.Button1Up:connect(function()
  336.  
  337. click = false
  338.  
  339. end)
  340.  
  341. end)
Add Comment
Please, Sign In to add comment