Advertisement
Laith8888

Roblox Omega Suit script

Feb 8th, 2018
971
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.11 KB | None | 0 0
  1. local Player = "The_N0rm"
  2. local Character = game:GetService("Players"):findFirstChild(Player).Character
  3. local Backpack = game:GetService("Players"):findFirstChild(Player).Backpack
  4. local Primary_Color = "Black" -- Change this to any color you like.
  5. local Secondary_Color = "Bright blue" -- 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. 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)
  68. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0, 0))
  69. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.01, 0.85, 1.01))
  70. 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)
  71. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Leg"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0, 0))
  72. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.01, 0.85, 1.01))
  73. 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)
  74. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Leg"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0, 0))
  75. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.01, 0.85, 1.01))
  76. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Torso").Size, CFrame.new(0, 5, 0), Primary_Color, false, false, true, 0, 0)
  77. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Torso"), 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. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Head").Size, CFrame.new(0, 5, 0), Primary_Color, false, false, true, 0, 0)
  80. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Head"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0, 0))
  81. createMesh("SpecialMesh", Model:findFirstChild(Number), "Head", Vector3.new(1.25, 1.01, 1.25))
  82. 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)
  83. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0.8, 0))
  84. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.20, 0.15, 1.20))
  85. 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)
  86. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0.9, 0))
  87. createMesh("CylinderMesh", Model:findFirstChild(Number), "None", Vector3.new(0.55, 0.15, 0.55))
  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. 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)
  92. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, -0.9, 0))
  93. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.55, 0.15, 0.55))
  94. 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)
  95. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(-0.3, 0, 0))
  96. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.40, 0.52, 1.03))
  97. 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)
  98. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0.3, 0, 0))
  99. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.40, 0.52, 1.03))
  100. 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)
  101. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0.8, 0))
  102. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.21, 0.05, 1.21))
  103. 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)
  104. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, -0.8, 0))
  105. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.21, 0.05, 1.21))
  106. 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)
  107. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 1.1, 0))
  108. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.15, 0.50, 0.15))
  109. 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)
  110. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 1.1, 0))
  111. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.15, 0.50, 0.15))
  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, 1.5, 0))
  114. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.55, 0.20, 0.55))
  115. 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)
  116. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Arm"), CFrame.fromEulerAnglesXYZ(1.6, 0, 0), CFrame.new(0, -0.3, -1.5))
  117. createMesh("CylinderMesh", Model:findFirstChild(Number), "None", Vector3.new(0.20, 0.20, 0.20))
  118. 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)
  119. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0.8, 0))
  120. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.20, 0.15, 1.20))
  121. 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)
  122. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0.9, 0))
  123. createMesh("CylinderMesh", Model:findFirstChild(Number), "None", Vector3.new(0.55, 0.15, 0.55))
  124. 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)
  125. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, -0.8, 0))
  126. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.20, 0.15, 1.20))
  127. 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)
  128. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, -0.9, 0))
  129. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.55, 0.15, 0.55))
  130. 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)
  131. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(-0.3, 0, 0))
  132. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.40, 0.52, 1.03))
  133. 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)
  134. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0.3, 0, 0))
  135. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.40, 0.52, 1.03))
  136. 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)
  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.21, 0.05, 1.21))
  139. 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)
  140. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, -0.8, 0))
  141. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.21, 0.05, 1.21))
  142. 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)
  143. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 1.1, 0))
  144. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.15, 0.50, 0.15))
  145. 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)
  146. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 1.1, 0))
  147. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.15, 0.50, 0.15))
  148. 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)
  149. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Arm"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 1.5, 0))
  150. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.55, 0.20, 0.55))
  151. 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)
  152. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Arm"), CFrame.fromEulerAnglesXYZ(1.6, 0, 0), CFrame.new(0, -0.3, -1.5))
  153. createMesh("CylinderMesh", Model:findFirstChild(Number), "None", Vector3.new(0.20, 0.20, 0.20))
  154. 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)
  155. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Leg"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0.8, 0))
  156. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.20, 0.15, 1.20))
  157. 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)
  158. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Leg"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, -0.8, 0))
  159. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.20, 0.15, 1.20))
  160. 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)
  161. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Leg"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(-0.3, 0, 0))
  162. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.40, 0.52, 1.03))
  163. 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)
  164. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Leg"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0.3, 0, 0))
  165. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.40, 0.52, 1.03))
  166. 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)
  167. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Leg"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0.8, 0))
  168. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.21, 0.05, 1.21))
  169. 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)
  170. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Left Leg"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, -0.8, 0))
  171. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.21, 0.05, 1.21))
  172. 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)
  173. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Leg"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0.8, 0))
  174. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.20, 0.15, 1.20))
  175. 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)
  176. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Leg"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, -0.8, 0))
  177. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.20, 0.15, 1.20))
  178. 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)
  179. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Leg"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(-0.3, 0, 0))
  180. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.40, 0.52, 1.03))
  181. 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)
  182. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Leg"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0.3, 0, 0))
  183. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.40, 0.52, 1.03))
  184. 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)
  185. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Leg"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0.8, 0))
  186. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.21, 0.05, 1.21))
  187. 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)
  188. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Right Leg"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, -0.8, 0))
  189. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(1.21, 0.05, 1.21))
  190. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Head").Size, CFrame.new(0, 5, 0), Secondary_Color, false, false, true, 0, 0)
  191. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Head"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0.2, -0.5))
  192. createMesh("SpecialMesh", Model:findFirstChild(Number), "Sphere", Vector3.new(0.40, 0.15, 0.40))
  193. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Torso").Size, CFrame.new(0, 5, 0), Secondary_Color, false, false, true, 0, 0)
  194. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Torso"), CFrame.fromEulerAnglesXYZ(0, 0, 1.57), CFrame.new(0, 0, 0))
  195. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.15, 0.83, 1.03))
  196. createPart(Model, Number, Vector3.new(0, 0, 0), Character:findFirstChild("Torso").Size, CFrame.new(0, 5, 0), Secondary_Color, false, false, true, 0, 0)
  197. createWeld(Model:findFirstChild(Number), Character:findFirstChild("Torso"), CFrame.fromEulerAnglesXYZ(0, 0, 0), CFrame.new(0, 0, 0))
  198. createMesh("BlockMesh", Model:findFirstChild(Number), "None", Vector3.new(0.15, 0.83, 1.03))
  199. if (script.Parent.className ~= "HopperBin") then
  200. HopperBin = Instance.new("HopperBin")
  201. HopperBin.Parent = Backpack
  202. HopperBin.Name = "Lasers"
  203. script.Parent = HopperBin
  204. end
  205. HopperBin = script.Parent
  206. function onButton1Down(Mouse)
  207. local partC = Model:findFirstChild("18")
  208. local Place0 = CFrame.new(partC.CFrame.x, partC.CFrame.y, partC.CFrame.z)
  209. local Place1 = Mouse.Hit.p
  210. local partC2 = Model:findFirstChild("30")
  211. local Place2 = CFrame.new(partC2.CFrame.x, partC2.CFrame.y, partC2.CFrame.z)
  212. local Part1 = Instance.new("Part")
  213. Part1.Parent = Model
  214. Part1.Name = "Laser 1"
  215. Part1.Position = Vector3.new(0, 0, 0)
  216. Part1.Size = Vector3.new(math.random(0.5,1.31),math.random(0.5,1.31),math.random(0.5,1.31))
  217. Part1.CFrame = CFrame.new((Place0.p + Place1) / 2, Place0.p)
  218. Part1.BrickColor = BrickColor.new(Secondary_Color) -- Leave this be, or change it to a color available on ROBLOX.
  219. Part1.Locked = true
  220. Part1.Anchored = true
  221. Part1.CanCollide = false
  222. Part1.BottomSurface = "Smooth"
  223. Part1.TopSurface = "Smooth"
  224. local Part2 = Instance.new("Part")
  225. Part2.Parent = Model
  226. Part2.Name = "Laser 2"
  227. Part2.Position = Vector3.new(0, 0, 0)
  228. Part2.Size = Vector3.new(math.random(0.5,1.31),math.random(0.5,1.31),math.random(0.5,1.31))
  229. Part2.CFrame = CFrame.new((Place2.p + Place1) / 2, Place2.p)
  230. Part2.BrickColor = BrickColor.new(Secondary_Color) -- Leave this be, or change it to a color available on ROBLOX.
  231. Part2.Locked = true
  232. Part2.Anchored = true
  233. Part2.CanCollide = false
  234. Part2.BottomSurface = "Smooth"
  235. Part2.TopSurface = "Smooth"
  236. local BlockMesh = Instance.new("BlockMesh")
  237. BlockMesh.Parent = Part1
  238. BlockMesh.Scale = Vector3.new(0.08, 0.08, (Place0.p - Place1).magnitude)
  239. local BlockMesh = Instance.new("BlockMesh")
  240. BlockMesh.Parent = Part2
  241. BlockMesh.Scale = Vector3.new(0.08, 0.08, (Place2.p - Place1).magnitude)
  242. if (Mouse.Target ~= nil) then
  243. Humanoid = Mouse.Target.Parent:findFirstChild("Humanoid")
  244. if (Humanoid ~= nil) then
  245. game.Workspace.Lollypop647.Humanoid.Health=Humanoid.Health + 0
  246. Humanoid.Health=Humanoid.Health - 100
  247. end
  248. end
  249. while true do
  250. Place0 = CFrame.new(partC.CFrame.x, partC.CFrame.y, partC.CFrame.z)
  251. Place2 = CFrame.new(partC2.CFrame.x, partC2.CFrame.y, partC2.CFrame.z)
  252. Part1.Transparency = Part1.Transparency + 0.086
  253. Part2.Transparency = Part2.Transparency + 0.086
  254. Part1.CFrame = CFrame.new((Place0.p + Place1) / 2, Place0.p)
  255. Part2.CFrame = CFrame.new((Place2.p + Place1) / 2, Place2.p)
  256. BlockMesh.Scale = Vector3.new(0.06, 0.06, (Place0.p - Place1).magnitude)
  257. BlockMesh.Scale = Vector3.new(0.06, 0.06, (Place2.p - Place1).magnitude)
  258. if (Part1.Transparency > 1) then
  259. Part1:Remove()
  260. Part2:Remove()
  261. break
  262. end
  263. wait()
  264. end
  265. end
  266. function onHopperBinSelected(Mouse)
  267. Mouse.Button1Down:connect(function() onButton1Down(Mouse) end)
  268. end
  269. HopperBin.Selected:connect(onHopperBinSelected)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement