Advertisement
KHSora455

Red Suit

Feb 14th, 2015
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.25 KB | None | 0 0
  1. local Player = "Sora295"
  2. local Character = game:GetService("Players"):findFirstChild(Player).Character
  3. local Backpack = game:GetService("Players"):findFirstChild(Player).Backpack
  4. local Primary_Color = "Really red" -- Change this to any color you like.
  5. local Secondary_Color = "Really black" -- Secondary color
  6. local Number = 1
  7. local Face = Character:findFirstChild("Head"):findFirstChild("face")
  8. for _,Character in pairs(Character:GetChildren()) do
  9. if (Character.Name == Player.. "'s Omega{Suit}") then
  10. Character:Remove()
  11. elseif (Character.className == "Hat") then
  12. Character:Remove()
  13. elseif (Character.className == "Part") then
  14. Character.Transparency = 1
  15. end
  16. end
  17. if (Face ~= nil) then
  18. Face:Remove()
  19. end
  20. local Model = Instance.new("Model")
  21. Model.Parent = Character
  22. Model.Name = Player.. "'s Omega{Suit}"
  23. function createPart(Parent, Name, Position, Size, CFrame, Color, Anchored, CanCollide, Locked, Transparency, Reflectance)
  24. local Part = Instance.new("Part")
  25. Part.Parent = Parent
  26. Part.Name = Name
  27. Part.Position = Position
  28. Part.Size = Size
  29. Part.CFrame = CFrame
  30. Part.BrickColor = BrickColor.new(Color)
  31. Part.Anchored = Anchored
  32. Part.CanCollide = CanCollide
  33. Part.Locked = Locked
  34. Part.Transparency = Transparency
  35. Part.Reflectance = Reflectance
  36. Part.TopSurface = "Smooth"
  37. Part.BottomSurface = "Smooth"
  38. Part:BreakJoints()
  39. end
  40. function createWeld(Parent, Part1, CFrameXYZ, CFrame)
  41. local Weld = Instance.new("Weld")
  42. Weld.Parent = Parent
  43. Weld.Part0 = Parent
  44. Weld.Part1 = Part1
  45. Weld.C1 = CFrameXYZ * CFrame
  46. end
  47. function createMesh(Type, Parent, MeshType, Scale)
  48. if (Type == "SpecialMesh") then
  49. local SpecialMesh = Instance.new("SpecialMesh")
  50. SpecialMesh.Parent = Parent
  51. SpecialMesh.MeshType = MeshType
  52. SpecialMesh.Scale = Scale
  53. elseif (Type == "BlockMesh") then
  54. local BlockMesh = Instance.new("BlockMesh")
  55. BlockMesh.Parent = Parent
  56. BlockMesh.Scale = Scale
  57. elseif (Type == "CylinderMesh") then
  58. local CylinderMesh = Instance.new("CylinderMesh")
  59. CylinderMesh.Parent = Parent
  60. CylinderMesh.Scale = Scale
  61. end
  62. Number = Number + 1
  63. end
  64. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Left Arm").Size, CFrame.new(0, 5, 0), Primary_Color, false, false, true, 0, 0)
  65. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0, 0))
  66. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.01, 0.85, 1.01))
  67.  
  68. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Right Arm").Size, CFrame.new(0, 5, 0), Primary_Color, false, false, true, 0, 0)
  69. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0, 0))
  70. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.01, 0.85, 1.01))
  71.  
  72. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Left Leg").Size, CFrame.new(0, 5, 0), Primary_Color, false, false, true, 0, 0)
  73. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Leg"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0, 0))
  74. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.01, 0.85, 1.01))
  75.  
  76. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Right Leg").Size, CFrame.new(0, 5, 0), Primary_Color, false, false, true, 0, 0)
  77. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Leg"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0, 0))
  78. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.01, 0.85, 1.01))
  79.  
  80. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Torso").Size, CFrame.new(0, 5, 0), Primary_Color, false, false, true, 0, 0)
  81. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Torso"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0, 0))
  82. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.01, 0.85, 1.01))
  83.  
  84. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Head").Size, CFrame.new(0, 5, 0), Primary_Color, false, false, true, 0, 0)
  85. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Head"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0, 0))
  86. createMesh("SpecialMesh", Model:findFirstChild(Number), "Head", Vector3.new(1.25, 1.01, 1.25))
  87.  
  88. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Left Arm").Size, CFrame.new(0, 5, 0), Secondary_Color, false, false, true, 0, 0)
  89. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0.8, 0))
  90. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.20, 0.15, 1.20))
  91.  
  92. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Left Arm").Size, CFrame.new(0, 5, 0), Secondary_Color, false, false, true, 0, 0)
  93. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0.9, 0))
  94. createMesh("CylinderMesh", Model:findFirstChild(Number), "None", Vector3.new(0.55, 0.15, 0.55))
  95.  
  96. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Left Arm").Size, CFrame.new(0, 5, 0), Secondary_Color, false, false, true, 0, 0)
  97. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, -0.8, 0))
  98. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.20, 0.15, 1.20))
  99.  
  100. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Left Arm").Size, CFrame.new(0, 5, 0), Secondary_Color, false, false, true, 0, 0)
  101. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, -0.9, 0))
  102. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.55, 0.15, 0.55))
  103.  
  104. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Left Arm").Size, CFrame.new(0, 5, 0), Secondary_Color, false, false, true, 0, 0)
  105. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(-0.3, 0, 0))
  106. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.40, 0.52, 1.03))
  107.  
  108. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Left Arm").Size, CFrame.new(0, 5, 0), Secondary_Color, false, false, true, 0, 0)
  109. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0.3, 0, 0))
  110. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.40, 0.52, 1.03))
  111.  
  112. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Left Arm").Size, CFrame.new(0, 5, 0), Primary_Color, false, false, true, 0, 0)
  113. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0.8, 0))
  114. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.21, 0.05, 1.21))
  115.  
  116. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Left Arm").Size, CFrame.new(0, 5, 0), Primary_Color, false, false, true, 0, 0)
  117. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, -0.8, 0))
  118. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.21, 0.05, 1.21))
  119.  
  120. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Left Arm").Size, CFrame.new(0, 5, 0), Primary_Color, false, false, true, 0, 0)
  121. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 1.1, 0))
  122. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.15, 0.50, 0.15))
  123.  
  124. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Left Arm").Size, CFrame.new(0, 5, 0), Primary_Color, false, false, true, 0, 0)
  125. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 1.1, 0))
  126. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.15, 0.50, 0.15))
  127.  
  128. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Left Arm").Size, CFrame.new(0, 5, 0), Primary_Color, false, false, true, 0, 0)
  129. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 1.5, 0))
  130. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.55, 0.20, 0.55))
  131.  
  132. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Left Arm").Size, CFrame.new(0, 5, 0), Secondary_Color, false, false, true, 0, 0)
  133. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Arm"), CFrame.fromEulerAnglesXYZ(1.6, 0, 0), CFrame.new(0, -0.3, -1.5))
  134. createMesh("CylinderMesh", Model:findFirstChild(Number), "None", Vector3.new(0.20, 0.20, 0.20))
  135.  
  136. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Right Arm").Size, CFrame.new(0, 5, 0), Secondary_Color, false, false, true, 0, 0)
  137. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0.8, 0))
  138. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.20, 0.15, 1.20))
  139.  
  140. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Right Arm").Size, CFrame.new(0, 5, 0), Secondary_Color, false, false, true, 0, 0)
  141. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0.9, 0))
  142. createMesh("CylinderMesh", Model:findFirstChild(Number), "None", Vector3.new(0.55, 0.15, 0.55))
  143.  
  144. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Right Arm").Size, CFrame.new(0, 5, 0), Secondary_Color, false, false, true, 0, 0)
  145. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, -0.8, 0))
  146. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.20, 0.15, 1.20))
  147.  
  148. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Right Arm").Size, CFrame.new(0, 5, 0), Secondary_Color, false, false, true, 0, 0)
  149. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, -0.9, 0))
  150. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.55, 0.15, 0.55))
  151.  
  152. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Right Arm").Size, CFrame.new(0, 5, 0), Secondary_Color, false, false, true, 0, 0)
  153. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(-0.3, 0, 0))
  154. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.40, 0.52, 1.03))
  155.  
  156. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Right Arm").Size, CFrame.new(0, 5, 0), Secondary_Color, false, false, true, 0, 0)
  157. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0.3, 0, 0))
  158. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.40, 0.52, 1.03))
  159.  
  160. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Right Arm").Size, CFrame.new(0, 5, 0), Primary_Color, false, false, true, 0, 0)
  161. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0.8, 0))
  162. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.21, 0.05, 1.21))
  163.  
  164. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Right Arm").Size, CFrame.new(0, 5, 0), Primary_Color, false, false, true, 0, 0)
  165. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, -0.8, 0))
  166. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.21, 0.05, 1.21))
  167.  
  168. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Right Arm").Size, CFrame.new(0, 5, 0), Primary_Color, false, false, true, 0, 0)
  169. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 1.1, 0))
  170. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.15, 0.50, 0.15))
  171.  
  172. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Right Arm").Size, CFrame.new(0, 5, 0), Primary_Color, false, false, true, 0, 0)
  173. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 1.1, 0))
  174. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.15, 0.50, 0.15))
  175.  
  176. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Right Arm").Size, CFrame.new(0, 5, 0), Primary_Color, false, false, true, 0, 0)
  177. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 1.5, 0))
  178. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.55, 0.20, 0.55))
  179.  
  180. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Right Arm").Size, CFrame.new(0, 5, 0), Secondary_Color, false, false, true, 0, 0)
  181. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Arm"), CFrame.fromEulerAnglesXYZ(1.6, 0, 0), CFrame.new(0, -0.3, -1.5))
  182. createMesh("CylinderMesh", Model:findFirstChild(Number), "None", Vector3.new(0.20, 0.20, 0.20))
  183.  
  184. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Left Leg").Size, CFrame.new(0, 5, 0), Secondary_Color, false, false, true, 0, 0)
  185. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Leg"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0.8, 0))
  186. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.20, 0.15, 1.20))
  187.  
  188. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Left Leg").Size, CFrame.new(0, 5, 0), Secondary_Color, false, false, true, 0, 0)
  189. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Leg"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, -0.8, 0))
  190. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.20, 0.15, 1.20))
  191.  
  192. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Left Leg").Size, CFrame.new(0, 5, 0), Secondary_Color, false, false, true, 0, 0)
  193. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Leg"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(-0.3, 0, 0))
  194. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.40, 0.52, 1.03))
  195.  
  196. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Left Leg").Size, CFrame.new(0, 5, 0), Secondary_Color, false, false, true, 0, 0)
  197. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Leg"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0.3, 0, 0))
  198. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.40, 0.52, 1.03))
  199.  
  200. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Left Leg").Size, CFrame.new(0, 5, 0), Primary_Color, false, false, true, 0, 0)
  201. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Leg"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0.8, 0))
  202. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.21, 0.05, 1.21))
  203.  
  204. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Left Leg").Size, CFrame.new(0, 5, 0), Primary_Color, false, false, true, 0, 0)
  205. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Leg"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, -0.8, 0))
  206. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.21, 0.05, 1.21))
  207.  
  208. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Right Leg").Size, CFrame.new(0, 5, 0), Secondary_Color, false, false, true, 0, 0)
  209. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Leg"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0.8, 0))
  210. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.20, 0.15, 1.20))
  211.  
  212. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Right Leg").Size, CFrame.new(0, 5, 0), Secondary_Color, false, false, true, 0, 0)
  213. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Leg"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, -0.8, 0))
  214. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.20, 0.15, 1.20))
  215.  
  216. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Right Leg").Size, CFrame.new(0, 5, 0), Secondary_Color, false, false, true, 0, 0)
  217. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Leg"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(-0.3, 0, 0))
  218. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.40, 0.52, 1.03))
  219.  
  220. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Right Leg").Size, CFrame.new(0, 5, 0), Secondary_Color, false, false, true, 0, 0)
  221. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Leg"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0.3, 0, 0))
  222. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.40, 0.52, 1.03))
  223.  
  224. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Right Leg").Size, CFrame.new(0, 5, 0), Primary_Color, false, false, true, 0, 0)
  225. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Leg"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0.8, 0))
  226. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.21, 0.05, 1.21))
  227.  
  228. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Right Leg").Size, CFrame.new(0, 5, 0), Primary_Color, false, false, true, 0, 0)
  229. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Leg"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, -0.8, 0))
  230. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.21, 0.05, 1.21))
  231.  
  232. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Head").Size, CFrame.new(0, 5, 0), Secondary_Color, false, false, true, 0, 0)
  233. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Head"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0.2, -0.5))
  234. createMesh("SpecialMesh", Model:findFirstChild(Number), "Sphere", Vector3.new(0.40, 0.15, 0.40))
  235.  
  236. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Torso").Size, CFrame.new(0, 5, 0), Secondary_Color, false, false, true, 0, 0)
  237. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Torso"), CFrame.fromEulerAnglesXYZ(0, 0, 1.57), CFrame.new(0, 0, 0))
  238. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.15, 0.83, 1.03))
  239.  
  240. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Torso").Size, CFrame.new(0, 5, 0), Secondary_Color, false, false, true, 0, 0)
  241. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Torso"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0, 0))
  242. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.15, 0.83, 1.03))
  243.  
  244. if (script.Parent.className ~= "HopperBin") then
  245. HopperBin = Instance.new("HopperBin")
  246. HopperBin.Parent = Backpack
  247. HopperBin.Name = "Lasers"
  248. script.Parent = HopperBin
  249. end
  250. HopperBin = script.Parent
  251. function onButton1Down(Mouse)
  252. local partC = Model:findFirstChild("18")
  253. local Place0 = CFrame.new(partC.CFrame.x, partC.CFrame.y, partC.CFrame.z)
  254. local Place1 = Mouse.Hit.p
  255. local partC2 = Model:findFirstChild("30")
  256. local Place2 = CFrame.new(partC2.CFrame.x, partC2.CFrame.y, partC2.CFrame.z)
  257. local Part1 = Instance.new("Part")
  258. Part1.Parent = Model
  259. Part1.Name = "Laser 1"
  260. Part1.Position = Vector3.new(0, 0, 0)
  261. Part1.Size = Vector3.new(math.random(0.5,1.31),math.random(0.5,1.31),math.random(0.5,1.31))
  262. Part1.CFrame = CFrame.new((Place0.p + Place1) / 2, Place0.p)
  263. Part1.BrickColor = BrickColor.new(Secondary_Color) -- Leave this be, or change it to a color available on ROBLOX.
  264. Part1.Locked = true
  265. Part1.Anchored = true
  266. Part1.CanCollide = false
  267. Part1.BottomSurface = "Smooth"
  268. Part1.TopSurface = "Smooth"
  269. local Part2 = Instance.new("Part")
  270. Part2.Parent = Model
  271. Part2.Name = "Laser 2"
  272. Part2.Position = Vector3.new(0, 0, 0)
  273. Part2.Size = Vector3.new(math.random(0.5,1.31),math.random(0.5,1.31),math.random(0.5,1.31))
  274. Part2.CFrame = CFrame.new((Place2.p + Place1) / 2, Place2.p)
  275. Part2.BrickColor = BrickColor.new(Secondary_Color) -- Leave this be, or change it to a color available on ROBLOX.
  276. Part2.Locked = true
  277. Part2.Anchored = true
  278. Part2.CanCollide = false
  279. Part2.BottomSurface = "Smooth"
  280. Part2.TopSurface = "Smooth"
  281. local BlockMesh = Instance.new("BlockMesh")
  282. BlockMesh.Parent = Part1
  283. BlockMesh.Scale = Vector3.new(0.08, 0.08, (Place0.p - Place1).magnitude)
  284. local BlockMesh = Instance.new("BlockMesh")
  285. BlockMesh.Parent = Part2
  286. BlockMesh.Scale = Vector3.new(0.08, 0.08, (Place2.p - Place1).magnitude)
  287. if (Mouse.Target ~= nil) then
  288. Humanoid = Mouse.Target.Parent:findFirstChild("Humanoid")
  289. if (Humanoid ~= nil) then
  290. game.Workspace.Lollypop647.Humanoid.Health=Humanoid.Health + 0
  291. Humanoid.Health=Humanoid.Health - 100
  292. end
  293. end
  294. while true do
  295. Place0 = CFrame.new(partC.CFrame.x, partC.CFrame.y, partC.CFrame.z)
  296. Place2 = CFrame.new(partC2.CFrame.x, partC2.CFrame.y, partC2.CFrame.z)
  297. Part1.Transparency = Part1.Transparency + 0.086
  298. Part2.Transparency = Part2.Transparency + 0.086
  299. Part1.CFrame = CFrame.new((Place0.p + Place1) / 2, Place0.p)
  300. Part2.CFrame = CFrame.new((Place2.p + Place1) / 2, Place2.p)
  301. BlockMesh.Scale = Vector3.new(0.06, 0.06, (Place0.p - Place1).magnitude)
  302. BlockMesh.Scale = Vector3.new(0.06, 0.06, (Place2.p - Place1).magnitude)
  303. if (Part1.Transparency > 1) then
  304. Part1:Remove()
  305. Part2:Remove()
  306. break
  307. end
  308. wait()
  309. end
  310. end
  311. function onHopperBinSelected(Mouse)
  312. Mouse.Button1Down:connect(function() onButton1Down(Mouse) end)
  313. end
  314. HopperBin.Selected:connect(onHopperBinSelected)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement