Advertisement
SetsunaElysia

Manotech Armor

Jan 14th, 2017
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.38 KB | None | 0 0
  1. local player = "LocalPlayer"
  2. local Character = game.Players[player].Character
  3. it = Instance.new
  4. vt = Vector3.new
  5. cf = CFrame.new
  6. euler = CFrame.fromEulerAnglesXYZ
  7. angles = CFrame.Angles
  8. mr = math.rad
  9. local decreaseatk = 0
  10. local decreasedef = 0
  11. local decreasemvmt = 0
  12. local Anim = "Idle"
  13. local Effects = {}
  14. local armorparts = {}
  15. local armorwelds = {}
  16. local weaponparts = {}
  17. local weaponwelds = {}
  18. local Hands = {}
  19. local necko = euler(0, 0, 0) * cf(0, 1.3, 0)
  20. local attack = false
  21. local jump = false
  22. local start = false
  23. local move = 10
  24. local hitfloor, posfloor = nil, nil
  25. local run = Instance.new("NumberValue")
  26. run.Name = "DecreaseMvmt"
  27. run.Value = -0.5
  28. local bName = "Manotech"
  29. local MainColor = BrickColor.new("Institutional white")
  30. NoOutline = function(Part)
  31. Part.TopSurface = 10
  32. end
  33. part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  34. local fp = it("Part")
  35. fp.formFactor = formfactor
  36. fp.Parent = parent
  37. fp.Reflectance = reflectance
  38. fp.Transparency = transparency
  39. fp.CanCollide = false
  40. fp.Locked = true
  41. fp.BrickColor = brickcolor
  42. fp.Name = name
  43. fp.Size = size
  44. NoOutline(fp)
  45. fp.Material = "SmoothPlastic"
  46. fp:BreakJoints()
  47. return fp
  48. end
  49. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  50. local mesh = it(Mesh)
  51. mesh.Parent = part
  52. if Mesh == "SpecialMesh" then
  53. mesh.MeshType = meshtype
  54. if meshid ~= "nil" then
  55. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  56. end
  57. end
  58. mesh.Offset = offset
  59. mesh.Scale = scale
  60. return mesh
  61. end
  62. weld = function(parent, part0, part1, c0)
  63. local weld = it("Motor6D")
  64. weld.Parent = parent
  65. weld.Part0 = part0
  66. weld.Part1 = part1
  67. weld.C0 = c0
  68. return weld
  69. end
  70. gui = function(GuiType, parent, text, backtrans, backcol, pos, size, image)
  71. local gui = it(GuiType)
  72. gui.Parent = parent
  73. gui.BackgroundTransparency = backtrans
  74. gui.BackgroundColor3 = backcol
  75. gui.SizeConstraint = "RelativeXY"
  76. gui.Position = pos
  77. gui.Size = size
  78. if GuiType == "TextLabel" then
  79. gui.Text = text
  80. gui.TextXAlignment = "Center"
  81. gui.TextYAlignment = "Center"
  82. gui.Font = "SourceSans"
  83. gui.FontSize = "Size14"
  84. gui.TextWrapped = false
  85. gui.TextStrokeTransparency = 0
  86. gui.TextColor = BrickColor.new("White")
  87. else
  88. if GuiType == "ImageLabel" then
  89. gui.Image = "rbxassetid://" .. image
  90. gui.ImageColor3 = backcol
  91. end
  92. end
  93. return gui
  94. end
  95. local handle = nil
  96. AesthPart = function(model, wldpar, reflec, trans, col, name, neon, meshh, mshtype, mshtxt, x1, y1, z1, ceef)
  97. prt = part(3, model, reflec, trans, BrickColor.new(col), name, vt())
  98. prt.Material = neon
  99. msh = mesh(meshh, prt, mshtype, mshtxt, vt(0, 0, 0), vt(x1, y1, z1))
  100. wld = weld(handle, prt, wldpar, ceef)
  101. v = it("NumberValue", prt)
  102. v.Value = trans
  103. v.Name = "MainTransparency"
  104. return prt, msh, wld
  105. end
  106. AesthPartHand = function(model, wldpar, reflec, trans, col, name, neon, meshh, mshtype, mshtxt, x1, y1, z1, ceef, wldpare)
  107. prt = part(3, model, reflec, trans, BrickColor.new(col), name, vt())
  108. prt.Material = neon
  109. msh = mesh(meshh, prt, mshtype, mshtxt, vt(0, 0, 0), vt(x1, y1, z1))
  110. wld = weld(wldpare, prt, wldpar, ceef)
  111. v = it("NumberValue", prt)
  112. v.Value = trans
  113. v.Name = "MainTransparency"
  114. return prt, msh, wld
  115. end
  116. local modelzorz = Instance.new("Model")
  117. modelzorz.Parent = workspace.CurrentCamera
  118. modelzorz.Name = "ManotechBody"
  119. local Torso = Character.Torso
  120. local LeftArm = Character["Left Arm"]
  121. local RightArm = Character["Right Arm"]
  122. local LeftLeg = Character["Left Leg"]
  123. local RightLeg = Character["Right Leg"]
  124. local Head = Character.Head
  125. local RootPart = Character.HumanoidRootPart
  126. handle = part(3, modelzorz, 0, 1, BrickColor.new("Institutional white"), "Handle", vt())
  127. local handlewld = weld(handle, handle, Torso, euler(0, 0, -0.8) * cf(0, 0, -0.7))
  128. Tprt01 = AesthPart(modelzorz, Torso, 0, 0, "Really black", "Torso Part01", "SmoothPlastic", "BlockMesh", "nil", "nil", 6.1, 12.1, 12.1, euler(0, mr(-90), 0) * cf(0, 0, 0))
  129. Tprt02 = AesthPart(modelzorz, Tprt01, 0, 0, "Really black", "Torso Part02", "SmoothPlastic", "BlockMesh", "nil", "nil", 6.2, 12.2, 4, euler(mr(90), 0, 0) * cf(0, -0.84, 0))
  130. Tprt03 = AesthPart(modelzorz, Tprt01, 0, 0, "Lapis", "Torso Part03", "SmoothPlastic", "BlockMesh", "nil", "nil", 6.14, 12.14, 4, euler(mr(90), 0, 0) * cf(0, -0.01, 0))
  131. Tprt04 = AesthPart(modelzorz, Tprt01, 0, 0, "Really black", "Torso Part04", "SmoothPlastic", "BlockMesh", "nil", "nil", 6.15, 12.15, 2, euler(mr(90), 0, 0) * cf(0, -0.01, 0))
  132. Tprt05 = AesthPart(modelzorz, Tprt01, 0, 0, "Really black", "Torso Part05", "SmoothPlastic", "BlockMesh", "nil", "nil", 6.2, 12.2, 4, euler(mr(90), 0, 0) * cf(0, 0.83, 0))
  133. Tprt06 = AesthPart(modelzorz, Tprt01, 0, 0, "Lapis", "Torso Part06", "SmoothPlastic", "BlockMesh", "nil", "nil", 6.5, 12.5, 2, euler(mr(90), 0, 0) * cf(0, 1.03, 0))
  134. Tprt07 = AesthPart(modelzorz, Tprt01, 0, 0, "Really black", "Torso Part07", "SmoothPlastic", "BlockMesh", "nil", "nil", 6.6, 12.6, 1, euler(mr(90), 0, 0) * cf(0, 1.14, 0))
  135. Tprt08 = AesthPart(modelzorz, Tprt01, 0, 0, "Lapis", "Torso Part08", "SmoothPlastic", "SpecialMesh", "Cylinder", "nil", 1, 5, 5, euler(mr(90), 0, 0) * cf(-0.562, 0.82, 0))
  136. Tprt09 = AesthPart(modelzorz, Tprt01, 0, 0, "Institutional white", "Torso Part09", "Neon", "SpecialMesh", "Cylinder", "nil", 1, 4, 4, euler(mr(90), 0, 0) * cf(-0.572, 0.82, 0))
  137. Tprt10 = AesthPart(modelzorz, Tprt01, 0, 0, "Really black", "Torso Part10", "SmoothPlastic", "SpecialMesh", "FileMesh", "9756362", 0.2, 1, 0.4, euler(mr(90), 0, 0) * cf(-0.662, 0.82, 0))
  138. Tprt11 = AesthPart(modelzorz, Tprt01, 0, 0, "Institutional white", "Torso Part11", "Neon", "SpecialMesh", "Sphere", "nil", 1, 0.4, 2, euler(mr(90), 0, 0) * cf(-0.722, 0.82, 0))
  139. Tprt12 = AesthPart(modelzorz, Tprt01, 0, 0, "Lapis", "Torso Part12", "SmoothPlastic", "SpecialMesh", "FileMesh", "26340522", 1, 1, 1.4, euler(0, mr(90), 0) * cf(0, -0.34, 0))
  140. Tprt13 = AesthPart(modelzorz, Tprt01, 0, 0, "Lapis", "Torso Part13", "SmoothPlastic", "SpecialMesh", "FileMesh", "189759018", 3, 4, 3.5, euler(0, mr(90), 0) * cf(0, -0.55, -0.06))
  141. LAprt01 = AesthPart(modelzorz, LeftArm, 0, 0, "Really black", "Left Arm Part01", "SmoothPlastic", "BlockMesh", "nil", "nil", 6.1, 12.1, 6.1, euler(0, mr(-90), 0) * cf(0, 0, 0))
  142. LAprt01a = AesthPart(modelzorz, LAprt01, 0, 0, "Really black", "Left Arm Part01a", "SmoothPlastic", "BlockMesh", "nil", "nil", 0, 0, 0, euler(0, mr(90), 0) * cf(0, 0, 0))
  143. RAprt01 = AesthPart(modelzorz, RightArm, 0, 0, "Really black", "Right Arm Part01", "SmoothPlastic", "BlockMesh", "nil", "nil", 6.1, 12.1, 6.1, euler(0, mr(90), 0) * cf(0, 0, 0))
  144. RAprt01a = AesthPart(modelzorz, RAprt01, 0, 0, "Really black", "Right Arm Part01a", "SmoothPlastic", "BlockMesh", "nil", "nil", 0, 0, 0, euler(0, mr(90), 0) * cf(0, 0, 0))
  145. LLprt01 = AesthPart(modelzorz, LeftLeg, 0, 0, "Really black", "Left Leg Part01", "SmoothPlastic", "BlockMesh", "nil", "nil", 6.1, 6.1, 12.1, euler(mr(90), 0, 0) * cf(0, 0, 0))
  146. LLprt01a = AesthPart(modelzorz, LLprt01, 0, 0, "Really black", "Left Leg Part01a", "SmoothPlastic", "BlockMesh", "nil", "nil", 0, 0, 0, euler(0, 0, mr(90)) * cf(0, 0, 0))
  147. RLprt01 = AesthPart(modelzorz, RightLeg, 0, 0, "Really black", "Right Leg Part01", "SmoothPlastic", "BlockMesh", "nil", "nil", 6.1, 6.1, 12.1, euler(mr(90), 0, 0) * cf(0, 0, 0))
  148. RLprt01a = AesthPart(modelzorz, RLprt01, 0, 0, "Really black", "Right Leg Part01a", "SmoothPlastic", "BlockMesh", "nil", "nil", 0, 0, 0, euler(0, 0, mr(-90)) * cf(0, 0, 0))
  149. local thPart = LAprt01a
  150. local thPart2 = LLprt01a
  151. for i = -1, 1, 2 do
  152. if i == 1 then
  153. thPart = RAprt01a
  154. thPart2 = RLprt01a
  155. end
  156. Aprt02 = AesthPart(modelzorz, thPart, 0, 0, "Lapis", "Arm Part02", "SmoothPlastic", "BlockMesh", "nil", "nil", 6.5, 4, 3, euler(mr(90), mr(90), 0) * cf(-0.23, -0.93, 0))
  157. Aprt03 = AesthPart(modelzorz, thPart, 0, 0, "Lapis", "Arm Part03", "SmoothPlastic", "BlockMesh", "nil", "nil", 6.5, 3, 7, euler(mr(90), mr(90), 0) * cf(0.43, -0.82, 0))
  158. Aprt04 = AesthPart(modelzorz, thPart, 0, 0, "Lapis", "Arm Part04", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 6.5, 3, 3, euler(mr(-90), mr(-90), mr(59.815)) * cf(0.23, 0.01, 0))
  159. Aprt05 = AesthPart(modelzorz, thPart, 0, 0, "Lapis", "Arm Part05", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 6.5, 3, 3, euler(mr(-90), mr(-90), mr(90)) * cf(0.43, 0.18, 0))
  160. Aprt06 = AesthPart(modelzorz, thPart, 0, 0, "Lapis", "Arm Part06", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 6.5, 3, 3, euler(mr(-90), mr(-90), mr(32.321)) * cf(0.05, -0.2, 0))
  161. Aprt07 = AesthPart(modelzorz, thPart, 0, 0, "Institutional white", "Arm Part07", "SmoothPlastic", "BlockMesh", "nil", "nil", 6.2, 4, 6.2, euler(0, mr(90), 0) * cf(0, 0.82, 0))
  162. Aprt08 = AesthPart(modelzorz, thPart, 0, 0, "Lapis", "Arm Part08", "SmoothPlastic", "BlockMesh", "nil", "nil", 6.3, 3, 6.3, euler(0, mr(90), 0) * cf(0, 0.82, 0))
  163. Aprt09 = AesthPart(modelzorz, thPart, 0, 0, "Really black", "Arm Part09", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 7, 5, 5, euler(0, mr(90), mr(103.229)) * cf(-0.1, -0.87, 0))
  164. Aprt10 = AesthPart(modelzorz, thPart, 0, 0, "Really black", "Arm Part10", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 7, 5, 5, euler(0, mr(90), mr(90)) * cf(0.26, -0.85, 0))
  165. Aprt11 = AesthPart(modelzorz, thPart, 0, 0, "Institutional white", "Arm Part11", "SmoothPlastic", "CylinderMesh", "nil", "nil", 3.5, 7.5, 3.5, euler(mr(90), 0, 0) * cf(0.47, -1.3, 0))
  166. Lprt02 = AesthPart(modelzorz, thPart2, 0, 0, "Really black", "Leg Part02", "SmoothPlastic", "BlockMesh", "nil", "nil", 6.3, 6.3, 3, euler(0, 0, 0) * cf(0, 0, -0.92))
  167. Lprt03 = AesthPart(modelzorz, thPart2, 0, 0, "Institutional white", "Leg Part03", "SmoothPlastic", "BlockMesh", "nil", "nil", 6.25, 6.25, 3, euler(0, 0, 0) * cf(0, 0, -0.67))
  168. Lprt04 = AesthPart(modelzorz, thPart2, 0, 0, "Really black", "Leg Part04", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 1, 3, 2, euler(0, 0, mr(180)) * cf(0.53 * i, 0.33, -0.42))
  169. Lprt05 = AesthPart(modelzorz, thPart2, 0, 0, "Really black", "Leg Part05", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 1, 3, 2, euler(0, 0, 0) * cf(0.53 * i, -0.33, -0.42))
  170. Lprt06 = AesthPart(modelzorz, thPart2, 0, 0, "Really black", "Leg Part06", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 1, 3, 2, euler(0, 0, mr(180)) * cf(-0.53 * i, 0.33, -0.42))
  171. Lprt07 = AesthPart(modelzorz, thPart2, 0, 0, "Really black", "Leg Part07", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 1, 3, 2, euler(0, 0, 0) * cf(-0.53 * i, -0.33, -0.42))
  172. Lprt08 = AesthPart(modelzorz, thPart2, 0, 0, "Lapis", "Leg Part08", "SmoothPlastic", "BlockMesh", "nil", "nil", 6.6, 6.6, 3, euler(0, 0, 0) * cf(0, 0, 0.37))
  173. Lprt09 = AesthPart(modelzorz, thPart2, 0, 0, "Institutional white", "Leg Part09", "SmoothPlastic", "BlockMesh", "nil", "nil", 6.5, 6.5, 3, euler(0, 0, 0) * cf(0, 0, 0.91))
  174. Lprt10 = AesthPart(modelzorz, thPart2, 0, 0, "Really black", "Leg Part10", "Neon", "BlockMesh", "nil", "nil", 0.5, 1, 3, euler(0, 0, mr(90)) * cf(-0.52 * i, 0, -0.22))
  175. Lprt11 = AesthPart(modelzorz, thPart2, 0, 0, "Institutional white", "Leg Part11", "Neon", "BlockMesh", "nil", "nil", 0.5, 1, 3, euler(0, mr(-30), mr(90)) * cf(-0.52 * i, 0.2, -0.22))
  176. Lprt12 = AesthPart(modelzorz, thPart2, 0, 0, "Institutional white", "Leg Part12", "Neon", "BlockMesh", "nil", "nil", 0.5, 1, 3, euler(0, mr(30), mr(90)) * cf(-0.52 * i, -0.2, -0.22))
  177. Lprt13 = AesthPart(modelzorz, thPart2, 0, 0, "Lapis", "Leg Part13", "SmoothPlastic", "CylinderMesh", "nil", "nil", 2, 1, 2, euler(0, 0, mr(90)) * cf(-0.62 * i, 0, 0.03))
  178. Lprt14 = AesthPart(modelzorz, thPart2, 0, 0, "Really black", "Leg Part14", "SmoothPlastic", "CylinderMesh", "nil", "nil", 1.7, 1.1, 1.7, euler(0, 0, mr(90)) * cf(-0.62 * i, 0, 0.03))
  179. Lprt15 = AesthPart(modelzorz, thPart2, 0, 0, "Institutional white", "Leg Part15", "Neon", "CylinderMesh", "nil", "nil", 1, 1.2, 1, euler(0, 0, mr(90)) * cf(-0.62 * i, 0, 0.03))
  180. Lprt16 = AesthPart(modelzorz, thPart2, 0, 0, "Really black", "Leg Part16", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 1, 1.5, 4, euler(0, 0, mr(180)) * cf(-0.6 * i, 0.14, 0.35))
  181. Lprt17 = AesthPart(modelzorz, thPart2, 0, 0, "Really black", "Leg Part17", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 1, 1.5, 4, euler(0, 0, 0) * cf(-0.6 * i, -0.16, 0.35))
  182. Lprt18 = AesthPart(modelzorz, thPart2, 0, 0, "Institutional white", "Leg Part18", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 1, 1.5, 4, euler(mr(15), 0, mr(180)) * cf(-0.6 * i, 0.35, 0.35))
  183. Lprt19 = AesthPart(modelzorz, thPart2, 0, 0, "Institutional white", "Leg Part19", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 1, 1.5, 4, euler(mr(15), 0, 0) * cf(-0.6 * i, -0.37, 0.35))
  184. end
  185. LAprt12 = AesthPart(modelzorz, LAprt01a, 0, 0, "Really black", "Left Arm Part12", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 1, 7, 2, euler(mr(180), mr(-90), mr(103.229)) * cf(1.05, -1.48, 0.71))
  186. LAprt13 = AesthPart(modelzorz, LAprt01a, 0, 0, "Really black", "Left Arm Part13", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 1, 7, 2, euler(mr(180), mr(-90), mr(103.229)) * cf(1.05, -1.48, -0.71))
  187. RAprt12 = AesthPart(modelzorz, RAprt01a, 0, 0, "Really black", "Right Arm Part12", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 6.5, 3, 6, euler(mr(180), mr(90), mr(9.214)) * cf(1.217, -1.384, 0))
  188. RAprt13 = AesthPart(modelzorz, RAprt01a, 0, 0, "Really black", "Right Arm Part13", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 6, 3, 6, euler(mr(180), mr(90), mr(-10.361)) * cf(1.108, -1.116, 0))
  189. RAprt14 = AesthPart(modelzorz, RAprt01a, 0, 0, "Really black", "Right Arm Part14", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 5.5, 3, 6, euler(mr(180), mr(90), mr(-42.832)) * cf(1.002, -0.856, 0))
  190. RAprt15 = AesthPart(modelzorz, RAprt01a, 0, 0, "Institutional white", "Right Arm Part15", "Neon", "BlockMesh", "nil", "nil", 6.5, 0.2, 6.5, euler(0, mr(90), 0) * cf(0, 0.82, 0))
  191. RAprt16 = AesthPart(modelzorz, RAprt01a, 0, 0, "Institutional white", "Right Arm Part16", "Neon", "BlockMesh", "nil", "nil", 6.5, 0.2, 6.5, euler(0, mr(90), mr(6.849)) * cf(0, 0.97, 0))
  192. RAprt17 = AesthPart(modelzorz, RAprt01a, 0, 0, "Institutional white", "Right Arm Part17", "Neon", "BlockMesh", "nil", "nil", 6.5, 0.2, 6.5, euler(0, mr(90), mr(-6.849)) * cf(0, 0.66, 0))
  193. RAprt18 = AesthPart(modelzorz, RAprt01a, 0, 0, "Really black", "Right Arm Part18", "SmoothPlastic", "BlockMesh", "nil", "nil", 6.4, 0.6, 6.4, euler(0, mr(90), 0) * cf(0, 0.82, 0))
  194. RAprt19 = AesthPart(modelzorz, RAprt01a, 0, 0, "Really black", "Right Arm Part19", "SmoothPlastic", "BlockMesh", "nil", "nil", 6.4, 0.6, 6.4, euler(0, mr(90), mr(6.849)) * cf(0, 0.97, 0))
  195. RAprt20 = AesthPart(modelzorz, RAprt01a, 0, 0, "Really black", "Right Arm Part20", "SmoothPlastic", "BlockMesh", "nil", "nil", 6.4, 0.6, 6.4, euler(0, mr(90), mr(-6.849)) * cf(0, 0.66, 0))
  196. RAprt21 = AesthPart(modelzorz, RAprt01a, 0, 0, "Lapis", "Right Arm Part21", "SmoothPlastic", "CylinderMesh", "nil", "nil", 3.5, 1, 3.5, euler(mr(90), mr(90), 0) * cf(0.55, 0.82, 0))
  197. RAprt22 = AesthPart(modelzorz, RAprt01a, 0, 0, "Really black", "Right Arm Part22", "SmoothPlastic", "CylinderMesh", "nil", "nil", 3, 1.1, 3, euler(mr(90), mr(90), 0) * cf(0.55, 0.82, 0))
  198. RAprt23 = AesthPart(modelzorz, RAprt01a, 0, 0, "Institutional white", "Right Arm Part23", "Neon", "CylinderMesh", "nil", "nil", 1, 1.2, 1, euler(mr(90), mr(90), 0) * cf(0.55, 0.82, 0))
  199. for i = 0, 135, 45 do
  200. RAprt24 = AesthPart(modelzorz, RAprt01a, 0, 0, "Institutional white", "Right Arm Part24", "Neon", "BlockMesh", "nil", "nil", 1.5, 1, 0.2, euler(mr(90), mr(90), 0) * euler(mr(i), 0, 0) * cf(0.57, 0.82, 0))
  201. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement