SHOW:
|
|
- or go back to the newest paste.
1 | - | :ls local Me = game.Players.LocalPlayer |
1 | + | local Me = game.Players.LocalPlayer |
2 | ||
3 | local char = Me.Character | |
4 | ||
5 | local Torso = char.Torso | |
6 | ||
7 | local Rarm = char["Right Arm"] | |
8 | ||
9 | local Larm = char["Left Arm"] | |
10 | ||
11 | function Del(E, T) | |
12 | ||
13 | wait(T) | |
14 | ||
15 | E:remove() | |
16 | ||
17 | end | |
18 | ||
19 | raig = false | |
20 | ||
21 | bg = Instance.new("BillboardGui",Me.Character.Head) | |
22 | ||
23 | bg.Size = UDim2.new(0,200,0,200) | |
24 | ||
25 | bg.StudsOffset = Vector3.new(0,2,0) | |
26 | ||
27 | dg = Instance.new("TextLabel",bg) | |
28 | ||
29 | dg.Size = UDim2.new(0,200,0,200) | |
30 | ||
31 | dg.BackgroundTransparency = 1 | |
32 | ||
33 | dg.TextColor = BrickColor.new("White") | |
34 | ||
35 | dg.Text = "Rage Sarshun" | |
36 | ||
37 | meshes = {"http://www.roblox.com/asset/?id=3270017","http://www.roblox.com/asset/?id=1323306","http://www.roblox.com/asset/?id=19251107"} | |
38 | ||
39 | key = {"1 ring","2 ice crown","3, ninja star"} | |
40 | ||
41 | workspac = game:GetService("Workspace") | |
42 | ||
43 | ||
44 | function prop(part,parent,x,y,z,color,can,anc,form) | |
45 | ||
46 | part.Size = Vector3.new(x,y,z) | |
47 | ||
48 | part.Parent = parent | |
49 | ||
50 | part.BrickColor = BrickColor.new(color) | |
51 | ||
52 | part.CanCollide = can | |
53 | ||
54 | part.Anchored = anc | |
55 | ||
56 | part.formFactor = form | |
57 | ||
58 | end | |
59 | ||
60 | ||
61 | pcall(function() char[":P"]:remove() end) | |
62 | ||
63 | pcall(function() char["bblade"]:remove() end) | |
64 | ||
65 | pcall(function() Me.Backpack["Sarshun"]:Remove() end) | |
66 | ||
67 | ||
68 | local Model = Instance.new("Model",char) | |
69 | ||
70 | Model.Name = ":P" | |
71 | ||
72 | local Model2 = Instance.new("Model",char) | |
73 | ||
74 | Model2.Name = "bblade" | |
75 | ||
76 | ||
77 | local RAB = Instance.new("Part") -- Right Arm Brick | |
78 | ||
79 | RAB.formFactor = "Custom" | |
80 | ||
81 | RAB.Size = Vector3.new(0.2, 0.2, 0.2) | |
82 | ||
83 | RAB.Transparency = 1 | |
84 | ||
85 | RAB.Parent = Model | |
86 | ||
87 | RAB:BreakJoints() | |
88 | ||
89 | local RABW = Instance.new("Weld",RAB) -- Right Arm Brick Weld | |
90 | ||
91 | RABW.Part0 = Torso | |
92 | ||
93 | RABW.Part1 = RAB | |
94 | ||
95 | RABW.C1 = CFrame.new(-1.5, -0.5, 0) | |
96 | ||
97 | local LAB = Instance.new("Part") -- Right Arm Brick | |
98 | ||
99 | LAB.formFactor = "Custom" | |
100 | ||
101 | LAB.Size = Vector3.new(0.2, 0.2, 0.2) | |
102 | ||
103 | LAB.Transparency = 1 | |
104 | ||
105 | LAB.Parent = Model | |
106 | ||
107 | LAB:BreakJoints() | |
108 | ||
109 | local LABW = Instance.new("Weld",LAB) -- Left Arm Brick Weld | |
110 | ||
111 | LABW.Part0 = Torso | |
112 | ||
113 | LABW.Part1 = LAB | |
114 | ||
115 | LABW.C1 = CFrame.new(1.5, -0.5, 0) | |
116 | ||
117 | local RAW = Instance.new("Weld",RAB) -- Right Arm Weld | |
118 | ||
119 | RAW.Part0 = RAB | |
120 | ||
121 | RAW.Part1 = nil | |
122 | ||
123 | RAW.C1 = CFrame.new(0, 0.5, 0) | |
124 | ||
125 | local LAW = Instance.new("Weld",LAB) -- Left Arm Weld | |
126 | ||
127 | LAW.Part0 = LAB | |
128 | ||
129 | LAW.Part1 = nil | |
130 | ||
131 | LAW.C1 = CFrame.new(0, 0.5, 0) | |
132 | ||
133 | ||
134 | local ha = Instance.new("Part") | |
135 | ||
136 | ha:BreakJoints() | |
137 | ||
138 | prop(ha,Model2,0.2,1.5,0.2,"Light stone grey",false,false,"Custom") | |
139 | ||
140 | local ham = Instance.new("CylinderMesh") | |
141 | ||
142 | ham.Parent = ha | |
143 | ||
144 | ham.Scale = Vector3.new(0.3, 4, 0.3) | |
145 | ||
146 | local haw = Instance.new("Weld") | |
147 | ||
148 | haw.Parent = ha | |
149 | ||
150 | haw.Part1 = ha | |
151 | ||
152 | haw.Part0 = Torso | |
153 | ||
154 | haw.C1 = CFrame.new(0, 0, -0.7) * CFrame.Angles(math.rad(0), 0, math.rad(30)) | |
155 | ||
156 | ||
157 | -- | |
158 | ||
159 | local hb = Instance.new("Part") | |
160 | ||
161 | hb:BreakJoints() | |
162 | ||
163 | prop(hb,Model2,0.2,0.2,0.2,1003,false,false,"Custom") | |
164 | ||
165 | local hbm = Instance.new("SpecialMesh") | |
166 | ||
167 | hbm.MeshId = meshes[2] | |
168 | ||
169 | hbm.MeshType = "FileMesh" | |
170 | ||
171 | hbm.Parent = hb | |
172 | ||
173 | hbm.Scale = Vector3.new(0.3, 0.3, 0.3) | |
174 | ||
175 | local hbw = Instance.new("Weld") | |
176 | ||
177 | hbw.Parent = hb | |
178 | ||
179 | hbw.Part0 = ha | |
180 | ||
181 | hbw.Part1 = hb | |
182 | ||
183 | hbw.C1 = CFrame.new(0, -2.7, 0) * CFrame.Angles(math.rad(0), 0, 0) | |
184 | ||
185 | -- | |
186 | ||
187 | local hc = Instance.new("Part") | |
188 | ||
189 | hc:BreakJoints() | |
190 | ||
191 | prop(hc,Model2,0.2,0.2,0.2,1003,false,false,"Custom") | |
192 | ||
193 | local hcm = Instance.new("SpecialMesh") | |
194 | ||
195 | hcm.MeshId = meshes[2] | |
196 | ||
197 | hcm.MeshType = "FileMesh" | |
198 | ||
199 | hcm.Parent = hc | |
200 | ||
201 | hcm.Scale = Vector3.new(0.3, 0.3, 0.3) | |
202 | ||
203 | local hcw = Instance.new("Weld") | |
204 | ||
205 | hcw.Parent = hc | |
206 | ||
207 | hcw.Part0 = ha | |
208 | ||
209 | hcw.Part1 = hc | |
210 | ||
211 | hcw.C1 = CFrame.new(0, -2.7, 0) * CFrame.Angles(math.rad(180), 0, 0) | |
212 | ||
213 | -- | |
214 | ||
215 | local hd = Instance.new("Part") | |
216 | ||
217 | hd:BreakJoints() | |
218 | ||
219 | prop(hd,Model2,0.2,1.5,0.2,"Really black",false,false,"Custom") | |
220 | ||
221 | local hdm = Instance.new("CylinderMesh") | |
222 | ||
223 | hdm.Parent = hd | |
224 | ||
225 | hdm.Scale = Vector3.new(0.35, 0.5, 0.35) | |
226 | ||
227 | local hdw = Instance.new("Weld") | |
228 | ||
229 | hdw.Parent = hd | |
230 | ||
231 | hdw.Part0 = ha | |
232 | ||
233 | hdw.Part1 = hd | |
234 | ||
235 | hdw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)) | |
236 | ||
237 | -- | |
238 | ||
239 | local he = Instance.new("Part") | |
240 | ||
241 | he:BreakJoints() | |
242 | ||
243 | prop(he,Model2,0.2,0.2,0.2,1003,false,false,"Custom") | |
244 | ||
245 | local hem = Instance.new("SpecialMesh") | |
246 | ||
247 | hem.MeshId = meshes[3] | |
248 | ||
249 | hem.MeshType = "FileMesh" | |
250 | ||
251 | hem.Parent = he | |
252 | ||
253 | hem.Scale = Vector3.new(0.3, 0.3, 0.3) | |
254 | ||
255 | local hew = Instance.new("Weld") | |
256 | ||
257 | hew.Parent = he | |
258 | ||
259 | hew.Part0 = ha | |
260 | ||
261 | hew.Part1 = he | |
262 | ||
263 | hew.C1 = CFrame.new(0, -1.7, 0) * CFrame.Angles(math.rad(0), 0, 0) | |
264 | ||
265 | -- | |
266 | ||
267 | local hf = Instance.new("Part") | |
268 | ||
269 | hf:BreakJoints() | |
270 | ||
271 | prop(hf,Model2,0.2,0.2,0.2,1003,false,false,"Custom") | |
272 | ||
273 | local hfm = Instance.new("SpecialMesh") | |
274 | ||
275 | hfm.MeshId = meshes[3] | |
276 | ||
277 | hfm.MeshType = "FileMesh" | |
278 | ||
279 | hfm.Parent = hf | |
280 | ||
281 | hfm.Scale = Vector3.new(0.3, 0.3, 0.3) | |
282 | ||
283 | local hfw = Instance.new("Weld") | |
284 | ||
285 | hfw.Parent = hf | |
286 | ||
287 | hfw.Part0 = ha | |
288 | ||
289 | hfw.Part1 = hf | |
290 | ||
291 | hfw.C1 = CFrame.new(0, 1.7, 0) * CFrame.Angles(math.rad(0), 0, 0) | |
292 | ||
293 | -- | |
294 | ||
295 | ||
296 | --funcitons | |
297 | ||
298 | function eft(part, time) | |
299 | ||
300 | local pst = part:clone() | |
301 | ||
302 | pst.Parent = workspace | |
303 | ||
304 | pst.Anchored = true | |
305 | ||
306 | pst.CanCollide = false | |
307 | ||
308 | pst.Size = part.Size | |
309 | ||
310 | pst.CFrame = part.CFrame | |
311 | ||
312 | pst.CanCollide = false | |
313 | ||
314 | pst.Transparency = 0.5 | |
315 | ||
316 | pst:BreakJoints() | |
317 | ||
318 | pst.BrickColor = BrickColor.new("White") | |
319 | ||
320 | coroutine.resume(coroutine.create(function() | |
321 | ||
322 | wait(time) | |
323 | ||
324 | pst:remove() | |
325 | ||
326 | end)) | |
327 | ||
328 | end | |
329 | ||
330 | ||
331 | function hurt(mag, dmg, part) | |
332 | ||
333 | for _,v in pairs(workspac:GetChildren()) do | |
334 | ||
335 | if v.Name ~= name then | |
336 | ||
337 | if v:findFirstChild("Humanoid") ~= nil and v:findFirstChild("Torso") ~= nil then | |
338 | ||
339 | if (v.Torso.Position - part.Position).magnitude < mag then | |
340 | ||
341 | v.Humanoid:TakeDamage(dmg) | |
342 | ||
343 | bleed(part) | |
344 | ||
345 | end | |
346 | ||
347 | end | |
348 | ||
349 | end | |
350 | ||
351 | end | |
352 | ||
353 | end | |
354 | ||
355 | ||
356 | function bleed(obj) | |
357 | ||
358 | for i = 1, math.random(5, 7) do | |
359 | ||
360 | dis = math.random(0.25, 0.65) | |
361 | ||
362 | part = Instance.new("Part", workspac) | |
363 | ||
364 | part.CanCollide = false | |
365 | ||
366 | part.Anchored = false | |
367 | ||
368 | part.formFactor = "Custom" | |
369 | ||
370 | part.BrickColor = BrickColor.new("Really red") | |
371 | ||
372 | part.TopSurface = "Smooth" | |
373 | ||
374 | part.BottomSurface = "Smooth" | |
375 | ||
376 | part.Size = Vector3.new(dis, dis, 0.2) | |
377 | ||
378 | part.CFrame = obj.CFrame + Vector3.new(math.random(-1.5, 1.5), math.random(-0.5, 0.5), math.random(-1.5, 1.5)) | |
379 | ||
380 | part:BreakJoints() | |
381 | ||
382 | coroutine.resume(coroutine.create(function() | |
383 | ||
384 | wait(math.random(0.5, 0.75)) | |
385 | ||
386 | part:remove() | |
387 | ||
388 | end)) | |
389 | ||
390 | end | |
391 | ||
392 | end | |
393 | ||
394 | ||
395 | ---end of da functs | |
396 | ||
397 | ||
398 | ||
399 | ||
400 | if script.Parent.className ~= "HopperBin" then | |
401 | ||
402 | local h = Instance.new("HopperBin", Me.Backpack) | |
403 | ||
404 | h.Name = "Sarshun" | |
405 | ||
406 | script.Parent = h | |
407 | ||
408 | end | |
409 | ||
410 | local bin = script.Parent | |
411 | ||
412 | function onSelected(mouse) | |
413 | ||
414 | attackin = false | |
415 | ||
416 | RAW.Part1 = Rarm | |
417 | ||
418 | for i = 0, 1, 0.1 do | |
419 | ||
420 | RAW.C0 = CFrame.Angles(math.rad(0+210*i), math.rad(0*i), math.rad(0*i)) | |
421 | ||
422 | wait(0.01) | |
423 | ||
424 | end | |
425 | ||
426 | haw.Part0 = Rarm | |
427 | ||
428 | haw.C1 = CFrame.new(-1.05, 0, 0) * CFrame.Angles(math.rad(90), 0, math.rad(90)) | |
429 | ||
430 | for i = 0, 1, 0.1 do | |
431 | ||
432 | RAW.C0 = CFrame.Angles(math.rad(210-120*i), math.rad(0*i), math.rad(0*i)) | |
433 | ||
434 | wait(.04) | |
435 | ||
436 | end | |
437 | ||
438 | ||
439 | mouse.Button1Down:connect(function() | |
440 | ||
441 | end) | |
442 | ||
443 | mouse.KeyDown:connect(function(key) | |
444 | ||
445 | if key == "q" then | |
446 | ||
447 | if attackin == false then | |
448 | ||
449 | attackin = true | |
450 | ||
451 | LAW.Part1 = Larm | |
452 | ||
453 | for i = 0, 1, 0.1 do | |
454 | ||
455 | LAW.C0 = CFrame.Angles(math.rad(0+120*i), math.rad(0+0*i), math.rad(0+0*i)) | |
456 | ||
457 | RAW.C0 = CFrame.Angles(math.rad(90*i), math.rad(0+90*i), math.rad(30*i)) | |
458 | ||
459 | wait(.04) | |
460 | ||
461 | end | |
462 | ||
463 | wait(0.5) | |
464 | ||
465 | b = Instance.new("Part",Workspace) | |
466 | ||
467 | b.Size = Vector3.new(20,20,20) | |
468 | ||
469 | b.BrickColor = BrickColor.new("Really red") | |
470 | ||
471 | bm = Instance.new("SpecialMesh",b) | |
472 | ||
473 | bm.MeshType = "FileMesh" | |
474 | ||
475 | bm.Scale = Vector3.new(20,20,20) | |
476 | ||
477 | bm.MeshId = meshes[2] | |
478 | ||
479 | b.Anchored = true | |
480 | ||
481 | b.CanCollide = false | |
482 | ||
483 | b.Transparency = 0.5 | |
484 | ||
485 | b.Touched:connect(function(hit) if hit.Parent.Name ~= Me.Name then pcall(function() hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - math.random(5,10) end) end end) | |
486 | ||
487 | b.CFrame = Torso.CFrame * CFrame.new(0,0,-2) | |
488 | ||
489 | b.CFrame = b.CFrame - Vector3.new(0,17,0) | |
490 | ||
491 | for i = 1, 50 do | |
492 | ||
493 | b.CFrame = b.CFrame + Vector3.new(0,0.5,0) | |
494 | ||
495 | wait(0.000000000000001) | |
496 | ||
497 | end | |
498 | ||
499 | wait(1) | |
500 | ||
501 | b:Remove() | |
502 | ||
503 | for i = 0, 1, 0.1 do | |
504 | ||
505 | LAW.C0 = CFrame.Angles(math.rad(120-120*i), math.rad(0+0*i), math.rad(0+0*i)) | |
506 | ||
507 | RAW.C0 = CFrame.Angles(math.rad(90*i), math.rad(90-90*i), math.rad(30-30*i)) | |
508 | ||
509 | wait(.04) | |
510 | ||
511 | end | |
512 | ||
513 | end | |
514 | ||
515 | LAW.Part1 = nil | |
516 | ||
517 | ||
518 | attackin = false | |
519 | ||
520 | ||
521 | elseif key == "t" then | |
522 | ||
523 | if attackin == false then | |
524 | ||
525 | attackin = true | |
526 | ||
527 | LAW.Part1 = Larm | |
528 | ||
529 | for i = 0, 1, 1 do | |
530 | ||
531 | LAW.C0 = CFrame.Angles(math.rad(0+90*i), math.rad(0+45*i), math.rad(0+0*i)) | |
532 | ||
533 | RAW.C0 = CFrame.Angles(math.rad(90*i), math.rad(0+90*i), math.rad(30*i)) | |
534 | ||
535 | wait(.04) | |
536 | ||
537 | end | |
538 | ||
539 | wait(0.5) | |
540 | ||
541 | b = Instance.new("Part",Workspace) | |
542 | ||
543 | b.Size = Vector3.new(10,10,10) | |
544 | ||
545 | b.BrickColor = BrickColor.new("Bright red") | |
546 | ||
547 | b.Shape = "Ball" | |
548 | ||
549 | b.TopSurface = "Smooth" | |
550 | ||
551 | b.BottomSurface = "Smooth" | |
552 | ||
553 | b.Anchored = true | |
554 | ||
555 | b.CanCollide = false | |
556 | ||
557 | b.Transparency = 0.2 | |
558 | ||
559 | b.Touched:connect(function(hit) if hit.Parent.Name ~= Me.Name then pcall(function() hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - math.random(5,10) end) end end) | |
560 | ||
561 | b.CFrame = Torso.CFrame * CFrame.new(0,0,-14) | |
562 | ||
563 | b.CFrame = b.CFrame - Vector3.new(0,10,0) | |
564 | ||
565 | for i = 1, 50 do | |
566 | ||
567 | b.CFrame = b.CFrame + Vector3.new(0,0.2,0) | |
568 | ||
569 | b.Transparency = b.Transparency + 0.01 | |
570 | ||
571 | wait(0.00000000000000000000000000000000001) | |
572 | ||
573 | end | |
574 | ||
575 | wait() | |
576 | ||
577 | for i = 1, 50 do | |
578 | ||
579 | wait() | |
580 | ||
581 | b.CFrame = b.CFrame * CFrame.new(0,0,-6) | |
582 | ||
583 | end | |
584 | ||
585 | b:Remove() | |
586 | ||
587 | for i = 0, 1, 0.1 do | |
588 | ||
589 | LAW.C0 = CFrame.Angles(math.rad(120-120*i), math.rad(0+0*i), math.rad(0+0*i)) | |
590 | ||
591 | RAW.C0 = CFrame.Angles(math.rad(90*i), math.rad(90-90*i), math.rad(30-30*i)) | |
592 | ||
593 | wait(.04) | |
594 | ||
595 | end | |
596 | ||
597 | end | |
598 | ||
599 | LAW.Part1 = nil | |
600 | ||
601 | ||
602 | attackin = false | |
603 | ||
604 | elseif key == "j" then | |
605 | ||
606 | LAW.Part1 = Larm | |
607 | ||
608 | if attackin == false then | |
609 | ||
610 | attackin = true | |
611 | ||
612 | for i = 0, 1, 0.1 do | |
613 | ||
614 | RAW.C0 = CFrame.Angles(math.rad(90*i), math.rad(30*i), math.rad(-45*i)) | |
615 | ||
616 | LAW.C0 = CFrame.Angles(math.rad(90*i), math.rad(0*i), math.rad(45*i)) | |
617 | ||
618 | wait(0.01) | |
619 | ||
620 | end | |
621 | ||
622 | bp = Instance.new("BodyPosition",Torso) | |
623 | ||
624 | bp.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
625 | ||
626 | bp.position = Torso.Position + Vector3.new(0,10,0) | |
627 | ||
628 | mod1 = Instance.new("Model",Torso) | |
629 | ||
630 | mod2 = Instance.new("Model",mod1) | |
631 | ||
632 | g = Instance.new("Part",mod2) | |
633 | ||
634 | g.CanCollide = false | |
635 | ||
636 | g.Transparency = 0.3 | |
637 | ||
638 | g.BrickColor = BrickColor.new(1003) | |
639 | ||
640 | g.Shape = "Ball" | |
641 | ||
642 | g.TopSurface = "Smooth" | |
643 | ||
644 | g.BottomSurface = "Smooth" | |
645 | ||
646 | g.Anchored = true | |
647 | ||
648 | if raig == true then | |
649 | ||
650 | g.Touched:connect(function(hit) if hit.Parent.Name ~= Me.Name then pcall(function() hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - math.random(10,15) end) end end) | |
651 | ||
652 | else | |
653 | ||
654 | g.Touched:connect(function(hit) if hit.Parent.Name ~= Me.Name then pcall(function() hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - math.random(5,10) end) end end) | |
655 | ||
656 | end | |
657 | ||
658 | wait(0.25) | |
659 | ||
660 | for i = 1, 50 do | |
661 | ||
662 | g.Size = g.Size + Vector3.new(1,1,1) | |
663 | ||
664 | g.Transparency = g.Transparency + 0.015 | |
665 | ||
666 | g.CFrame = Torso.CFrame | |
667 | ||
668 | wait(0.00000000001) | |
669 | ||
670 | end | |
671 | ||
672 | ||
673 | ||
674 | ||
675 | ||
676 | wait(0.05) | |
677 | ||
678 | for i = 0, 1, 0.1 do | |
679 | ||
680 | RAW.C0 = CFrame.Angles(math.rad(90*i), math.rad(30-30*i), math.rad(-45+45*i)) | |
681 | ||
682 | LAW.C0 = CFrame.Angles(math.rad(90-90*i), math.rad(0*i), math.rad(45-45*i)) | |
683 | ||
684 | wait(0.01) | |
685 | ||
686 | end | |
687 | ||
688 | attackin = false | |
689 | ||
690 | LAW.Part1 = nil | |
691 | ||
692 | bp:Remove() | |
693 | ||
694 | g:Remove() | |
695 | ||
696 | end | |
697 | ||
698 | ||
699 | ||
700 | ||
701 | ||
702 | elseif key == "r" then | |
703 | ||
704 | LAW.Part1 = Larm | |
705 | ||
706 | if raig == false then | |
707 | ||
708 | raig = true | |
709 | ||
710 | elseif raig == true then | |
711 | ||
712 | raig = false | |
713 | ||
714 | end | |
715 | ||
716 | ||
717 | ||
718 | ||
719 | ||
720 | elseif key == "e" then | |
721 | ||
722 | if attackin == false then | |
723 | ||
724 | attackin = true | |
725 | ||
726 | b = Instance.new("Part",Workspace) | |
727 | ||
728 | b.Size = Vector3.new(1,1,1) | |
729 | ||
730 | b.Shape = "Ball" | |
731 | ||
732 | b.CFrame = CFrame.new(hb.Position, mouse.Hit.p) | |
733 | ||
734 | b.Transparency = 0.5 | |
735 | ||
736 | b.TopSurface = "Smooth" | |
737 | ||
738 | b.BottomSurface = "Smooth" | |
739 | ||
740 | b.BrickColor = BrickColor.new("Bright red") | |
741 | ||
742 | fr = Instance.new("Fire",b) | |
743 | ||
744 | bv = Instance.new("BodyVelocity",b) | |
745 | ||
746 | bv.velocity = b.CFrame.lookVector * 480 | |
747 | ||
748 | bg = Instance.new("BodyGyro", b) | |
749 | ||
750 | bg.cframe = CFrame.new(ha.Position, mouse.Hit.p) | |
751 | ||
752 | b.Touched:connect(function(hit) if hit.Parent.Name ~= Me.Name then pcall(function() hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - math.random(1,5) end) end end) | |
753 | ||
754 | attackin = false | |
755 | ||
756 | end | |
757 | ||
758 | elseif key == "p" then | |
759 | ||
760 | if attackin == false then | |
761 | ||
762 | bp = Instance.new("BodyPosition",Torso) | |
763 | ||
764 | bp.position = Torso.Position + Vector3.new(0,20,0) | |
765 | ||
766 | bp.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
767 | ||
768 | b = Instance.new("Part",Torso) | |
769 | ||
770 | b.Size = Vector3.new(20,20,20) | |
771 | ||
772 | b.BrickColor = BrickColor.new("Really blue") | |
773 | ||
774 | b.Anchored = true | |
775 | ||
776 | bm = Instance.new("SpecialMesh",b) | |
777 | ||
778 | bm.MeshType = "FileMesh" | |
779 | ||
780 | bm.Scale = Vector3.new(20,20,20) | |
781 | ||
782 | bm.MeshId = meshes[2] | |
783 | ||
784 | b.CFrame = Torso.CFrame - Vector3.new(0,23,0) | |
785 | ||
786 | coroutine.resume(coroutine.create(Del), b, 0.5) | |
787 | ||
788 | coroutine.resume(coroutine.create(Del), bp, 0.5) | |
789 | ||
790 | end | |
791 | ||
792 | elseif key == "u" then | |
793 | ||
794 | if attackin == false then | |
795 | ||
796 | exp = Instance.new("Explosion",Torso) | |
797 | ||
798 | exp.Position = Torso.Position | |
799 | ||
800 | end | |
801 | ||
802 | end | |
803 | ||
804 | end) | |
805 | ||
806 | mouse.Button1Down:connect(function() | |
807 | ||
808 | LAW.Part1 = Larm | |
809 | ||
810 | if attackin == false then | |
811 | ||
812 | if raig == true then | |
813 | ||
814 | attackin = true | |
815 | ||
816 | for i = 0, 1, 0.2 do | |
817 | ||
818 | RAW.C0 = CFrame.Angles(math.rad(0+60*i), math.rad(30*i), math.rad(-30*i)) | |
819 | ||
820 | LAW.C0 = CFrame.Angles(math.rad(30*i), math.rad(15*i), math.rad(60*i)) | |
821 | ||
822 | wait(0.0000000000000000000000000000000000000000000000000000000000000000000000001) | |
823 | ||
824 | eft(hb, 0.1) | |
825 | ||
826 | hurt(2.5, 10, hb) | |
827 | ||
828 | end | |
829 | ||
830 | for i = 0, 1, 0.1 do | |
831 | ||
832 | RAW.C0 = CFrame.Angles(math.rad(45+45*i), math.rad(30-30*i), math.rad(-30+30*i)) | |
833 | ||
834 | LAW.C0 = CFrame.Angles(math.rad(30-30*i), math.rad(15-15*i), math.rad(60-60*i)) | |
835 | ||
836 | wait(0.000000000000000000000000000000000000000000000000001) | |
837 | ||
838 | end | |
839 | ||
840 | attackin = false | |
841 | ||
842 | LAW.Part1 = nil | |
843 | ||
844 | end | |
845 | ||
846 | end | |
847 | ||
848 | end) | |
849 | ||
850 | end | |
851 | ||
852 | function onDesel(mouse) | |
853 | ||
854 | for i = 0, 1, 0.1 do | |
855 | ||
856 | RAW.C0 = CFrame.Angles(math.rad(90+120*i), math.rad(0*i), math.rad(0*i)) | |
857 | ||
858 | wait(0.01) | |
859 | ||
860 | end | |
861 | ||
862 | haw.Part0 = Torso | |
863 | ||
864 | haw.C1 = CFrame.new(0, 0, -0.7) * CFrame.Angles(math.rad(0), 0, math.rad(30)) | |
865 | ||
866 | ||
867 | for i = 0, 1, 0.1 do | |
868 | ||
869 | RAW.C0 = CFrame.Angles(math.rad(210-210*i), math.rad(0*i), math.rad(0*i)) | |
870 | ||
871 | wait(0.01) | |
872 | ||
873 | end | |
874 | ||
875 | RAW.Part1 = nil | |
876 | ||
877 | end | |
878 | ||
879 | bin.Selected:connect(onSelected) | |
880 | ||
881 | bin.Deselected:connect(onDesel) | |
882 | ||
883 | while wait() do | |
884 | ||
885 | if raig == true then | |
886 | ||
887 | eft(Torso, 0.25) | |
888 | ||
889 | eft(Rarm, 0.25) | |
890 | ||
891 | eft(Larm, 0.25) | |
892 | ||
893 | eft(Torso.Parent["Left Leg"], 0.25) | |
894 | ||
895 | eft(Torso.Parent["Right Leg"], 0.25) | |
896 | ||
897 | eft(Torso.Parent.Head, .25) | |
898 | ||
899 | Me.Character.Humanoid.WalkSpeed = 40 | |
900 | ||
901 | Me.Character.Head.Transparency = 1 | |
902 | ||
903 | dg.Visible = true | |
904 | ||
905 | else | |
906 | ||
907 | Me.Character.Humanoid.WalkSpeed = 16 | |
908 | ||
909 | Me.Character.Head.Transparency = 0 | |
910 | ||
911 | dg.Visible = false | |
912 | ||
913 | end | |
914 | ||
915 | end |