Advertisement
astronaut32

gunblade

Jul 7th, 2015
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.07 KB | None | 0 0
  1.  
  2. --dont even have a hooperbin yet lol
  3. --Gun Blade
  4.  
  5. plyr = game.Players.LocalPlayer
  6.  
  7. char = plyr.Character
  8.  
  9. tol=Instance.new("HopperBin",plyr.Backpack)
  10. tol.Name="Gun_blade"
  11.  
  12. hum = char.Humanoid
  13.  
  14. torso = char.Torso
  15.  
  16.  
  17. limb = {char:findFirstChild("Right Arm")}
  18.  
  19.  
  20. handle = Instance.new("Part", workspace)
  21.  
  22. handle.CanCollide = false
  23.  
  24. handle.Anchored = false
  25.  
  26. handle.TopSurface = 0
  27.  
  28. handle.BottomSurface = 0
  29.  
  30. handle.formFactor = "Custom"
  31.  
  32. handle.Size = Vector3.new(.2, .2, .2)
  33.  
  34. handle.BrickColor = BrickColor.new("Medium stone grey")
  35.  
  36. handle:BreakJoints()
  37.  
  38.  
  39. mesh = Instance.new("BlockMesh", handle)
  40.  
  41. mesh.Scale = Vector3.new(1, 5.5, 1.5)
  42.  
  43.  
  44. motor = Instance.new("Motor", limb[1])
  45.  
  46. motor.Part0 = limb[1]
  47.  
  48. motor.Part1 = handle
  49.  
  50. motor.C0 = motor.C0 * CFrame.new(0, -1.1, 0) * CFrame.Angles(math.pi/2, 0, 0)
  51.  
  52.  
  53. handle2 = Instance.new("Part", workspace)
  54.  
  55. handle2.CanCollide = false
  56.  
  57. handle2.Anchored = false
  58.  
  59. handle2.TopSurface = 0
  60.  
  61. handle2.BottomSurface = 0
  62.  
  63. handle2.formFactor = "Custom"
  64.  
  65. handle2.Size = Vector3.new(.2, .2, .2)
  66.  
  67. handle2.BrickColor = BrickColor.new("Medium stone grey")
  68.  
  69. handle2:BreakJoints()
  70.  
  71.  
  72. mesh2 = Instance.new("BlockMesh", handle2)
  73.  
  74. mesh2.Scale = Vector3.new(1, 2, 1.5)
  75.  
  76.  
  77. motor2 = Instance.new("Motor", handle)
  78.  
  79. motor2.Part0 = handle
  80.  
  81. motor2.Part1 = handle2
  82.  
  83. motor2.C0 = motor2.C0 * CFrame.new(0, -.5, 0) * CFrame.Angles(.2, 0, 0) + Vector3.new(0, -.2, -.03)
  84.  
  85.  
  86. handle3 = Instance.new("Part", workspace)
  87.  
  88. handle3.CanCollide = false
  89.  
  90. handle3.Anchored = false
  91.  
  92. handle3.TopSurface = 0
  93.  
  94. handle3.BottomSurface = 0
  95.  
  96. handle3.formFactor = "Custom"
  97.  
  98. handle3.Size = Vector3.new(.2, .2, .2)
  99.  
  100. handle3.BrickColor = BrickColor.new("Medium stone grey")
  101.  
  102. handle3:BreakJoints()
  103.  
  104.  
  105. mesh3 = Instance.new("BlockMesh", handle3)
  106.  
  107. mesh3.Scale = Vector3.new(1.3, 2.3, 1.8)
  108.  
  109.  
  110. motor3 = Instance.new("Motor", handle)
  111.  
  112. motor3.Part0 = handle
  113.  
  114. motor3.Part1 = handle3
  115.  
  116. motor3.C0 = motor3.C0 * CFrame.new(0, -1, 0) * CFrame.Angles(0, 0, 0) + Vector3.new(0, 0, -.15)
  117.  
  118.  
  119. base = Instance.new("Part", workspace)
  120.  
  121. base.CanCollide = false
  122.  
  123. base.Anchored = false
  124.  
  125. base.TopSurface = 0
  126.  
  127. base.BottomSurface = 0
  128.  
  129. base.formFactor = "Custom"
  130.  
  131. base.Size = Vector3.new(.2, .2, .2)
  132.  
  133. base.BrickColor = BrickColor.new("Really black")
  134.  
  135. base:BreakJoints()
  136.  
  137.  
  138. mesh4 = Instance.new("BlockMesh", base)
  139.  
  140. mesh4.Scale = Vector3.new(2.5, 1, 1)
  141.  
  142.  
  143. motor4 = Instance.new("Motor", handle3)
  144.  
  145. motor4.Part0 = handle3
  146.  
  147. motor4.Part1 = base
  148.  
  149. motor4.C0 = motor4.C0 * CFrame.new(0, -.3, 0)
  150.  
  151.  
  152. base2 = Instance.new("Part", workspace)
  153.  
  154. base2.CanCollide = false
  155.  
  156. base2.Anchored = false
  157.  
  158. base2.TopSurface = 0
  159.  
  160. base2.BottomSurface = 0
  161.  
  162. base2.formFactor = "Custom"
  163.  
  164. base2.Size = Vector3.new(.2, .2, .2)
  165.  
  166. base2.BrickColor = BrickColor.new("Institutional white")
  167.  
  168. base2:BreakJoints()
  169.  
  170.  
  171. mesh5 = Instance.new("BlockMesh", base2)
  172.  
  173. mesh5.Scale = Vector3.new(1, 2, 1)
  174.  
  175.  
  176. motor5 = Instance.new("Motor", base)
  177.  
  178. motor5.Part0 = base
  179.  
  180. motor5.Part1 = base2
  181.  
  182. motor5.C0 = motor5.C0 * CFrame.new(0, -.3, 0) * CFrame.Angles(.7, 0, 0) + Vector3.new(0, 0, -0.15)
  183.  
  184.  
  185. base3 = Instance.new("Part", workspace)
  186.  
  187. base3.CanCollide = false
  188.  
  189. base3.Anchored = false
  190.  
  191. base3.TopSurface = 0
  192.  
  193. base3.BottomSurface = 0
  194.  
  195. base3.formFactor = "Custom"
  196.  
  197. base3.Size = Vector3.new(.2, .2, .2)
  198.  
  199. base3.BrickColor = BrickColor.new("Institutional white")
  200.  
  201. base3:BreakJoints()
  202.  
  203.  
  204. mesh6 = Instance.new("BlockMesh", base3)
  205.  
  206. mesh6.Scale = Vector3.new(1, 2, 1)
  207.  
  208.  
  209. motor6 = Instance.new("Motor", base)
  210.  
  211. motor6.Part0 = base
  212.  
  213. motor6.Part1 = base3
  214.  
  215. motor6.C0 = motor6.C0 * CFrame.new(0, -.3, 0) * CFrame.Angles(-.7, 0, 0) + Vector3.new(0, 0, 0.15)
  216.  
  217.  
  218. base4 = Instance.new("Part", workspace)
  219.  
  220. base4.CanCollide = false
  221.  
  222. base4.Anchored = false
  223.  
  224. base4.TopSurface = 0
  225.  
  226. base4.BottomSurface = 0
  227.  
  228. base4.formFactor = "Custom"
  229.  
  230. base4.Size = Vector3.new(.2, .2, .2)
  231.  
  232. base4.BrickColor = BrickColor.new("Institutional white")
  233.  
  234. base4:BreakJoints()
  235.  
  236.  
  237. mesh7 = Instance.new("BlockMesh", base4)
  238.  
  239. mesh7.Scale = Vector3.new(1, 3.7, .5)
  240.  
  241.  
  242. motor7 = Instance.new("Motor", base)
  243.  
  244. motor7.Part0 = base
  245.  
  246. motor7.Part1 = base4
  247.  
  248. motor7.C0 = motor7.C0 * CFrame.new(0, -.5, 0) * CFrame.Angles(0, 0, 0) + Vector3.new(0, -.15, -.28)
  249.  
  250.  
  251. base5 = Instance.new("Part", workspace)
  252.  
  253. base5.CanCollide = false
  254.  
  255. base5.Anchored = false
  256.  
  257. base5.TopSurface = 0
  258.  
  259. base5.BottomSurface = 0
  260.  
  261. base5.formFactor = "Custom"
  262.  
  263. base5.Size = Vector3.new(.2, .2, .2)
  264.  
  265. base5.BrickColor = BrickColor.new("Institutional white")
  266.  
  267. base5:BreakJoints()
  268.  
  269.  
  270. mesh8 = Instance.new("BlockMesh", base5)
  271.  
  272. mesh8.Scale = Vector3.new(1, 3.2, .5)
  273.  
  274.  
  275. motor8 = Instance.new("Motor", base)
  276.  
  277. motor8.Part0 = base
  278.  
  279. motor8.Part1 = base5
  280.  
  281. motor8.C0 = motor8.C0 * CFrame.new(0, -.7, 0) * CFrame.Angles(0, 0, 0) + Vector3.new(0, .15, .28)
  282.  
  283.  
  284. inside = Instance.new("Part", workspace)
  285.  
  286. inside.CanCollide = false
  287.  
  288. inside.Anchored = false
  289.  
  290. inside.TopSurface = 0
  291.  
  292. inside.BottomSurface = 0
  293.  
  294. inside.formFactor = "Custom"
  295.  
  296. inside.Size = Vector3.new(.2, .5, .2)
  297.  
  298. inside.BrickColor = BrickColor.new("Institutional white")
  299.  
  300. inside:BreakJoints()
  301.  
  302.  
  303. new = Instance.new("CylinderMesh", inside)
  304.  
  305. new.Scale = Vector3.new(.35, 3, .35)
  306.  
  307.  
  308. mot = Instance.new("Motor", base)
  309.  
  310. mot.Part0 = base
  311.  
  312. mot.Part1 = inside
  313.  
  314. mot.C0 = mot.C0 * CFrame.new(0, -.5, 0)
  315.  
  316.  
  317. inside2 = Instance.new("Part", workspace)
  318.  
  319. inside2.CanCollide = false
  320.  
  321. inside2.Anchored = false
  322.  
  323. inside2.TopSurface = 0
  324.  
  325. inside2.BottomSurface = 0
  326.  
  327. inside2.formFactor = "Custom"
  328.  
  329. inside2.Size = Vector3.new(.5, .5, .5)
  330.  
  331. inside2.BrickColor = BrickColor.new("Dark stone grey")
  332.  
  333. inside2:BreakJoints()
  334.  
  335.  
  336. new2 = Instance.new("CylinderMesh", inside2)
  337.  
  338. new2.Scale = Vector3.new(1, 1.2, 1)
  339.  
  340.  
  341. mot2 = Instance.new("Motor", inside)
  342.  
  343. mot2.Part0 = inside
  344.  
  345. mot2.Part1 = inside2
  346.  
  347. mot2.C0 = mot2.C0 * CFrame.new(0, -.2, 0)
  348.  
  349.  
  350. inside3 = Instance.new("Part", workspace)
  351.  
  352. inside3.CanCollide = false
  353.  
  354. inside3.Anchored = false
  355.  
  356. inside3.TopSurface = 0
  357.  
  358. inside3.BottomSurface = 0
  359.  
  360. inside3.formFactor = "Custom"
  361.  
  362. inside3.Size = Vector3.new(.2, .2, .2)
  363.  
  364. inside3.BrickColor = BrickColor.new("Institutional white")
  365.  
  366. inside3:BreakJoints()
  367.  
  368.  
  369. new3 = Instance.new("CylinderMesh", inside3)
  370.  
  371. new3.Scale = Vector3.new(.8, .6, .8)
  372.  
  373.  
  374. mot3 = Instance.new("Motor", inside2)
  375.  
  376. mot3.Part0 = inside2
  377.  
  378. mot3.Part1 = inside3
  379.  
  380. mot3.C0 = mot3.C0 * CFrame.new(0, -.35, -.2)
  381.  
  382.  
  383. inside4 = Instance.new("Part", workspace)
  384.  
  385. inside4.CanCollide = false
  386.  
  387. inside4.Anchored = false
  388.  
  389. inside4.TopSurface = 0
  390.  
  391. inside4.BottomSurface = 0
  392.  
  393. inside4.formFactor = "Custom"
  394.  
  395. inside4.Size = Vector3.new(.2, .2, .2)
  396.  
  397. inside4.BrickColor = BrickColor.new("Institutional white")
  398.  
  399. inside4:BreakJoints()
  400.  
  401.  
  402. new4 = Instance.new("CylinderMesh", inside4)
  403.  
  404. new4.Scale = Vector3.new(.8, .55, .8)
  405.  
  406.  
  407. mot4 = Instance.new("Motor", inside2)
  408.  
  409. mot4.Part0 = inside2
  410.  
  411. mot4.Part1 = inside4
  412.  
  413. mot4.C0 = mot4.C0 * CFrame.new(0, -.35, -.05)
  414.  
  415.  
  416. in5 = Instance.new("Part", workspace)
  417.  
  418. in5.CanCollide = false
  419.  
  420. in5.Anchored = false
  421.  
  422. in5.TopSurface = 0
  423.  
  424. in5.BottomSurface = 0
  425.  
  426. in5.formFactor = "Custom"
  427.  
  428. in5.Size = Vector3.new(.2, .2, .2)
  429.  
  430. in5.BrickColor = BrickColor.new("Really black")
  431.  
  432. in5:BreakJoints()
  433.  
  434.  
  435. new5 = Instance.new("BlockMesh", in5)
  436.  
  437. new5.Scale = Vector3.new(.4, .3, 2)
  438.  
  439.  
  440. mot5 = Instance.new("Motor", inside2)
  441.  
  442. mot5.Part0 = inside2
  443.  
  444. mot5.Part1 = in5
  445.  
  446. mot5.C0 = mot5.C0 * CFrame.new(0, -.34, 0)
  447.  
  448.  
  449. out = Instance.new("Part", workspace)
  450.  
  451. out.CanCollide = false
  452.  
  453. out.Anchored = false
  454.  
  455. out.TopSurface = 0
  456.  
  457. out.BottomSurface = 0
  458.  
  459. out.formFactor = "Custom"
  460.  
  461. out.Size = Vector3.new(.2, .2, .2)
  462.  
  463. out.BrickColor = BrickColor.new("Institutional white")
  464.  
  465. out:BreakJoints()
  466.  
  467.  
  468. new6 = Instance.new("CylinderMesh", out)
  469.  
  470. new6.Scale =Vector3.new(.7, .5, .7)
  471.  
  472.  
  473. mot6 = Instance.new("Motor", inside2)
  474.  
  475. mot6.Part0 = inside2
  476.  
  477. mot6.Part1 = out
  478.  
  479. mot6.C0 = mot6.C0 * CFrame.new(0, -.35, .15)
  480.  
  481.  
  482. out2 = Instance.new("Part", workspace)
  483.  
  484. out2.CanCollide = false
  485.  
  486. out2.Anchored = false
  487.  
  488. out2.TopSurface = 0
  489.  
  490. out2.BottomSurface = 0
  491.  
  492. out2.formFactor = "Custom"
  493.  
  494. out2.Size = Vector3.new(.2, .2, .2)
  495.  
  496. out2.BrickColor = BrickColor.new("Really black")
  497.  
  498. out2:BreakJoints()
  499.  
  500.  
  501. new7 = Instance.new("BlockMesh", out2)
  502.  
  503. new7.Scale = Vector3.new(1, .4, 3.5)
  504.  
  505.  
  506. mot7 = Instance.new("Motor", inside2)
  507.  
  508. mot7.Part0 = inside2
  509.  
  510. mot7.Part1 = out2
  511.  
  512. mot7.C0 = mot7.C0 * CFrame.new(0, -.41, -.02)
  513.  
  514.  
  515. blade = Instance.new("Part", workspace)
  516.  
  517. blade.CanCollide = false
  518.  
  519. blade.Anchored = false
  520.  
  521. blade.TopSurface = 0
  522.  
  523. blade.BottomSurface = 0
  524.  
  525. blade.formFactor = "Custom"
  526.  
  527. blade.Reflectance = 0.1
  528.  
  529. blade.Size = Vector3.new(.2, .7, .2)
  530.  
  531. blade.BrickColor = BrickColor.new("Mid gray")
  532.  
  533. blade:BreakJoints()
  534.  
  535.  
  536. nu = Instance.new("BlockMesh", blade)
  537.  
  538. nu.Scale = Vector3.new(.3, 6, 2)
  539.  
  540.  
  541. mo = Instance.new("Motor", out2)
  542.  
  543. mo.Part0 = out2
  544.  
  545. mo.Part1 = blade
  546.  
  547. mo.C0 = mo.C0 * CFrame.new(0, -2.05, -.1)
  548.  
  549.  
  550. blade1 = Instance.new("Part", workspace)
  551.  
  552. blade1.CanCollide = false
  553.  
  554. blade1.Anchored = false
  555.  
  556. blade1.TopSurface = 0
  557.  
  558. blade1.BottomSurface = 0
  559.  
  560. blade1.formFactor = "Custom"
  561.  
  562. blade1.Size = Vector3.new(.2, .2, .2)
  563.  
  564. blade1.Reflectance = 0.1
  565.  
  566. blade1.BrickColor = BrickColor.new("Mid gray")
  567.  
  568. blade1:BreakJoints()
  569.  
  570.  
  571. nu1 = Instance.new("BlockMesh", blade1)
  572.  
  573. nu1.Scale = Vector3.new(.3, 7, 1.2)
  574.  
  575.  
  576. mo1 = Instance.new("Motor", out2)
  577.  
  578. mo1.Part0 = out2
  579.  
  580. mo1.Part1 = blade1
  581.  
  582. mo1.C0 = mo1.C0 * CFrame.new(0, -1, .1) * CFrame.Angles(0, 0, 0)
  583.  
  584.  
  585. blade2 = Instance.new("Part", workspace)
  586.  
  587. blade2.CanCollide = false
  588.  
  589. blade2.Anchored = false
  590.  
  591. blade2.TopSurface = 0
  592.  
  593. blade2.BottomSurface = 0
  594.  
  595. blade2.formFactor = "Custom"
  596.  
  597. blade2.Size = Vector3.new(.2, .2, .2)
  598.  
  599. blade2.Reflectance = 0.1
  600.  
  601. blade2.BrickColor = BrickColor.new("Mid gray")
  602.  
  603. blade2:BreakJoints()
  604.  
  605.  
  606. nu2 = Instance.new("BlockMesh", blade2)
  607.  
  608. nu2.Scale = Vector3.new(.3, 3.4, 1.2)
  609.  
  610.  
  611. mo2 = Instance.new("Motor", blade1)
  612.  
  613. mo2.Part0 = blade1
  614.  
  615. mo2.Part1 = blade2
  616.  
  617. mo2.C0 = mo2.C0 * CFrame.new(0, -.15, -.02) * CFrame.Angles(-.5, 0, 0)
  618.  
  619.  
  620. blade3 = Instance.new("Part", workspace)
  621.  
  622. blade3.CanCollide = false
  623.  
  624. blade3.Anchored = false
  625.  
  626. blade3.TopSurface = 0
  627.  
  628. blade3.BottomSurface = 0
  629.  
  630. blade3.formFactor = "Custom"
  631.  
  632. blade3.Size = Vector3.new(.2, .2, .2)
  633.  
  634. blade3.Reflectance = 0.1
  635.  
  636. blade3.BrickColor = BrickColor.new("Mid gray")
  637.  
  638. blade3:BreakJoints()
  639.  
  640.  
  641. nu3 = Instance.new("BlockMesh", blade3)
  642.  
  643. nu3.Scale = Vector3.new(.3, 13.8, 1.5)
  644.  
  645.  
  646. mo3 = Instance.new("Motor", blade1)
  647.  
  648. mo3.Part0 = blade1
  649.  
  650. mo3.Part1 = blade3
  651.  
  652. mo3.C0 = mo3.C0 * CFrame.new(0, -1.77, .1)
  653.  
  654.  
  655. blade4 = Instance.new("Part", workspace)
  656.  
  657. blade4.CanCollide = false
  658.  
  659. blade4.Anchored = false
  660.  
  661. blade4.TopSurface = 0
  662.  
  663. blade4.BottomSurface = 0
  664.  
  665. blade4.formFactor = "Custom"
  666.  
  667. blade4.Size = Vector3.new(.2, .2, .2)
  668.  
  669. blade4.Reflectance = 0.1
  670.  
  671. blade4.BrickColor = BrickColor.new("Mid gray")
  672.  
  673. blade4:BreakJoints()
  674.  
  675.  
  676. nu4 = Instance.new("SpecialMesh", blade4)
  677.  
  678. nu4.MeshType = "Wedge"
  679.  
  680. nu4.Scale = Vector3.new(.3, 4, 3.2)
  681.  
  682.  
  683. mo4 = Instance.new("Motor", blade)
  684.  
  685. mo4.Part0 = blade
  686.  
  687. mo4.Part1 = blade4
  688.  
  689. mo4.C0 = mo4.C0 * CFrame.new(0, -2.5, .12) * CFrame.Angles(math.pi/1, 0, 0)
  690.  
  691.  
  692. detail = Instance.new("Part", workspace)
  693.  
  694. detail.CanCollide = false
  695.  
  696. detail.Anchored = false
  697.  
  698. detail.TopSurface = 0
  699.  
  700. detail.BottomSurface = 0
  701.  
  702. detail.formFactor = "Custom"
  703.  
  704. detail.Size = Vector3.new(.2, .2, .2)
  705.  
  706. detail.BrickColor = BrickColor.new("Really black")
  707.  
  708. detail:BreakJoints()
  709.  
  710.  
  711. dme = Instance.new("BlockMesh", detail)
  712.  
  713. dme.Scale = Vector3.new(1.3, 5.2, 1.3)
  714.  
  715.  
  716. dmo = Instance.new("Motor", handle)
  717.  
  718. dmo.Part0 = handle
  719.  
  720. dmo.Part1 = detail
  721.  
  722. dmo.C0 = dmo.C0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/1, 0, 0)
  723.  
  724.  
  725. detail2 = Instance.new("Part", workspace)
  726.  
  727. detail2.CanCollide = false
  728.  
  729. detail2.Anchored = false
  730.  
  731. detail2.TopSurface = 0
  732.  
  733. detail2.BottomSurface = 0
  734.  
  735. detail2.formFactor = "Custom"
  736.  
  737. detail2.Size = Vector3.new(.2, .2, .2)
  738.  
  739. detail2.BrickColor = BrickColor.new("Really black")
  740.  
  741. detail2:BreakJoints()
  742.  
  743.  
  744. dme2 = Instance.new("BlockMesh", detail2)
  745.  
  746. dme2.Scale = Vector3.new(1.2, 2.2, 1.2) -- X, Z +2 - 3
  747.  
  748.  
  749. dmo2 = Instance.new("Motor", handle2)
  750.  
  751. dmo2.Part0 = handle2
  752.  
  753. dmo2.Part1 = detail2
  754.  
  755. dmo2.C0 = dmo2.C0 * CFrame.new(0, .1, -.03) * CFrame.Angles(.15, 0, 0)
  756.  
  757.  
  758. detail3 = Instance.new("Part", workspace)
  759.  
  760. detail3.CanCollide = false
  761.  
  762. detail3.Anchored = false
  763.  
  764. detail3.TopSurface = 0
  765.  
  766. detail3.BottomSurface = 0
  767.  
  768. detail3.formFactor = "Custom"
  769.  
  770. detail3.Size = Vector3.new(.2, .2, .2)
  771.  
  772. detail3.BrickColor = BrickColor.new("Really black")
  773.  
  774. detail3:BreakJoints()
  775.  
  776.  
  777. dme3 = Instance.new("BlockMesh", detail3)
  778.  
  779. dme3.Scale = Vector3.new(1.5, 2, 1.6)
  780.  
  781.  
  782. dmo3 = Instance.new("Motor", handle3)
  783.  
  784. dmo3.Part0 = handle3
  785.  
  786. dmo3.Part1 = detail3
  787.  
  788. dmo3.C0 = dmo3.C0 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  789.  
  790.  
  791. bas = Instance.new("Part", workspace)
  792.  
  793. bas.CanCollide = false
  794.  
  795. bas.Anchored = false
  796.  
  797. bas.TopSurface = 0
  798.  
  799. bas.BottomSurface = 0
  800.  
  801. bas.formFactor = "Custom"
  802.  
  803. bas.Size = Vector3.new(.2, .2, .2)
  804.  
  805. bas.BrickColor = BrickColor.new("Really black")
  806.  
  807. bas:BreakJoints()
  808.  
  809.  
  810. dmo4 = Instance.new("BlockMesh", bas)
  811.  
  812. dmo4.Scale = Vector3.new(2.5, 1, 1)
  813.  
  814.  
  815. dme4 = Instance.new("Motor", base)
  816.  
  817. dme4.Part0 = base
  818.  
  819. dme4.Part1 = bas
  820.  
  821. dme4.C0 = dme4.C0 * CFrame.new(0, 0, 0)
  822.  
  823.  
  824. bas2 = Instance.new("Part", workspace)
  825.  
  826. bas2.CanCollide = false
  827.  
  828. bas2.Anchored = false
  829.  
  830. bas2.TopSurface = 0
  831.  
  832. bas2.BottomSurface = 0
  833.  
  834. bas2.formFactor = "Custom"
  835.  
  836. bas2.Size = Vector3.new(.2, .2, .2)
  837.  
  838. bas2:BreakJoints()
  839.  
  840.  
  841. dme5 = Instance.new("BlockMesh", bas2)
  842.  
  843. dme5.Scale = Vector3.new(1.2, 1.7, 0.8)
  844.  
  845.  
  846. dmo5 = Instance.new("Motor", base2)
  847.  
  848. dmo5.Part0 = base2
  849.  
  850. dmo5.Part1 = bas2
  851.  
  852. dmo5.C0 = dmo5.C0 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  853.  
  854.  
  855. bas3 = Instance.new("Part", workspace)
  856.  
  857. bas3.CanCollide = false
  858.  
  859. bas3.Anchored = false
  860.  
  861. bas3.TopSurface = 0
  862.  
  863. bas3.BottomSurface = 0
  864.  
  865. bas3.formFactor = "Custom"
  866.  
  867. bas3.Size = Vector3.new(.2, .2, .2)
  868.  
  869. bas3:BreakJoints()
  870.  
  871.  
  872. dme6 = Instance.new("BlockMesh", bas3)
  873.  
  874. dme6.Scale = Vector3.new(1.2, 1.7, 0.8)
  875.  
  876.  
  877. dmo6 = Instance.new("Motor", base3)
  878.  
  879. dmo6.Part0 = base3
  880.  
  881. dmo6.Part1 = bas3
  882.  
  883. dmo6.C0 = dmo6.C0 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  884.  
  885.  
  886. line = Instance.new("Part", workspace)
  887.  
  888. line.CanCollide = false
  889.  
  890. line.Anchored = false
  891.  
  892. line.TopSurface = 0
  893.  
  894. line.BottomSurface = 0
  895.  
  896. line.formFactor = "Custom"
  897.  
  898. line.Size = Vector3.new(.5, .5, .5)
  899.  
  900. line.BrickColor = BrickColor.new("Dark stone grey")
  901.  
  902. line:BreakJoints()
  903.  
  904.  
  905. msh = Instance.new("CylinderMesh", line)
  906.  
  907. msh.Scale = Vector3.new(.2, 1.2, .2)
  908.  
  909.  
  910. li = Instance.new("Motor", line)
  911.  
  912. li.Part0 = line
  913.  
  914. li.Part1 = inside2
  915.  
  916. li.C0 = li.C0 * CFrame.new(.18, 0, -.15)
  917.  
  918.  
  919. line1 = Instance.new("Part", workspace)
  920.  
  921. line1.CanCollide = false
  922.  
  923. line1.Anchored = false
  924.  
  925. line1.TopSurface = 0
  926.  
  927. line1.BottomSurface = 0
  928.  
  929. line1.formFactor = "Custom"
  930.  
  931. line1.Size = Vector3.new(.5, .5, .5)
  932.  
  933. line1.BrickColor = BrickColor.new("Dark stone grey")
  934.  
  935. line1:BreakJoints()
  936.  
  937.  
  938. msh1 = Instance.new("CylinderMesh", line1)
  939.  
  940. msh1.Scale = Vector3.new(.2, 1.2, .2)
  941.  
  942.  
  943. li1 = Instance.new("Motor", line1)
  944.  
  945. li1.Part0 = line1
  946.  
  947. li1.Part1 = inside2
  948.  
  949. li1.C0 = li1.C0 * CFrame.new(-.18, 0, -.15)
  950.  
  951.  
  952. line2 = Instance.new("Part", workspace)
  953.  
  954. line2.CanCollide = false
  955.  
  956. line2.Anchored = false
  957.  
  958. line2.TopSurface = 0
  959.  
  960. line2.BottomSurface = 0
  961.  
  962. line2.formFactor = "Custom"
  963.  
  964. line2.Size = Vector3.new(.5, .5, .5)
  965.  
  966. line2.BrickColor = BrickColor.new("Dark stone grey")
  967.  
  968. line2:BreakJoints()
  969.  
  970.  
  971. msh2 = Instance.new("CylinderMesh", line2)
  972.  
  973. msh2.Scale = Vector3.new(.2, 1.2, .2)
  974.  
  975.  
  976. li2 = Instance.new("Motor", line2)
  977.  
  978. li2.Part0 = line2
  979.  
  980. li2.Part1 = inside2
  981.  
  982. li2.C0 = li2.C0 * CFrame.new(-.18, 0, .15)
  983.  
  984.  
  985. line3 = Instance.new("Part", workspace)
  986.  
  987. line3.CanCollide = false
  988.  
  989. line3.Anchored = false
  990.  
  991. line3.TopSurface = 0
  992.  
  993. line3.BottomSurface = 0
  994.  
  995. line3.formFactor = "Custom"
  996.  
  997. line3.Size = Vector3.new(.5, .5, .5)
  998.  
  999. line3.BrickColor = BrickColor.new("Dark stone grey")
  1000.  
  1001. line3:BreakJoints()
  1002.  
  1003.  
  1004. msh3 = Instance.new("CylinderMesh", line3)
  1005.  
  1006. msh3.Scale = Vector3.new(.2, 1.2, .2)
  1007.  
  1008.  
  1009. li3 = Instance.new("Motor", line3)
  1010.  
  1011. li3.Part0 = line3
  1012.  
  1013. li3.Part1 = inside2
  1014.  
  1015. li3.C0 = li3.C0 * CFrame.new(.18, 0, .15)
  1016.  
  1017.  
  1018. line4 = Instance.new("Part", workspace)
  1019.  
  1020. line4.CanCollide = false
  1021.  
  1022. line4.Anchored = false
  1023.  
  1024. line4.TopSurface = 0
  1025.  
  1026. line4.BottomSurface = 0
  1027.  
  1028. line4.formFactor = "Custom"
  1029.  
  1030. line4.Size = Vector3.new(.5, .5, .5)
  1031.  
  1032. line4.BrickColor = BrickColor.new("Dark stone grey")
  1033.  
  1034. line4:BreakJoints()
  1035.  
  1036.  
  1037. msh4 = Instance.new("CylinderMesh", line4)
  1038.  
  1039. msh4.Scale = Vector3.new(.2, 1.2, .2)
  1040.  
  1041.  
  1042. li4 = Instance.new("Motor", line4)
  1043.  
  1044. li4.Part0 = line4
  1045.  
  1046. li4.Part1 = inside2
  1047.  
  1048. li4.C0 = li4.C0 * CFrame.new(.24, 0, 0)
  1049.  
  1050.  
  1051. line5 = Instance.new("Part", workspace)
  1052.  
  1053. line5.CanCollide = false
  1054.  
  1055. line5.Anchored = false
  1056.  
  1057. line5.TopSurface = 0
  1058.  
  1059. line5.BottomSurface = 0
  1060.  
  1061. line5.formFactor = "Custom"
  1062.  
  1063. line5.Size = Vector3.new(.5, .5, .5)
  1064.  
  1065. line5.BrickColor = BrickColor.new("Dark stone grey")
  1066.  
  1067. line5:BreakJoints()
  1068.  
  1069.  
  1070. msh5 = Instance.new("CylinderMesh", line5)
  1071.  
  1072. msh5.Scale = Vector3.new(.2, 1.2, .2)
  1073.  
  1074.  
  1075. li5 = Instance.new("Motor", line5)
  1076.  
  1077. li5.Part0 = line5
  1078.  
  1079. li5.Part1 = inside2
  1080.  
  1081. li5.C0 = li5.C0 * CFrame.new(-.24, 0, 0)
  1082.  
  1083.  
  1084. dot = Instance.new("Part", workspace)
  1085.  
  1086. dot.CanCollide = false
  1087.  
  1088. dot.Anchored = false
  1089.  
  1090. dot.TopSurface = 0
  1091.  
  1092. dot.BottomSurface = 0
  1093.  
  1094. dot.formFactor = "Custom"
  1095.  
  1096. dot.Size = Vector3.new(.5, .5, .5)
  1097.  
  1098. dot.BrickColor = BrickColor.new("Really black")
  1099.  
  1100. dot:BreakJoints()
  1101.  
  1102.  
  1103. mh = Instance.new("CylinderMesh", dot)
  1104.  
  1105. mh.Scale = Vector3.new(.2, .5, .2)
  1106.  
  1107.  
  1108. mt = Instance.new("Motor", dot)
  1109.  
  1110. mt.Part0 = dot
  1111.  
  1112. mt.Part1 = inside2
  1113.  
  1114. mt.C0 = mt.C0 * CFrame.new(.15, -.18, .12)
  1115.  
  1116.  
  1117. dot1 = Instance.new("Part", workspace)
  1118.  
  1119. dot1.CanCollide = false
  1120.  
  1121. dot1.Anchored = false
  1122.  
  1123. dot1.TopSurface = 0
  1124.  
  1125. dot1.BottomSurface = 0
  1126.  
  1127. dot1.formFactor = "Custom"
  1128.  
  1129. dot1.Size = Vector3.new(.5, .5, .5)
  1130.  
  1131. dot1.BrickColor = BrickColor.new("Really black")
  1132.  
  1133. dot1:BreakJoints()
  1134.  
  1135.  
  1136. mh1 = Instance.new("CylinderMesh", dot1)
  1137.  
  1138. mh1.Scale = Vector3.new(.2, .5, .2)
  1139.  
  1140.  
  1141. mt1 = Instance.new("Motor", dot1)
  1142.  
  1143. mt1.Part0 = dot1
  1144.  
  1145. mt1.Part1 = inside2
  1146.  
  1147. mt1.C0 = mt1.C0 * CFrame.new(-.15, -.18, -.12)
  1148.  
  1149.  
  1150. dot2 = Instance.new("Part", workspace)
  1151.  
  1152. dot2.CanCollide = false
  1153.  
  1154. dot2.Anchored = false
  1155.  
  1156. dot2.TopSurface = 0
  1157.  
  1158. dot2.BottomSurface = 0
  1159.  
  1160. dot2.formFactor = "Custom"
  1161.  
  1162. dot2.Size = Vector3.new(.5, .5, .5)
  1163.  
  1164. dot2.BrickColor = BrickColor.new("Really black")
  1165.  
  1166. dot2:BreakJoints()
  1167.  
  1168.  
  1169. mh2 = Instance.new("CylinderMesh", dot2)
  1170.  
  1171. mh2.Scale = Vector3.new(.2, .5, .2)
  1172.  
  1173.  
  1174. mt2 = Instance.new("Motor", dot2)
  1175.  
  1176. mt2.Part0 = dot2
  1177.  
  1178. mt2.Part1 = inside2
  1179.  
  1180. mt2.C0 = mt2.C0 * CFrame.new(-.15, -.18, .12)
  1181.  
  1182.  
  1183. dot3 = Instance.new("Part", workspace)
  1184.  
  1185. dot3.CanCollide = false
  1186.  
  1187. dot3.Anchored = false
  1188.  
  1189. dot3.TopSurface = 0
  1190.  
  1191. dot3.BottomSurface = 0
  1192.  
  1193. dot3.formFactor = "Custom"
  1194.  
  1195. dot3.Size = Vector3.new(.5, .5, .5)
  1196.  
  1197. dot3.BrickColor = BrickColor.new("Really black")
  1198.  
  1199. dot3:BreakJoints()
  1200.  
  1201.  
  1202. mh3 = Instance.new("CylinderMesh", dot3)
  1203.  
  1204. mh3.Scale = Vector3.new(.2, .5, .2)
  1205.  
  1206.  
  1207. mt3 = Instance.new("Motor", dot3)
  1208.  
  1209. mt3.Part0 = dot3
  1210.  
  1211. mt3.Part1 = inside2
  1212.  
  1213. mt3.C0 = mt3.C0 * CFrame.new(.15, -.18, -.12)
  1214.  
  1215.  
  1216. dot4 = Instance.new("Part", workspace)
  1217.  
  1218. dot4.CanCollide = false
  1219.  
  1220. dot4.Anchored = false
  1221.  
  1222. dot4.TopSurface = 0
  1223.  
  1224. dot4.BottomSurface = 0
  1225.  
  1226. dot4.formFactor = "Custom"
  1227.  
  1228. dot4.Size = Vector3.new(.5, .5, .5)
  1229.  
  1230. dot4.BrickColor = BrickColor.new("Really black")
  1231.  
  1232. dot4:BreakJoints()
  1233.  
  1234.  
  1235. mh4 = Instance.new("CylinderMesh", dot4)
  1236.  
  1237. mh4.Scale = Vector3.new(.2, .5, .2)
  1238.  
  1239.  
  1240. mt4 = Instance.new("Motor", dot4)
  1241.  
  1242. mt4.Part0 = dot4
  1243.  
  1244. mt4.Part1 = inside2
  1245.  
  1246. mt4.C0 = mt4.C0 * CFrame.new(0, -.18, -.2)
  1247.  
  1248.  
  1249. dot5 = Instance.new("Part", workspace)
  1250.  
  1251. dot5.CanCollide = false
  1252.  
  1253. dot5.Anchored = false
  1254.  
  1255. dot5.TopSurface = 0
  1256.  
  1257. dot5.BottomSurface = 0
  1258.  
  1259. dot5.formFactor = "Custom"
  1260.  
  1261. dot5.Size = Vector3.new(.5, .5, .5)
  1262.  
  1263. dot5.BrickColor = BrickColor.new("Really black")
  1264.  
  1265. dot5:BreakJoints()
  1266.  
  1267.  
  1268. mh5 = Instance.new("CylinderMesh", dot5)
  1269.  
  1270. mh5.Scale = Vector3.new(.2, .5, .2)
  1271.  
  1272.  
  1273. mt5 = Instance.new("Motor", dot5)
  1274.  
  1275. mt5.Part0 = dot5
  1276.  
  1277. mt5.Part1 = inside2
  1278.  
  1279. mt5.C0 = mt5.C0 * CFrame.new(0, -.18, .2)
  1280.  
  1281.  
  1282. h = Instance.new("Part", workspace)
  1283.  
  1284. h.CanCollide = false
  1285.  
  1286. h.Anchored = false
  1287.  
  1288. h.TopSurface = 0
  1289.  
  1290. h.BottomSurface = 0
  1291.  
  1292. h.formFactor = "Custom"
  1293.  
  1294. h.Size = Vector3.new(.2, .2, .2)
  1295.  
  1296. h:BreakJoints()
  1297.  
  1298.  
  1299. m = Instance.new("SpecialMesh", h)
  1300.  
  1301. m.MeshType = "FileMesh"
  1302.  
  1303. m.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1304.  
  1305. m.Scale = Vector3.new(.3, .3, .3)
  1306.  
  1307.  
  1308. mr = Instance.new("Motor", handle)
  1309.  
  1310. mr.Part0 = handle
  1311.  
  1312. mr.Part1 = h
  1313.  
  1314. mr.C0 = mr.C0 * CFrame.new(0, -1, .03) * CFrame.Angles(math.pi/2, 1.5, 0)
  1315.  
  1316.  
  1317.  
  1318. fin = Instance.new("Part", workspace)
  1319.  
  1320. fin.CanCollide = false
  1321.  
  1322. fin.Anchored = false
  1323.  
  1324. fin.TopSurface = 0
  1325.  
  1326. fin.BottomSurface = 0
  1327.  
  1328. fin.formFactor = "Custom"
  1329.  
  1330. fin.Size = Vector3.new(.2, .7, .2)
  1331.  
  1332. fin.BrickColor = BrickColor.new("Really black")
  1333.  
  1334. fin:BreakJoints()
  1335.  
  1336.  
  1337. la = Instance.new("BlockMesh", fin)
  1338.  
  1339. la.Scale = Vector3.new(.35, 7, .25)
  1340.  
  1341.  
  1342. lo = Instance.new("Motor", blade)
  1343.  
  1344. lo.Part0 = blade
  1345.  
  1346. lo.Part1 = fin
  1347.  
  1348. lo.C0 = lo.C0 * CFrame.new(0, -.45, -.2)
  1349.  
  1350.  
  1351. Part = function(x,y,z,color,tr,cc,an,parent)
  1352. local p = Instance.new('Part',parent or Weapon)
  1353. p.formFactor = 'Custom'
  1354. p.Size = Vector3.new(x,y,z)
  1355. p.BrickColor = BrickColor.new(color)
  1356. p.CanCollide = cc
  1357. p.Transparency = tr
  1358. p.Anchored = an
  1359. p.TopSurface,p.BottomSurface = 0,0
  1360. return p
  1361. end
  1362. Weld = function(p0,p1,x,y,z,rx,ry,rz,par)
  1363. p0.Position = p1.Position
  1364. local w = Instance.new('Motor',par or p0)
  1365. w.Part0 = p0
  1366. w.Part1 = p1
  1367. w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
  1368. return w
  1369. end
  1370. Mesh = function(par,num,x,y,z)
  1371. local msh = _
  1372. if num == 1 then msh = Instance.new("CylinderMesh",par)
  1373. elseif type(num) == 'string' then msh = Instance.new("SpecialMesh",par) msh.MeshId = num
  1374. end
  1375. msh.Scale = Vector3.new(x,y,z)
  1376. return msh
  1377. end
  1378. function TweenCFrame(part,cframe,q)
  1379. local c0 = part.CFrame
  1380. for i = -90,90,q do
  1381. local r = ((math.sin(math.rad(i))+1)/2)
  1382. part.CFrame = CFrame.new(c0.p:lerp(cframe.p,r))
  1383. wait()
  1384. end
  1385. end
  1386. function fire()
  1387. mouse=plyr:GetMouse()
  1388. local bul= Part(1,1,1,'',0,false,true,gun)
  1389. m=Mesh(bul,'http://www.roblox.com/asset/?id=9982590',.1,.1,.1)
  1390. bul.CFrame=blade.CFrame
  1391. TweenCFrame(bul,CFrame.new(mouse.Hit.p),50)
  1392. for i=1,5 do wait() m.Scale=m.Scale+Vector3.new(1,1,1)end
  1393. ex=Instance.new("Explosion",workspace) ex.Position=bul.Position
  1394. bul:remove()
  1395. end
  1396. function gune()cant=true
  1397. motor.C0 =CFrame.new(0, -1.5, 0) * CFrame.Angles(0, 0, math.pi/4)
  1398. for angle = 45, 95, 10 do fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), 0,math.rad(-angle/2))wait()end
  1399. gun=Instance.new("Model",char)
  1400. bas2 = Part(1,1,1,'',1,false,false,gun)
  1401. bas2:BreakJoints()
  1402. fakel2 = Instance.new("Weld",gun)
  1403. fakel2.Part0 = char.Torso
  1404. fakel2.Part1 = bas2
  1405. welditbro2 = Instance.new("Weld", gun)
  1406. welditbro2.C0 = CFrame.new(0, 0.5, 0)
  1407. welditbro2.Part0 = char['Left Arm']
  1408. welditbro2.Part1 = bas2
  1409. for angle = 45, 95, 10 do fakel2.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), 0,math.rad(angle/2))wait()end
  1410. cl=Part(.1,.1,.1,'White',0,false,false,gun)
  1411. wl=Weld(cl,blade,0,-.5,0,0,0,0,cl)
  1412. cly=Mesh(cl,1,1,1,1)
  1413. for i=1,10 do wait()cly.Scale=cly.Scale+Vector3.new(0,2.5,0)end
  1414. function onClicked(mouse)fire()end
  1415. end
  1416. function gund()cant=false
  1417. for i=1,10 do wait()cly.Scale=cly.Scale-Vector3.new(0,2.5,0)end
  1418. motor.C0 =CFrame.new(0, -1.1, 0) * CFrame.Angles(math.pi/2, 0, 0)
  1419. gun:remove()
  1420. function onClicked(mouse)anim()end
  1421. for angle = 95, 5, -20 do fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(angle), 0)wait()end
  1422. for angle = 5, 45, 10 do fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(angle/2), math.rad(0))wait()end
  1423. end
  1424. ---swing
  1425. function swing() if cant==true then return end
  1426. for angle = 45, 95, 10 do fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(angle), 0)wait()end
  1427. for angle = 95, 5, -20 do fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(angle), 0)wait()end
  1428. for angle = 5, 45, 10 do fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(angle/2), math.rad(0))wait()end
  1429. end
  1430. ---testmove
  1431. function Test() if cant==true then return end
  1432. for angle = 45, 95, 10 do fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(angle), 0)wait()end
  1433. for angle = 95, 5, -20 do fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(angle), 1)wait()end
  1434. for angle = 5, 45, 10 do fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(angle/2), math.rad(0))wait()end
  1435. end
  1436. ---slash
  1437. function anim() if cant==true then return end
  1438. for angle = 45, 95, 10 do fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(angle/2), 0)wait()end
  1439. for angle = 95, 5, -20 do fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(angle/2), 0)wait()end
  1440. for angle = 5, 45, 10 do fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(angle/2), math.rad(0))wait()end
  1441. end
  1442. tol.Selected:connect(function(mouse)mouse.KeyDown:connect(onKeyDown)
  1443. mouse.Button1Down:connect(function()onClicked(mouse)end)
  1444. function onClicked(mouse)anim()end
  1445. bas = Part(1,1,1,'',1,false,false,char)
  1446. bas:BreakJoints()
  1447. fakel = Instance.new("Weld",char)
  1448. fakel.Part0 = char.Torso
  1449. fakel.Part1 = bas
  1450. coroutine.wrap(function()
  1451. for angle = 0, 45, 5 do
  1452. if fakel == nil then return end
  1453. fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(angle/2), math.rad(0))
  1454. wait()
  1455. end
  1456. end)()
  1457. welditbro = Instance.new("Weld", char)
  1458. welditbro.C0 = CFrame.new(0, 0.5, 0)
  1459. welditbro.Part0 = char['Right Arm']
  1460. welditbro.Part1 = bas
  1461. end)
  1462. function onKeyDown(key)
  1463. key = key:lower()
  1464. if key == "q" then
  1465. swing()end
  1466. if key == "x" then
  1467. Test()end
  1468. if key == "e" then
  1469. le = not le
  1470. if le == true then gune() else gund()
  1471. end end end
  1472.  
  1473. game.Lighting.Outlines = false
  1474.  
  1475.  
  1476. ------credits to stealers if u stole it ur a low life but these are the credits
  1477. print("credits")
  1478. print("ghostbusters1")
  1479. print("jarredbcv")
  1480. print("infocus")
  1481. print("hi")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement