SHOW:
|
|
- or go back to the newest paste.
1 | - | local Name="RobinandBatman9" |
1 | + | local Name="lafur2" |
2 | local workspace=Workspace | |
3 | - | local player=game.Players[RobinandBatman9] |
3 | + | local player=game.Players[lafur2] |
4 | local char=player.Character | |
5 | local Color=BrickColor.new("Pastel brown") | |
6 | ||
7 | if script.Parent.className~="HopperBin" then | |
8 | pcall(function() char.Gourd:remove() end) | |
9 | Staff=Instance.new("HopperBin") | |
10 | Staff.Name="Sand" | |
11 | Staff.Parent=player.Backpack | |
12 | m=Instance.new("Model") | |
13 | m.Parent=char | |
14 | m.Name="Gourd" | |
15 | p=Instance.new("Part") | |
16 | p.Locked=true | |
17 | p.BrickColor=BrickColor:Red() | |
18 | p.Material="Concrete" | |
19 | p.Size=Vector3.new(1,1,1) | |
20 | Cent=p | |
21 | me=Instance.new("CylinderMesh") | |
22 | me.Scale=Vector3.new(1.2,0.4,1.2) | |
23 | me.Parent=p | |
24 | p.Parent=m | |
25 | w=Instance.new("Weld") | |
26 | w.Part1=char.Torso | |
27 | w.Part0=p | |
28 | w.Parent=p | |
29 | w.C0=CFrame.new(0,0.25,-1)*CFrame.Angles(0,0,math.rad(35)) | |
30 | p=Instance.new("Part") | |
31 | p.Locked=true | |
32 | p.BrickColor=Color | |
33 | p.Material="Concrete" | |
34 | p.Size=Vector3.new(2,2,2) | |
35 | p.Shape="Ball" | |
36 | p.Parent=m | |
37 | w=Instance.new("Weld") | |
38 | w.Part1=Cent | |
39 | w.Part0=p | |
40 | w.Parent=p | |
41 | w.C0=CFrame.new(0,1,0) | |
42 | p=Instance.new("Part") | |
43 | p.Locked=true | |
44 | p.BrickColor=Color | |
45 | p.Material="Concrete" | |
46 | p.Size=Vector3.new(2,2,2) | |
47 | p.Shape="Ball" | |
48 | p.Parent=m | |
49 | w=Instance.new("Weld") | |
50 | w.Part1=Cent | |
51 | w.Part0=p | |
52 | w.Parent=p | |
53 | w.C0=CFrame.new(0,-1,0) | |
54 | Top=p | |
55 | p=Instance.new("Part") | |
56 | p.Locked=true | |
57 | p.BrickColor=Color | |
58 | p.Material="Concrete" | |
59 | p.Size=Vector3.new(1,1,1) | |
60 | p.Parent=m | |
61 | me=Instance.new("CylinderMesh") | |
62 | me.Scale=Vector3.new(0.5,0.15,0.5) | |
63 | me.Parent=p | |
64 | w=Instance.new("Weld") | |
65 | w.Part1=Top | |
66 | w.Part0=p | |
67 | w.Parent=p | |
68 | w.C0=CFrame.new(0,-1,0) | |
69 | p=Instance.new("Part") | |
70 | p.Locked=true | |
71 | p.BrickColor=BrickColor.new("Black") | |
72 | p.Material="Concrete" | |
73 | p.Size=Vector3.new(1,1,1) | |
74 | p.Parent=m | |
75 | me=Instance.new("CylinderMesh") | |
76 | me.Scale=Vector3.new(0.4,0.16,0.4) | |
77 | me.Parent=p | |
78 | w=Instance.new("Weld") | |
79 | w.Part1=Top | |
80 | w.Part0=p | |
81 | w.Parent=p | |
82 | w.C0=CFrame.new(0,-1,0) | |
83 | p=Instance.new("Part") | |
84 | p.Locked=true | |
85 | p.BrickColor=BrickColor:Red() | |
86 | p.Material="Concrete" | |
87 | p.Size=Vector3.new(2,1,1) | |
88 | p.Parent=m | |
89 | me=Instance.new("BlockMesh") | |
90 | me.Scale=Vector3.new(1.1,0.15,1.1) | |
91 | me.Parent=p | |
92 | w=Instance.new("Weld") | |
93 | w.Part1=char.Torso | |
94 | w.Part0=p | |
95 | w.Parent=p | |
96 | w.C0=CFrame.new(0,.75,0) | |
97 | p=Instance.new("Part") | |
98 | p.Locked=true | |
99 | p.BrickColor=BrickColor:Red() | |
100 | p.Material="Concrete" | |
101 | p.Size=Vector3.new(2,1,1) | |
102 | p.Parent=m | |
103 | me=Instance.new("BlockMesh") | |
104 | me.Scale=Vector3.new(1.29,0.15,1.1) | |
105 | me.Parent=p | |
106 | w=Instance.new("Weld") | |
107 | w.Part1=char.Torso | |
108 | w.Part0=p | |
109 | w.Parent=p | |
110 | w.C1=CFrame.new(0,0.1,0)*CFrame.Angles(0,0,math.rad(-40)) | |
111 | script.Name="Not A QuickScript" | |
112 | script.Parent=Staff | |
113 | end | |
114 | Sword=script.Parent | |
115 | function hint(msg,de) | |
116 | for _,v in pairs(player:children()) do | |
117 | if v:IsA("Message") then | |
118 | v:remove() | |
119 | end | |
120 | end | |
121 | local h=Instance.new("Hint") | |
122 | h.Text=tostring(msg) | |
123 | h.Parent=player | |
124 | Delay(tonumber(de),function() h:remove() end) | |
125 | end | |
126 | ta={} | |
127 | for _,v in pairs(player.Backpack:GetChildren()) do | |
128 | if v.Name=="Sand" then | |
129 | table.insert(ta,v) | |
130 | end | |
131 | end | |
132 | if #ta==2 or #ta>2 then | |
133 | ta[1]:remove() | |
134 | end | |
135 | Hopper=script.Parent | |
136 | function Stream(mouse) | |
137 | local b=Instance.new("Part") | |
138 | b.BrickColor=Color | |
139 | b.Reflectance=0 | |
140 | b.Transparency=1 | |
141 | b.Size=Vector3.new(2,2,2) | |
142 | b.Shape="Ball" | |
143 | b.CanCollide=false | |
144 | b.TopSurface="Smooth" | |
145 | b.Position=char.Head.Position | |
146 | b.BottomSurface="Smooth" | |
147 | b.Friction=0 | |
148 | b.Touched:connect(function(h) Hit(h) end) | |
149 | local bo=Instance.new("BodyVelocity") | |
150 | bo.maxForce=Vector3.new(9999,9999,9999) | |
151 | bo.velocity=(mouse.Hit.p-char.Head.Position).unit*60 | |
152 | bo.Parent=b | |
153 | b.Parent=Gourd | |
154 | local Bo=b | |
155 | while Bo.Parent and Up==false do | |
156 | wait() | |
157 | if mouse.Target and (Bo.Position-mouse.Target.Position).magnitude<7 then | |
158 | Hit(mouse.Target) | |
159 | else | |
160 | Bo.CFrame=b.CFrame --BodyPosition anti-hax | |
161 | bo.velocity=(mouse.Hit.p-Bo.Position).unit*150 | |
162 | end | |
163 | local b=Instance.new("Part") | |
164 | b.BrickColor=Color | |
165 | b.Reflectance=0 | |
166 | b.Transparency=0.2 | |
167 | b.Touched:connect(Hit) | |
168 | b.Size=Vector3.new(2,2,2) | |
169 | b.CanCollide=false | |
170 | b.Anchored=true | |
171 | b.TopSurface="Smooth" | |
172 | b.Parent=Gourd | |
173 | b.CFrame=Bo.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))) | |
174 | b.BottomSurface="Smooth" | |
175 | Delay(0,function() | |
176 | local p=b | |
177 | for i=1,5 do | |
178 | wait(0.05) | |
179 | p.Transparency=i/5 | |
180 | end | |
181 | p:remove() | |
182 | end) | |
183 | end | |
184 | pcall(function() Bo:remove() end) | |
185 | end | |
186 | function Def(mouse) | |
187 | local b=Instance.new("Part") | |
188 | b.BrickColor=Color | |
189 | b.Reflectance=0 | |
190 | b.Transparency=0.6 | |
191 | b.Size=Vector3.new(15,15,15) | |
192 | b.Anchored=false | |
193 | b.Shape="Ball" | |
194 | b.CanCollide=false | |
195 | p=Instance.new("BodyPosition") | |
196 | p.Parent=b | |
197 | p.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
198 | p.position=char.Torso.Position | |
199 | b.TopSurface="Smooth" | |
200 | b.Position=char.Torso.Position | |
201 | b.BottomSurface="Smooth" | |
202 | b.Touched:connect(function(h) | |
203 | Hit(h) | |
204 | end) | |
205 | b.Parent=Gourd | |
206 | while Up==false and b.Parent do | |
207 | b.CFrame=char.Torso.CFrame | |
208 | p.position=char.Torso.Position | |
209 | local p=Instance.new("Part") | |
210 | p.Size=Vector3.new(1,1,1) | |
211 | p.BrickColor=Color | |
212 | p.Anchored=true | |
213 | p.CanCollide=false | |
214 | p.Parent=Gourd | |
215 | p.CFrame=char.Torso.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)) | |
216 | local m=Instance.new("BlockMesh") | |
217 | m.Scale=Vector3.new(0.5,0.5,0.5) | |
218 | m.Parent=p | |
219 | Delay(0,function() | |
220 | local p=p | |
221 | for i=1,5 do | |
222 | wait(0.05) | |
223 | p.Transparency=i/5 | |
224 | end | |
225 | p:remove() | |
226 | end) | |
227 | wait() | |
228 | end | |
229 | pcall(function() b:remove() end) | |
230 | end | |
231 | function Bur(mouse) | |
232 | if mouse.Target and game.Players:getPlayerFromCharacter(mouse.Target.Parent) then | |
233 | local m=mouse.Target.Parent | |
234 | m.Torso.Anchored=true | |
235 | for i=1,15 do | |
236 | local p=Instance.new("Part") | |
237 | p.Size=Vector3.new(i,1,i) | |
238 | p.BrickColor=Color | |
239 | p.Anchored=true | |
240 | p.Transparency=i/14 | |
241 | p.CanCollide=false | |
242 | p.Parent=m | |
243 | local me=Instance.new("CylinderMesh") | |
244 | me.Scale=Vector3.new(1,1.1,1) | |
245 | me.Parent=p | |
246 | p.CFrame=CFrame.new(m.Torso.CFrame.x,m.Torso.CFrame.y-3.5,m.Torso.CFrame.z) | |
247 | end | |
248 | for i=1,10 do | |
249 | for i=1,6 do | |
250 | wait() | |
251 | local p=Instance.new("Part") | |
252 | p.Size=Vector3.new(1,1,1) | |
253 | p.BrickColor=Color | |
254 | p.Anchored=true | |
255 | p.CanCollide=false | |
256 | p.Parent=m | |
257 | p.CFrame=m.Torso.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)) | |
258 | local m=Instance.new("BlockMesh") | |
259 | m.Scale=Vector3.new(0.25,0.25,0.25) | |
260 | m.Parent=p | |
261 | Delay(0,function() | |
262 | local p=p | |
263 | for i=1,5 do | |
264 | wait(0.05) | |
265 | p.Transparency=i/5 | |
266 | end | |
267 | p:remove() | |
268 | end) | |
269 | end | |
270 | m.Torso.CFrame=CFrame.new(m.Torso.Position)*CFrame.new(0,-0.5,0) | |
271 | wait() | |
272 | end | |
273 | Hit(m.Torso) | |
274 | Hit(m.Head) | |
275 | end | |
276 | end | |
277 | function Shift(mouse) | |
278 | if mouse.Target then | |
279 | local mo=Instance.new("Model",char) | |
280 | local h=mouse.Hit.p | |
281 | local m=char | |
282 | for i=1,15 do | |
283 | local p=Instance.new("Part") | |
284 | p.Size=Vector3.new(i,1,i) | |
285 | p.BrickColor=Color | |
286 | p.Anchored=true | |
287 | p.Transparency=i/14 | |
288 | p.CanCollide=false | |
289 | p.Parent=mo | |
290 | local me=Instance.new("CylinderMesh") | |
291 | me.Scale=Vector3.new(1,1.1,1) | |
292 | me.Parent=p | |
293 | p.CFrame=CFrame.new(m.Torso.CFrame.x,m.Torso.CFrame.y-3.5,m.Torso.CFrame.z) | |
294 | end | |
295 | for i=1,15 do | |
296 | local p=Instance.new("Part") | |
297 | p.Size=Vector3.new(i,1,i) | |
298 | p.BrickColor=Color | |
299 | p.Anchored=true | |
300 | p.Transparency=i/14 | |
301 | p.CanCollide=false | |
302 | p.Parent=mo | |
303 | local me=Instance.new("CylinderMesh") | |
304 | me.Scale=Vector3.new(1,1.1,1) | |
305 | me.Parent=p | |
306 | p.CFrame=CFrame.new(h)*CFrame.new(0,-0.5,0) | |
307 | end | |
308 | m.Torso.Anchored=true | |
309 | for i=1,15 do | |
310 | for i=1,6 do | |
311 | wait() | |
312 | local p=Instance.new("Part") | |
313 | p.Size=Vector3.new(1,1,1) | |
314 | p.BrickColor=Color | |
315 | p.Anchored=true | |
316 | p.CanCollide=false | |
317 | p.Parent=mo | |
318 | p.CFrame=m.Torso.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)) | |
319 | local m=Instance.new("BlockMesh") | |
320 | m.Scale=Vector3.new(0.25,0.25,0.25) | |
321 | m.Parent=p | |
322 | Delay(0,function() | |
323 | local p=p | |
324 | for i=1,5 do | |
325 | wait(0.05) | |
326 | p.Transparency=i/5 | |
327 | end | |
328 | p:remove() | |
329 | end) | |
330 | end | |
331 | m.Torso.CFrame=m.Torso.CFrame*CFrame.new(0,-0.6,0) | |
332 | wait() | |
333 | end | |
334 | m.Torso.CFrame=CFrame.new(h)*CFrame.new(0,-1.5,0) | |
335 | for i=1,11 do | |
336 | for i=1,6 do | |
337 | wait() | |
338 | local p=Instance.new("Part") | |
339 | p.Size=Vector3.new(1,1,1) | |
340 | p.BrickColor=Color | |
341 | p.Anchored=true | |
342 | p.CanCollide=false | |
343 | p.Parent=mo | |
344 | p.CFrame=m.Torso.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)) | |
345 | local m=Instance.new("BlockMesh") | |
346 | m.Scale=Vector3.new(0.25,0.25,0.25) | |
347 | m.Parent=p | |
348 | Delay(0,function() | |
349 | local p=p | |
350 | for i=1,5 do | |
351 | wait(0.05) | |
352 | p.Transparency=i/5 | |
353 | end | |
354 | p:remove() | |
355 | end) | |
356 | end | |
357 | m.Torso.CFrame=m.Torso.CFrame*CFrame.new(0,0.5,0) | |
358 | wait() | |
359 | end | |
360 | m.Torso.Anchored=false | |
361 | mo:remove() | |
362 | end | |
363 | end | |
364 | ||
365 | function Wave(mouse) | |
366 | if mouse.Hit.p.x>char.Torso.Position.x then | |
367 | Deg=-2 | |
368 | Fre=-60 | |
369 | else | |
370 | Deg=2 | |
371 | Fre=60 | |
372 | end | |
373 | local X=char.Torso.CFrame.x | |
374 | for i=0,Fre,Deg do | |
375 | wait() | |
376 | local p=Instance.new("Part") | |
377 | p.Parent=Gourd | |
378 | p.Size=Vector3.new(2,1,workspace.Base.Size.z) | |
379 | p.BrickColor=Color | |
380 | p.Anchored=true | |
381 | p.CFrame=CFrame.new(X,0,workspace.Base.Position.z)*CFrame.new(-i,0,0) | |
382 | local m=Instance.new("BlockMesh") | |
383 | m.Parent=p | |
384 | m.Scale=Vector3.new(1,1.2,1.005) | |
385 | Delay(0,function() | |
386 | local p=p | |
387 | local m=m | |
388 | for i=1,9,0.25 do | |
389 | m.Scale=m.Scale+Vector3.new(0,.25,0) | |
390 | wait() | |
391 | end | |
392 | wait() | |
393 | for i=1,9,0.25 do | |
394 | m.Scale=m.Scale+Vector3.new(0,-.25,0) | |
395 | wait() | |
396 | end | |
397 | p:remove() | |
398 | end) | |
399 | for _,v in pairs(game.Players:GetPlayers()) do | |
400 | if v.Character and v.Character:findFirstChild("Head") then | |
401 | if v.Character.Head.Position.y<(workspace.Base.Position.y+9.5) then | |
402 | if v.Character.Torso.Position.x<p.Position.x+p.Size.x/2 and v.Character.Torso.Position.x>p.Position.x-p.Size.x/2 then | |
403 | Hit(v.Character.Head) | |
404 | end | |
405 | end | |
406 | end | |
407 | end | |
408 | end | |
409 | end | |
410 | function Spike(mouse) | |
411 | local Pos=char.Torso.Position | |
412 | for ii=8,25,3 do | |
413 | wait() | |
414 | for i=0,360,360/12 do | |
415 | local x = (ii) * math.sin(i) + Pos.x | |
416 | local y = Pos.y-4 | |
417 | local z = (ii)* math.cos (i) + Pos.z | |
418 | local brick = Instance.new("Part") | |
419 | brick.Size=Vector3.new(1,1,1) | |
420 | brick.Anchored=true | |
421 | brick.BrickColor=Color | |
422 | brick.Parent=Gourd | |
423 | brick.CFrame = CFrame.new(x,y,z) | |
424 | brick.Touched:connect(Hit) | |
425 | local mesh=Instance.new("CylinderMesh") | |
426 | mesh.Parent=brick | |
427 | Delay(0,function() | |
428 | local p=brick | |
429 | local m=mesh | |
430 | for i=1,8 do | |
431 | m.Scale=m.Scale+Vector3.new(0,.25,0) | |
432 | p.CFrame=p.CFrame*CFrame.new(0,0.25,0) | |
433 | wait() | |
434 | end | |
435 | for i=1,10 do | |
436 | p.Transparency=i/10 | |
437 | wait(0.05) | |
438 | end | |
439 | p:remove() | |
440 | end) | |
441 | end | |
442 | for _,v in pairs(game.Players:GetPlayers()) do | |
443 | if v.Character and v.Character:findFirstChild("Torso") and (v.Character.Torso.Position-Pos).magnitude<ii then | |
444 | Hit(v.Character.Torso) | |
445 | end | |
446 | end | |
447 | wait(0.08) | |
448 | end | |
449 | end | |
450 | function Coffin(mouse) | |
451 | if mouse.Target and game.Players:getPlayerFromCharacter(mouse.Target.Parent) then | |
452 | me=mouse.Target.Parent | |
453 | Delay(0,function() | |
454 | while me:findFirstChild("Torso") do | |
455 | wait() | |
456 | local p=Instance.new("Part") | |
457 | p.Size=Vector3.new(1,1,1) | |
458 | p.BrickColor=Color | |
459 | p.Anchored=true | |
460 | p.CanCollide=false | |
461 | p.Parent=me | |
462 | p.CFrame=me.Torso.CFrame*CFrame.new(math.random(-8,8),math.random(-2,5),math.random(-8,8))*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)) | |
463 | local m=Instance.new("BlockMesh") | |
464 | m.Scale=Vector3.new(0.35,0.35,0.35) | |
465 | m.Parent=p | |
466 | Delay(0,function() | |
467 | local p=p | |
468 | for i=1,5 do | |
469 | wait(0.05) | |
470 | p.Transparency=i/5 | |
471 | end | |
472 | p:remove() | |
473 | end) | |
474 | end | |
475 | end) | |
476 | BP=Instance.new("BodyPosition") | |
477 | BP.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
478 | BP.position=me.Torso.Position+Vector3.new(0,2,0) | |
479 | BP.Parent=me.Torso | |
480 | b=Instance.new("Part") | |
481 | b.Size=Vector3.new(8,1,8) | |
482 | b.BottomSurface="Smooth" | |
483 | b.TopSurface="Smooth" | |
484 | b.BrickColor=Color | |
485 | b.CanCollide=false | |
486 | m=Instance.new("BlockMesh") | |
487 | m.Parent=b | |
488 | m.Scale=Vector3.new(1,0.5,1) | |
489 | b.Parent=me | |
490 | b:BreakJoints() | |
491 | w=Instance.new("Weld") | |
492 | w.Parent=b | |
493 | w.Part0=me.Torso | |
494 | w.Part1=b | |
495 | w.C0=CFrame.new(0,-3.5,0) | |
496 | for i=1,7,0.25 do | |
497 | wait(0.075) | |
498 | m.Scale=m.Scale+Vector3.new(0,0.25,0) | |
499 | w.C0=w.C0*CFrame.new(0,0.25/2,0) | |
500 | BP.position=BP.position+Vector3.new(0,.75,0) | |
501 | end | |
502 | for i=1,2-(0.5/5),0.25/5 do | |
503 | m.Scale=m.Scale+Vector3.new(-.25/8,0,-.25/8) | |
504 | wait(0.05) | |
505 | end | |
506 | Hit(me.Head) | |
507 | Hit(me.Torso) | |
508 | end | |
509 | end | |
510 | function Cage(mouse) | |
511 | if mouse.Target then | |
512 | pos=mouse.Hit | |
513 | for ii=0,360,360/6 do | |
514 | wait() | |
515 | for i=0,360/10 do | |
516 | local p=Instance.new("Part") | |
517 | p.CFrame=pos*CFrame.new(math.cos(i)*8,math.sin(i)*8*3/i,0)*CFrame.Angles(math.rad(360/ii),math.rad(360/ii),0) | |
518 | p.Anchored=true | |
519 | p.BrickColor=Color | |
520 | p.Parent=Gourd | |
521 | p.Size=Vector3.new(1,4,4) | |
522 | Delay(5,function() | |
523 | p:remove() | |
524 | end) | |
525 | end | |
526 | end | |
527 | end | |
528 | end | |
529 | ||
530 | wep={Stream,Def,Bur,Shift,Wave,Spike,Coffin,Cage} | |
531 | name={"Sand Stream","Manual Defence","Sand Burial","Sand Shift","Sand Tsunami","Sand Spikes","Sand Coffin","Sand Cage"} | |
532 | function CheckAdd() | |
533 | if (Mode+1)~=(#wep+1) then | |
534 | Mode=Mode+1 | |
535 | Hopper.Name=name[Mode].."("..Mode..")" | |
536 | elseif (Mode+1)==(#wep+1) then | |
537 | Mode=1 | |
538 | Hopper.Name=name[Mode].."("..Mode..")" | |
539 | end | |
540 | end | |
541 | function CheckSub() | |
542 | if (Mode-1)==0 or (Mode-1)<0 then | |
543 | Mode=#wep | |
544 | Hopper.Name=name[Mode].."("..Mode..")" | |
545 | elseif (Mode-1)~=0 then | |
546 | Mode=Mode-1 | |
547 | Hopper.Name=name[Mode].."("..Mode..")" | |
548 | end | |
549 | end | |
550 | function KeyDown(key) | |
551 | if key=="c" then | |
552 | CheckAdd() | |
553 | elseif key=="x" then | |
554 | Mode=1 | |
555 | Hopper.Name=name[1].."("..Mode..")" | |
556 | elseif key=="z" then | |
557 | CheckSub() | |
558 | end | |
559 | end | |
560 | Mode=0 | |
561 | Up=false | |
562 | Sand=true | |
563 | Hopper.Selected:connect(function(mouse) | |
564 | Sand=true | |
565 | Gourd=char.Gourd | |
566 | mouse.KeyDown:connect(KeyDown) | |
567 | mouse.Button1Down:connect(function() | |
568 | Up=false | |
569 | coroutine.resume(coroutine.create(function() wep[Mode](mouse) end)) | |
570 | end) | |
571 | mouse.Button1Up:connect(function() Up=true end) | |
572 | mouse.Icon = "rbxasset://textures\\GunCursor.png" | |
573 | Kill=char.Humanoid.Died:connect(function() | |
574 | wait() | |
575 | if char:findFirstChild("Head") then | |
576 | m=char.Head | |
577 | elseif char:findFirstChild("Torso") then | |
578 | m=char.Torso | |
579 | else | |
580 | return | |
581 | end | |
582 | local p=Instance.new("Part") | |
583 | p.Size=Vector3.new(1,1,1) | |
584 | p.BrickColor=Color | |
585 | p.Anchored=true | |
586 | p.Transparency=1 | |
587 | p.CanCollide=false | |
588 | p.Parent=char | |
589 | local me=Instance.new("CylinderMesh") | |
590 | me.Scale=Vector3.new(1,1.1,1) | |
591 | me.Parent=p | |
592 | p.CFrame=CFrame.new(m.CFrame.x,workspace.Base.CFrame.y,m.CFrame.z) | |
593 | for i=1,100 do | |
594 | local me=me | |
595 | local p=p | |
596 | wait() | |
597 | me.Scale=me.Scale+Vector3.new(.5,0,.5) | |
598 | p.Transparency=i/200 --100? | |
599 | end | |
600 | for _,v in pairs(game.Players:GetPlayers()) do | |
601 | if v.Character and v.Name~=Name and (v.Character.Torso.Position-p.Position).magnitude<51 then | |
602 | pcall(function() Hit(v.Character.Head) end) | |
603 | end | |
604 | end | |
605 | p:remove() | |
606 | end) | |
607 | while Sand do | |
608 | wait(0.05) | |
609 | local p=Instance.new("Part") | |
610 | p.Size=Vector3.new(1,1,1) | |
611 | p.BrickColor=Color | |
612 | p.Anchored=true | |
613 | p.CanCollide=false | |
614 | p.Parent=char | |
615 | p.CFrame=char.Torso.CFrame*CFrame.new(math.random(-7,7),math.random(-2,5),math.random(-7,7))*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)) | |
616 | p.Touched:connect(Hit) | |
617 | local m=Instance.new("BlockMesh") | |
618 | m.Scale=Vector3.new(0.15,0.15,0.15) | |
619 | m.Parent=p | |
620 | Delay(0,function() | |
621 | local p=p | |
622 | for i=1,5 do | |
623 | wait(0.05) | |
624 | p.Transparency=i/5 | |
625 | end | |
626 | p:remove() | |
627 | end) | |
628 | end | |
629 | end) | |
630 | Hopper.Deselected:connect(function() | |
631 | pcall(function() | |
632 | Sand=false | |
633 | Kill:disconnect() | |
634 | end) | |
635 | end) | |
636 | function Hit(p) | |
637 | if p.Parent.Name~=Name and p.Parent.Parent.Name~=Name and p.Name~="Base" and p.Name~="Sand" and p.Parent then | |
638 | Delay(0,function() | |
639 | p.Anchored=true | |
640 | p.Name="Sand" | |
641 | p.BrickColor=Color | |
642 | for i=1,5 do | |
643 | p.Transparency=i/5 | |
644 | wait(0.1) | |
645 | end | |
646 | p:remove() | |
647 | end) | |
648 | end | |
649 | end |