Treyzotic

ironman

Mar 15th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.49 KB | None | 0 0
  1. --Iron Man suit by Kenjunjun, no steal k thx
  2.  
  3. function weld(a, b, parent)
  4. local weld = Instance.new('Weld')
  5. weld.Parent = parent
  6. weld.Part0 = a
  7. weld.Part1 = b
  8. weld.C0 = CFrame.new()
  9. weld.C1 = b.CFrame:inverse() * a.CFrame
  10. return weld;
  11. end
  12.  
  13. ws = game:GetService("Workspace");
  14. plr = ws.epiclightining
  15.  
  16. la = Instance.new("Part", plr);
  17. la.CFrame = plr["Left Arm"].CFrame * CFrame.new(0, -0.5, 0);
  18. la.CanCollide = false;
  19. la.TopSurface = "Smooth";
  20. la.BottomSurface = "Smooth";
  21. la.BrickColor = BrickColor.new("Bright red");
  22. laM = Instance.new("BlockMesh", la);
  23. laM.Scale = Vector3.new(0.3, 2, 0.6);
  24. weld(la, plr["Left Arm"], la);
  25.  
  26. ra = Instance.new("Part", plr);
  27. ra.CFrame = plr["Right Arm"].CFrame * CFrame.new(0, -0.5, 0);
  28. ra.CanCollide = false;
  29. ra.TopSurface = "Smooth";
  30. ra.BottomSurface = "Smooth";
  31. ra.BrickColor = BrickColor.new("Bright red");
  32. raM = Instance.new("BlockMesh", ra);
  33. raM.Scale = Vector3.new(0.3, 2, 0.6);
  34. weld(ra, plr["Right Arm"], la);
  35.  
  36. ll = Instance.new("Part", plr);
  37. ll.CFrame = plr["Left Leg"].CFrame;
  38. ll.CanCollide = false;
  39. ll.TopSurface = "Smooth";
  40. ll.BottomSurface = "Smooth";
  41. ll.BrickColor = BrickColor.new("Bright red");
  42. llM = Instance.new("BlockMesh", ll);
  43. llM.Scale = Vector3.new(0.3, 2, 0.6);
  44. weld(ll, plr["Left Leg"], ll);
  45.  
  46. rl = Instance.new("Part", plr);
  47. rl.CFrame = plr["Right Leg"].CFrame;
  48. rl.CanCollide = false;
  49. rl.TopSurface = "Smooth";
  50. rl.BottomSurface = "Smooth";
  51. rl.BrickColor = BrickColor.new("Bright red");
  52. rlM = Instance.new("BlockMesh", rl);
  53. rlM.Scale = Vector3.new(0.3, 2, 0.6);
  54. weld(rl, plr["Right Leg"], rl);
  55.  
  56. t = Instance.new("Part", plr);
  57. t.CFrame = plr["Right Leg"].CFrame;
  58. t.CanCollide = false;
  59. t.TopSurface = "Smooth";
  60. t.BottomSurface = "Smooth";
  61. t.BrickColor = BrickColor.new("Bright red");
  62. tM = Instance.new("BlockMesh", t);
  63. tM.Scale = Vector3.new(.53, 2, .8);
  64. weld(t, plr["Torso"], t);
  65.  
  66. head = Instance.new("Part", plr);
  67. head.CFrame = plr["Head"].CFrame;
  68. head.CanCollide = false;
  69. head.TopSurface = "Smooth";
  70. head.BottomSurface = "Smooth";
  71. head.BrickColor = BrickColor.new("Bright red");
  72. headM = Instance.new("SpecialMesh", head);
  73. headM.MeshType = 0;
  74. headM.Scale = Vector3.new(0.53, 1.8, 0.8);
  75. weld(head, plr["Head"], head);
  76.  
  77. mask = Instance.new("Part", plr);
  78. mask.CFrame = plr["Head"].CFrame;
  79. mask.CanCollide = false;
  80. mask.TopSurface = "Smooth";
  81. mask.BottomSurface = "Smooth";
  82. mask.BrickColor = BrickColor.new("Bright yellow");
  83. mask.Reflectance = 0.6
  84. maskM = Instance.new("CylinderMesh", mask);
  85. maskM.Scale = Vector3.new(0.7, 0.9, 0.7);
  86. weld(mask, plr["Head"], mask);
  87. mask.Weld.C0 = mask.Weld.C0 * CFrame.new(0, 0, 0.15);
  88.  
  89. leye = Instance.new("Part", plr);
  90. leye.CFrame = plr["Right Leg"].CFrame;
  91. leye.CanCollide = false;
  92. leye.TopSurface = "Smooth";
  93. leye.BottomSurface = "Smooth";
  94. leye.BrickColor = BrickColor.new("Institutional white");
  95. leye.Reflectance = 0.5;
  96. leyeM = Instance.new("BlockMesh", leye);
  97. leyeM.Scale = Vector3.new(0.1, 0.1, 0.5);
  98. weld(leye, plr["Head"], leye);
  99. leye.Weld.C0 = leye.Weld.C0 * CFrame.new(0.3, 0, 0.35);
  100.  
  101. reye = Instance.new("Part", plr);
  102. reye.CFrame = plr["Right Leg"].CFrame;
  103. reye.CanCollide = false;
  104. reye.TopSurface = "Smooth";
  105. reye.BottomSurface = "Smooth";
  106. reye.BrickColor = BrickColor.new("Institutional white");
  107. reye.Reflectance = 0.5;
  108. reyeM = Instance.new("BlockMesh", reye);
  109. reyeM.Scale = Vector3.new(0.1, 0.1, 0.5);
  110. weld(reye, plr["Head"], reye);
  111. reye.Weld.C0 = reye.Weld.C0 * CFrame.new(-0.3, 0, 0.35);
  112.  
  113. heart = Instance.new("Part", plr);
  114. heart.CFrame = plr["Torso"].CFrame;
  115. heart.CanCollide = false;
  116. heart.TopSurface = "Smooth";
  117. heart.BottomSurface = "Smooth";
  118. heart.BrickColor = BrickColor.new("Institutional white");
  119. heart.Reflectance = 0.8;
  120. heart.Transparency = 0.2;
  121. heartM = Instance.new("CylinderMesh", heart);
  122. heartM.Scale = Vector3.new(1, 1, 0.3);
  123. weld(heart, plr["Torso"], heart);
  124. heart.Weld.C0 = heart.Weld.C0 * CFrame.Angles(89.5, 0, 0) * CFrame.new(0, -0.55, 0.3);
  125.  
  126. rlaser = Instance.new("Part", plr);
  127. rlaser.CFrame = plr["Torso"].CFrame;
  128. rlaser.CanCollide = false;
  129. rlaser.TopSurface = "Smooth";
  130. rlaser.BottomSurface = "Smooth";
  131. rlaser.BrickColor = BrickColor.new("Institutional white");
  132. rlaser.Reflectance = 0.8;
  133. rlaser.Transparency = 0.2;
  134. rlaserM = Instance.new("CylinderMesh", rlaser);
  135. rlaserM.Scale = Vector3.new(1, 1, 0.3);
  136. weld(rlaser, ra, rlaser);
  137. rlaser.Weld.C0 = rlaser.Weld.C0 * CFrame.new(0, 0.7, 0);
  138.  
  139. llaser = Instance.new("Part", plr);
  140. llaser.CFrame = plr["Torso"].CFrame;
  141. llaser.CanCollide = false;
  142. llaser.TopSurface = "Smooth";
  143. llaser.BottomSurface = "Smooth";
  144. llaser.BrickColor = BrickColor.new("Institutional white");
  145. llaser.Reflectance = 0.8;
  146. llaser.Transparency = 0.2;
  147. llaserM = Instance.new("CylinderMesh", llaser);
  148. llaserM.Scale = Vector3.new(1, 1, 0.3);
  149. weld(llaser, la, llaser);
  150. llaser.Weld.C0 = llaser.Weld.C0 * CFrame.new(0, 0.7, 0);
  151.  
  152. lshldr = Instance.new("Part", plr);
  153. lshldr.CFrame = la.CFrame;
  154. lshldr.CanCollide = false;
  155. lshldr.TopSurface = "Smooth";
  156. lshldr.BottomSurface = "Smooth";
  157. lshldr.BrickColor = BrickColor.new("Bright yellow");
  158. lshldr.Reflectance = 0.6;
  159. lshldrM = Instance.new("BlockMesh", lshldr);
  160. lshldrM.Scale = Vector3.new(0.1, 1, 0.7);
  161. weld(lshldr, la, lshldr);
  162. lshldr.Weld.C0 = lshldr.Weld.C0 * CFrame.new(-0.35, -0.7, 0);
  163.  
  164. rshldr = Instance.new("Part", plr);
  165. rshldr.CFrame = ra.CFrame;
  166. rshldr.CanCollide = false;
  167. rshldr.TopSurface = "Smooth";
  168. rshldr.BottomSurface = "Smooth";
  169. rshldr.BrickColor = BrickColor.new("Bright yellow");
  170. rshldr.Reflectance = 0.6;
  171. rshldrM = Instance.new("BlockMesh", rshldr);
  172. rshldrM.Scale = Vector3.new(0.1, 1, 0.7);
  173. weld(rshldr, ra, rshldr);
  174. rshldr.Weld.C0 = rshldr.Weld.C0 * CFrame.new(0.35, -0.7, 0);
  175.  
  176. las = Instance.new("Part", plr);
  177. las.CFrame = ra.CFrame;
  178. las.CanCollide = false;
  179. las.TopSurface = "Smooth";
  180. las.BottomSurface = "Smooth";
  181. las.BrickColor = BrickColor.new("Bright yellow");
  182. las.Reflectance = 0.6;
  183. lasM = Instance.new("BlockMesh", las);
  184. lasM.Scale = Vector3.new(0.35, 1.4, 0.65);
  185. weld(las, la, las);
  186. las.Weld.C0 = las.Weld.C0 * CFrame.new(0.05, -0.2, 0);
  187.  
  188. ras = Instance.new("Part", plr);
  189. ras.CFrame = ra.CFrame;
  190. ras.CanCollide = false;
  191. ras.TopSurface = "Smooth";
  192. ras.BottomSurface = "Smooth";
  193. ras.BrickColor = BrickColor.new("Bright yellow");
  194. ras.Reflectance = 0.6;
  195. rasM = Instance.new("BlockMesh", ras);
  196. rasM.Scale = Vector3.new(0.3, 1.4, 0.65);
  197. weld(ras, ra, ras);
  198. ras.Weld.C0 = ras.Weld.C0 * CFrame.new(-0.05, -0.2, 0);
  199.  
  200. lls = Instance.new("Part", plr);
  201. lls.CFrame = ll.CFrame;
  202. lls.CanCollide = false;
  203. lls.TopSurface = "Smooth";
  204. lls.BottomSurface = "Smooth";
  205. lls.BrickColor = BrickColor.new("Bright yellow");
  206. lls.Reflectance = 0.6;
  207. llsM = Instance.new("BlockMesh", lls);
  208. llsM.Scale = Vector3.new(0.31, 1, 0.65);
  209. weld(lls, ll, lls);
  210.  
  211. rls = Instance.new("Part", plr);
  212. rls.Name = "Handle";
  213. rls.CFrame = rl.CFrame;
  214. rls.CanCollide = false;
  215. rls.TopSurface = "Smooth";
  216. rls.BottomSurface = "Smooth";
  217. rls.BrickColor = BrickColor.new("Bright yellow");
  218. rls.Reflectance = 0.6;
  219. rlsM = Instance.new("BlockMesh", rls);
  220. rlsM.Scale = Vector3.new(0.31, 1, 0.65);
  221. weld(rls, rl, rls);
  222.  
  223. plrC = game.Players:GetPlayerFromCharacter(plr);
  224. laser = Instance.new("HopperBin", plrC.Backpack);
  225. laser.Name = "Laser";
  226.  
  227. laser.Selected:connect(function(mouse)
  228. print("Selected");
  229. plr.Animate.Disabled = true; --ugly, yolo
  230. plr.Torso["Right Shoulder"].DesiredAngle = 1.57;
  231. plr.Humanoid.WalkSpeed = 0;
  232.  
  233. mouse.Button1Down:connect(function()
  234.  
  235. end)
  236.  
  237. laser.Deselected:connect(function(mouse)
  238. plr.Animate.Disabled = false;
  239. plr.Humanoid.WalkSpeed = 16;
  240. end)
  241. end)
Add Comment
Please, Sign In to add comment