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