Advertisement
D0MiN0_FX

Void Gauntlet [ RARE ]

Nov 4th, 2016
557
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.79 KB | None | 0 0
  1.  
  2. pls = game:GetService("Players")
  3. rs = game:GetService("RunService")
  4. uinps = game:GetService("UserInputService")
  5. lp = pls.LocalPlayer
  6. mouse = lp:GetMouse()
  7. c = lp.Character
  8. human = c.Humanoid
  9. health = 130
  10. root = c.HumanoidRootPart
  11. EfxModel = Instance.new("Model", c)
  12. Effects = {
  13. Spark = {new = function(pos, point, length, thickness, speed, distime, color, trans, material)
  14. local e = Instance.new("Part", EfxModel)
  15. e.Name = "Spark"
  16. e.Size = Vector3.new(thickness, thickness, length + math.random(-10, 10) / 10)
  17. e.BrickColor = BrickColor.new(color or "Black")
  18. if not trans then
  19. e.Transparency = math.random(1, 3) / 10
  20. e.Material = material or "Neon"
  21. e.Anchored = true
  22. e.CanCollide = false
  23. e.CFrame = CFrame.new(pos, point)
  24. local m = Instance.new("SpecialMesh", e)
  25. m.MeshType = "Sphere"
  26. local d = Instance.new("NumberValue", e)
  27. d.Name = "Time"
  28. d.Value = distime or 0.05
  29. local s = Instance.new("NumberValue", e)
  30. s.Name = "Speed"
  31. s.Value = speed or 0.5
  32. end
  33. end, move = function(part)
  34. part.CFrame = part.CFrame:toWorldSpace(CFrame.new(0, 0, part.Speed.Value / (Debounces.FPS / 60)))
  35. part.Transparency = part.Transparency + part.Time.Value / (Debounces.FPS / 60)
  36. if part.Transparency > 0.97 then
  37. part:Destroy()
  38. end
  39. end}
  40. ,
  41. Spark2 = {new = function(pos, point, length, thickness, speed, distime, drop, color, trans, material)
  42. local e = Instance.new("Part", EfxModel)
  43. e.Name = "Spark2"
  44. e.Size = Vector3.new(thickness, thickness, length + math.random(-10, 10) / 10)
  45. e.BrickColor = BrickColor.new(color or "Black")
  46. if not trans then
  47. e.Transparency = math.random(1, 3) / 10
  48. e.Material = material or "Neon"
  49. e.Anchored = true
  50. e.CanCollide = false
  51. e.CFrame = CFrame.new(pos, point)
  52. local m = Instance.new("SpecialMesh", e)
  53. m.MeshType = "Sphere"
  54. local d = Instance.new("NumberValue", e)
  55. d.Name = "Time"
  56. d.Value = distime or 0.05
  57. local s = Instance.new("NumberValue", e)
  58. s.Name = "Speed"
  59. s.Value = speed or 0.5
  60. local d2 = Instance.new("NumberValue", e)
  61. d2.Name = "Drop"
  62. d2.Value = drop or 0.2
  63. end
  64. end, move = function(part)
  65. local moveTo = part.CFrame.lookVector * part.Speed.Value
  66. moveTo = moveTo - Vector3.new(0, part.Drop.Value / Debounces.FPS, 0)
  67. part.CFrame = CFrame.new(part.CFrame.p + (moveTo), part.CFrame.p + (moveTo) * 2)
  68. part.Transparency = part.Transparency + part.Time.Value / (Debounces.FPS / 60)
  69. if part.Transparency > 0.97 then
  70. part:Destroy()
  71. end
  72. end}
  73. ,
  74. Sphere = {new = function(pos, radius, time, size, color, trans, material)
  75. local e = Instance.new("Part", EfxModel)
  76. e.Name = "Sphere"
  77. e.Size = Vector3.new(radius, radius, radius)
  78. e.BrickColor = BrickColor.new(color or "Black")
  79. if not trans then
  80. e.Transparency = math.random(1, 3) / 10
  81. e.Material = material or "Neon"
  82. e.Anchored = true
  83. e.CanCollide = false
  84. e.CFrame = CFrame.new(pos)
  85. local m = Instance.new("SpecialMesh", e)
  86. m.MeshType = "Sphere"
  87. local d = Instance.new("NumberValue", e)
  88. d.Name = "Time"
  89. d.Value = time or 0.055
  90. local s = Instance.new("NumberValue", e)
  91. s.Name = "SizeChange"
  92. s.Value = size or 0.5
  93. end
  94. end, move = function(part)
  95. local pcf = part.CFrame
  96. part.Size = part.Size + Vector3.new(part.SizeChange.Value, part.SizeChange.Value, part.SizeChange.Value)
  97. part.CFrame = pcf
  98. part.Transparency = part.Transparency + part.Time.Value
  99. if part.Transparency > 0.95 then
  100. part:Destroy()
  101. end
  102. end}
  103. ,
  104. Fire = {new = function(pos, size, speed, transspeed, wave, color, trans, material)
  105. local e = Instance.new("Part", EfxModel)
  106. e.Name = "Fire"
  107. e.Size = Vector3.new(size, size, size)
  108. e.BrickColor = BrickColor.new(color or "Bright orange")
  109. if not trans then
  110. e.Transparency = math.random(1, 3) / 10
  111. e.Material = material or "Neon"
  112. e.Anchored = true
  113. e.CanCollide = false
  114. e.CFrame = CFrame.new(pos)
  115. local d = Instance.new("NumberValue", e)
  116. d.Name = "Time"
  117. d.Value = transspeed or 0.05
  118. local s = Instance.new("NumberValue", e)
  119. s.Name = "Speed"
  120. s.Value = speed or 0.5
  121. local w = Instance.new("NumberValue", e)
  122. w.Name = "Wave"
  123. w.Value = wave or 0
  124. end
  125. end, move = function(part)
  126. local partPos = part.CFrame.p
  127. part.Size = part.Size - Vector3.new(0.2, 0.2, 0.2)
  128. part.CFrame = CFrame.new(partPos + Vector3.new(math.sin(tick() * part.Wave.Value), part.Speed.Value, math.sin(tick() * part.Wave.Value)).unit / part.Size.x) * CFrame.Angles(math.random(1, 6), math.random(1, 6), math.random(1, 6))
  129. part.Transparency = part.Transparency + part.Time.Value / (Debounces.FPS / 60)
  130. if part.Transparency > 0.97 then
  131. part:Destroy()
  132. end
  133. end}
  134. }
  135. CEfx = {SparkSphere = function(pos, loopcount, radius, length, thickness, speed, distime, color, trans, material)
  136. for i = 1, loopcount do
  137. Effects.Spark.new(pos + Vector3.new(math.sin(i / loopcount * math.pi * 2), math.abs(math.sin(math.random(0, 50))), math.cos(i / loopcount * math.pi * 2)).unit * radius, pos, length, thickness, speed, distime, color, trans, material)
  138. end
  139. end, Spark2Sphere = function(pos, loopcount, radius, length, thickness, speed, distime, drop, color, trans, material)
  140. for i = 1, loopcount do
  141. local vector = Vector3.new(math.sin(i / loopcount * math.pi * 2), math.abs(math.sin(math.random(0, 50))), math.cos(i / loopcount * math.pi * 2)).unit * radius
  142. Effects.Spark2.new(pos + vector, pos + vector * 2, length, thickness, speed, distime, drop, color, trans, material)
  143. end
  144. end}
  145. local RbxUtility = LoadLibrary("RbxUtility")
  146. local Create = RbxUtility.Create
  147. RemoveOutlines = function(part)
  148. part.TopSurface = 10
  149. end
  150. CFuncs = {
  151. Part = {new = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  152. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  153. RemoveOutlines(Part)
  154. return Part
  155. end}
  156. ,
  157. Mesh = {new = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  158. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  159. if Mesh == "SpecialMesh" then
  160. Msh.MeshType = MeshType
  161. Msh.MeshId = MeshId
  162. end
  163. return Msh
  164. end}
  165. ,
  166. Mesh = {new = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  167. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  168. if Mesh == "SpecialMesh" then
  169. Msh.MeshType = MeshType
  170. Msh.MeshId = MeshId
  171. end
  172. return Msh
  173. end}
  174. ,
  175. Weld = {new = function(Parent, Part0, Part1, C0, C1)
  176. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  177. return Weld
  178. end}
  179. ,
  180. Sound = {new = function(id, par, vol, pit)
  181. coroutine.resume(coroutine.create(function()
  182. local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = id, Parent = par or workspace})
  183. wait()
  184. S:play()
  185. game:GetService("Debris"):AddItem(S, 6)
  186. end))
  187. end}
  188. }
  189. local m = Instance.new("Model", c)
  190. m.Name = "WeaponModel"
  191. Handle = CFuncs.Part.new(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "Handle", Vector3.new(1, 2, 1))
  192. HandleWeld = CFuncs.Weld.new(m, c["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  193. Hitbox = CFuncs.Part.new(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "Hitbox", Vector3.new(1, 0.400000095, 1))
  194. HitboxWeld = CFuncs.Weld.new(m, Handle, Hitbox, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 1.20000029, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  195. Part = CFuncs.Part.new(m, Enum.Material.Metal, 0, 0, "Dark stone grey", "Part", Vector3.new(1.13000011, 0.2700001, 0.680000067))
  196. PartWeld = CFuncs.Weld.new(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00628662109, 0.935291767, 0.234018803, 1, 3.57627869e-07, 1.78814076e-07, 3.57627869e-07, 1, -4.91738945e-07, 1.78814091e-07, -4.91738945e-07, 1.00000286))
  197. Part = CFuncs.Part.new(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(1.09000015, 0.310000271, 0.530000091))
  198. PartWeld = CFuncs.Weld.new(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00628662109, 0.335297108, 0.288942814, 1, 3.57627869e-07, 1.78814076e-07, 3.57627869e-07, 1, -4.91738945e-07, 1.78814091e-07, -4.91738945e-07, 1.00000286))
  199. Part = CFuncs.Part.new(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(0.200000003, 0.200000003, 0.560000002))
  200. PartWeld = CFuncs.Weld.new(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0128860474, 1.12596655, -0.359955788, 1, 3.57627869e-07, 1.78814076e-07, 3.57627869e-07, 1, -4.91738945e-07, 1.78814091e-07, -4.91738945e-07, 1.00000286))
  201. Part = CFuncs.Part.new(m, Enum.Material.Metal, 0, 0, "Dark stone grey", "Part", Vector3.new(0.229999989, 0.200000003, 0.590000033))
  202. PartWeld = CFuncs.Weld.new(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0138702393, 1.11102057, -0.360497475, 1, 3.57627869e-07, 1.78814076e-07, 3.57627869e-07, 1, -4.91738945e-07, 1.78814091e-07, -4.91738945e-07, 1.00000286))
  203. Part = CFuncs.Part.new(m, Enum.Material.Neon, 0, 0, "Dark indigo", "Part", Vector3.new(1.11000013, 0.200000003, 0.530000091))
  204. PartWeld = CFuncs.Weld.new(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0020904541, -0.151069164, 0.29600811, 1, 3.57627869e-07, 1.78814076e-07, 3.57627869e-07, 1, -4.91738945e-07, 1.78814091e-07, -4.91738945e-07, 1.00000286))
  205. Part = CFuncs.Part.new(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(0.680000186, 0.220000178, 0.280000031))
  206. PartWeld = CFuncs.Weld.new(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00286865234, -0.366393089, -0.562141895, 1, 3.57627869e-07, 1.78814076e-07, 3.57627869e-07, 1, -4.91738945e-07, 1.78814091e-07, -4.91738945e-07, 1.00000286))
  207. Part = CFuncs.Part.new(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(0.410000265, 0.530000031, 0.840000033))
  208. PartWeld = CFuncs.Weld.new(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00244140625, -0.782339096, -0.21243906, 1, 3.57627869e-07, 1.78814076e-07, 3.57627869e-07, 1, -4.91738945e-07, 1.78814091e-07, -4.91738945e-07, 1.00000286))
  209. Part = CFuncs.Part.new(m, Enum.Material.Neon, 0, 0, "Dark indigo", "Part", Vector3.new(0.54000026, 0.630000114, 0.900000036))
  210. PartWeld = CFuncs.Weld.new(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00863647461, -0.714685917, -0.176069736, 1, 3.57627869e-07, 1.78814076e-07, 3.57627869e-07, 1, -4.91738945e-07, 1.78814091e-07, -4.91738945e-07, 1.00000286))
  211. Part = CFuncs.Part.new(m, Enum.Material.Neon, 0, 0, "Dark indigo", "Part", Vector3.new(0.24000001, 0.919999957, 0.420000017))
  212. PartWeld = CFuncs.Weld.new(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.027633667, 0.210770607, -0.377646923, 1, 3.57627869e-07, 1.78814076e-07, 3.57627869e-07, 1, -4.91738945e-07, 1.78814091e-07, -4.91738945e-07, 1.00000286))
  213. Part = CFuncs.Part.new(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(1.24000001, 1.13, 0.219999999))
  214. PartWeld = CFuncs.Weld.new(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0117416382, -0.15815258, -0.230055332, 1, 3.57627869e-07, 1.78814076e-07, 3.57627869e-07, 1, -4.91738945e-07, 1.78814091e-07, -4.91738945e-07, 1.00000286))
  215. Part = CFuncs.Part.new(m, Enum.Material.Neon, 0, 0, "Dark indigo", "Part", Vector3.new(0.870000243, 0.2700001, 0.860000014))
  216. PartWeld = CFuncs.Weld.new(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00363922119, 0.975282192, 0.0139846802, 1, 3.57627869e-07, 1.78814076e-07, 3.57627869e-07, 1, -4.91738945e-07, 1.78814091e-07, -4.91738945e-07, 1.00000286))
  217. Part = CFuncs.Part.new(m, Enum.Material.Metal, 0, 0, "Dark stone grey", "Part", Vector3.new(0.200000003, 1.62000012, 0.400000095))
  218. PartWeld = CFuncs.Weld.new(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.238723755, 0.107399464, 0.364008427, 1, 3.57627869e-07, 1.78814076e-07, 3.57627869e-07, 1, -4.91738945e-07, 1.78814091e-07, -4.91738945e-07, 1.00000286))
  219. Part = CFuncs.Part.new(m, Enum.Material.Neon, 0, 0, "Dark indigo", "Part", Vector3.new(0.490000248, 0.540000081, 0.420000017))
  220. PartWeld = CFuncs.Weld.new(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0136032104, 0.850343227, -0.406029224, 1, 3.57627869e-07, 1.78814076e-07, 3.57627869e-07, 1, -4.91738945e-07, 1.78814091e-07, -4.91738945e-07, 1.00000286))
  221. Part = CFuncs.Part.new(m, Enum.Material.Neon, 0, 0, "Dark indigo", "Part", Vector3.new(1.11000013, 0.210000008, 0.530000091))
  222. PartWeld = CFuncs.Weld.new(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0108261108, 0.336452961, 0.291498661, 1, 3.57627869e-07, 1.78814076e-07, 3.57627869e-07, 1, -4.91738945e-07, 1.78814091e-07, -4.91738945e-07, 1.00000286))
  223. Part = CFuncs.Part.new(m, Enum.Material.Neon, 0, 0, "Dark indigo", "Part", Vector3.new(1.21000004, 1.63999999, 0.300000012))
  224. PartWeld = CFuncs.Weld.new(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00877380371, 0.0478525162, -0.226531029, 1, 3.57627869e-07, 1.78814076e-07, 3.57627869e-07, 1, -4.91738945e-07, 1.78814091e-07, -4.91738945e-07, 1.00000286))
  225. Part = CFuncs.Part.new(m, Enum.Material.Metal, 0, 0, "Dark stone grey", "Part", Vector3.new(1.13000011, 1.88000023, 0.680000067))
  226. PartWeld = CFuncs.Weld.new(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00626373291, 0.130330086, -0.225958824, 1, 3.57627869e-07, 1.78814076e-07, 3.57627869e-07, 1, -4.91738945e-07, 1.78814091e-07, -4.91738945e-07, 1.00000286))
  227. Part = CFuncs.Part.new(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(0.379999936, 0.379999936, 0.379999936))
  228. PartWeld = CFuncs.Weld.new(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.851072311, 0.585458279, 0.0115356445, 3.42726736e-07, 1, -3.37138971e-07, -1.93715223e-07, 5.81145912e-07, -1.00000286, -1, -3.87430191e-07, -1.56462249e-07))
  229. CFuncs.Mesh.new("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  230. Part = CFuncs.Part.new(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(0.200000003, 1, 0.420000017))
  231. PartWeld = CFuncs.Weld.new(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.131408691, 0.0903525352, -0.406013012, 1, 3.57627869e-07, 1.78814076e-07, 3.57627869e-07, 1, -4.91738945e-07, 1.78814091e-07, -4.91738945e-07, 1.00000286))
  232. Part = CFuncs.Part.new(m, Enum.Material.Neon, 0, 0, "Dark indigo", "Part", Vector3.new(0.79000026, 0.340000153, 0.49000001))
  233. PartWeld = CFuncs.Weld.new(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00364685059, -0.359667778, -0.441084862, 1, 3.57627869e-07, 1.78814076e-07, 3.57627869e-07, 1, -4.91738945e-07, 1.78814091e-07, -4.91738945e-07, 1.00000286))
  234. Part = CFuncs.Part.new(m, Enum.Material.Metal, 0, 0, "Dark stone grey", "Part", Vector3.new(0.200000003, 1.77000022, 0.420000106))
  235. PartWeld = CFuncs.Weld.new(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.19871521, 0.0216679573, 0.355883121, 1, 3.57627869e-07, 1.78814076e-07, 3.57627869e-07, 1, -4.91738945e-07, 1.78814091e-07, -4.91738945e-07, 1.00000286))
  236. Part = CFuncs.Part.new(m, Enum.Material.Metal, 0, 0, "Dark stone grey", "Part", Vector3.new(1.13000011, 0.329999983, 1.1400001))
  237. PartWeld = CFuncs.Weld.new(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0093460083, -0.835298538, 0.0032749176, 1, 3.57627869e-07, 1.78814076e-07, 3.57627869e-07, 1, -4.91738945e-07, 1.78814091e-07, -4.91738945e-07, 1.00000286))
  238. Part = CFuncs.Part.new(m, Enum.Material.Metal, 0, 0, "Medium stone grey", "Part", Vector3.new(0.910000026, 0.47999987, 0.580000043))
  239. PartWeld = CFuncs.Weld.new(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00074005127, -0.35460186, -0.276175022, 1, 3.57627869e-07, 1.78814076e-07, 3.57627869e-07, 1, -4.91738945e-07, 1.78814091e-07, -4.91738945e-07, 1.00000286))
  240. Part = CFuncs.Part.new(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(1.23000002, 0.340000063, 0.229999989))
  241. PartWeld = CFuncs.Weld.new(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00450134277, 0.662789822, -0.228302002, 1, 3.57627869e-07, 1.78814076e-07, 3.57627869e-07, 1, -4.91738945e-07, 1.78814091e-07, -4.91738945e-07, 1.00000286))
  242. Part = CFuncs.Part.new(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(1.09000015, 0.310000271, 0.530000091))
  243. PartWeld = CFuncs.Weld.new(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00623321533, -0.154727459, 0.288996696, 1, 3.57627869e-07, 1.78814076e-07, 3.57627869e-07, 1, -4.91738945e-07, 1.78814091e-07, -4.91738945e-07, 1.00000286))
  244. Part = CFuncs.Part.new(m, Enum.Material.Metal, 0, 0, "Dark stone grey", "Part", Vector3.new(0.490000248, 0.520000041, 0.420000017))
  245. PartWeld = CFuncs.Weld.new(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0135955811, -0.396072388, -0.850289822, 1.00000012, -1.01476926e-05, 4.99935777e-06, -4.65661287e-06, 1.56459919e-07, 1.00000286, -1.0818243e-05, -1.00000012, 1.15297803e-06))
  246. CFuncs.Mesh.new("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  247. Part = CFuncs.Part.new(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(0.200000003, 1.05000007, 0.420000017))
  248. PartWeld = CFuncs.Weld.new(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.158599854, 0.0553216934, -0.405974865, 1, 3.57627869e-07, 1.78814076e-07, 3.57627869e-07, 1, -4.91738945e-07, 1.78814091e-07, -4.91738945e-07, 1.00000286))
  249. Part = CFuncs.Part.new(m, Enum.Material.Metal, 0, 0, "Medium stone grey", "Part", Vector3.new(0.629999995, 2.07999992, 0.899999976))
  250. PartWeld = CFuncs.Weld.new(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0092010498, 0.0362443924, -0.120284081, 1, 3.57627869e-07, 1.78814076e-07, 3.57627869e-07, 1, -4.91738945e-07, 1.78814091e-07, -4.91738945e-07, 1.00000286))
  251. Part = CFuncs.Part.new(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(0.750000298, 0.250000089, 0.74000001))
  252. PartWeld = CFuncs.Weld.new(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00680541992, 1.00405645, 0.0256195068, 1, 3.57627869e-07, 1.78814076e-07, 3.57627869e-07, 1, -4.91738945e-07, 1.78814091e-07, -4.91738945e-07, 1.00000286))
  253. Debounces = {FPS = 0, Speed = 1, Combo = 1, ComboTimer = 0, canSpecial = true, canNormal = true, isAttacking = false, isMoving = false, isSprinting = false, isTyping = false}
  254. numLerp = function(start, goal, alpha)
  255. return (goal - start) * alpha + start
  256. end
  257. CFrameZero = function()
  258. return CFrame.new(Vector3.new())
  259. end
  260. rad = function(value)
  261. return math.rad(value)
  262. end
  263. CFAngles = function(Vector)
  264. return CFrame.Angles(rad(Vector.x), rad(Vector.y), rad(Vector.z))
  265. end
  266. AnimStat = {lerpSpeed = 0.3}
  267. Joints = {c.Torso.Neck, c.Torso["Left Shoulder"], c.Torso["Left Hip"], c.Torso["Right Shoulder"], c.Torso["Right Hip"], c.HumanoidRootPart.RootJoint}
  268. JointTargets = {CFrameZero(), CFrameZero(), CFrameZero(), CFrameZero(), CFrameZero(), CFrameZero()}
  269. Combo = {AttackOne = function()
  270. setLerp(0.3)
  271. Effects.Fire.new(Hitbox.Position, 4, 0.5, 0.04, 3, "Dark indigo")
  272. Debounces.Speed = 0.7
  273. setJointCFrames({CFrame.new(Vector3.new(-0.042, 1.494, -0.169)) * CFAngles(Vector3.new(-8.464, 44.765, 5.689)), CFrame.new(Vector3.new(-1.65, -0.013, -0.313)) * CFAngles(Vector3.new(25.529, -22.025, -13.993)), CFrame.new(Vector3.new(-0.754, -1.99, 0.055)) * CFAngles(Vector3.new(0, 44.999, -4.522)), CFrame.new(Vector3.new(1.704, 0.681, -0.205)) * CFAngles(Vector3.new(-0.001, 44.999, 105)), CFrame.new(Vector3.new(0.773, -1.996, -0.004)) * CFAngles(Vector3.new(-6.029, 44.734, 5.679)), CFrame.new(Vector3.new(0, 0, -0.001)) * CFAngles(Vector3.new(0, -44, 0))})
  274. wait(0.15)
  275. local hit = takeDamage(Hitbox.Position, math.random(13, 16), 5, false)
  276. setLerp(0.3)
  277. Debounces.Speed = 0.7
  278. setJointCFrames({CFrame.new(Vector3.new(0.02, 1.494, -0.17)) * CFAngles(Vector3.new(-8.44, -80.609, -6.241)), CFrame.new(Vector3.new(-1.69, 0.442, 0.324)) * CFAngles(Vector3.new(-16.591, 21.722, -44.118)), CFrame.new(Vector3.new(-0.72, -1.992, -0.004)) * CFAngles(Vector3.new(-2.004, -30.243, -7.537)), CFrame.new(Vector3.new(0.688, 0.29, -1.023)) * CFAngles(Vector3.new(-175.536, 30.412, -108.764)), CFrame.new(Vector3.new(0.683, -2.003, -0.023)) * CFAngles(Vector3.new(2.014, -44.983, 7.499)), CFrame.new(Vector3.new(0, 0, -0.001)) * CFAngles(Vector3.new(0, 80, 0))})
  279. wait(0.15)
  280. return hit[1]
  281. end, AttackTwo = function()
  282. setLerp(0.3)
  283. Effects.Fire.new(Hitbox.Position, 4, 0.5, 0.04, 3, "Dark indigo")
  284. Debounces.Speed = 0.7
  285. setJointCFrames({CFrame.new(Vector3.new(0.002, 1.491, -0.085)) * CFAngles(Vector3.new(-11.924, -23.595, -4.872)), CFrame.new(Vector3.new(-1.486, 0.102, 0.34)) * CFAngles(Vector3.new(-16.591, 21.722, -14.497)), CFrame.new(Vector3.new(-0.645, -2, -0.026)) * CFAngles(Vector3.new(-2.004, -30.243, -5.548)), CFrame.new(Vector3.new(0.334, 0.245, -0.983)) * CFAngles(Vector3.new(175.782, 17.662, -101.756)), CFrame.new(Vector3.new(0.64, -2.004, 0.02)) * CFAngles(Vector3.new(2.014, -44.983, 5.232)), CFrame.new(Vector3.new(0, 0, -0.001)) * CFAngles(Vector3.new(0, 44, 0))})
  286. wait(0.15)
  287. local hit = takeDamage(Hitbox.Position, math.random(13, 16), 5, false)
  288. setLerp(0.3)
  289. Effects.Fire.new(Hitbox.Position, 4, 0.5, 0.04, 3, "Dark indigo")
  290. Debounces.Speed = 0.7
  291. setJointCFrames({CFrame.new(Vector3.new(-0.043, 1.494, -0.087)) * CFAngles(Vector3.new(-8.53, 47.856, 6.6)), CFrame.new(Vector3.new(-1.575, 0.072, -0.08)) * CFAngles(Vector3.new(15.663, -6.451, -24.734)), CFrame.new(Vector3.new(-0.645, -2, -0.026)) * CFAngles(Vector3.new(4.34, 36.408, -5.956)), CFrame.new(Vector3.new(1.87, 0.68, -0.052)) * CFAngles(Vector3.new(-14.368, 29.909, 102.941)), CFrame.new(Vector3.new(0.714, -1.999, -0.032)) * CFAngles(Vector3.new(-4.271, 34.862, 5.647)), CFrame.new(Vector3.new(0, 0, -0.001)) * CFAngles(Vector3.new(0, -50, 0))})
  292. wait(0.15)
  293. return hit[1]
  294. end, AttackThree = function()
  295. setLerp(0.3)
  296. Debounces.Speed = 0.7
  297. setJointCFrames({CFrame.new(Vector3.new(-0.042, 1.494, -0.169)) * CFAngles(Vector3.new(-8.464, 44.765, 5.689)), CFrame.new(Vector3.new(-1.784, 0.136, -0.301)) * CFAngles(Vector3.new(25.529, -22.025, -43.993)), CFrame.new(Vector3.new(-0.754, -1.99, 0.055)) * CFAngles(Vector3.new(0, 44.999, -4.522)), CFrame.new(Vector3.new(0.977, 0.593, -0.769)) * CFAngles(Vector3.new(-158.476, 28.315, -102.178)), CFrame.new(Vector3.new(0.773, -1.996, -0.004)) * CFAngles(Vector3.new(-6.029, 44.734, 5.679)), CFrame.new(Vector3.new(0, 0, -0.001)) * CFAngles(Vector3.new(0, -44, 0))})
  298. wait(0.15)
  299. Effects.Fire.new(Hitbox.Position, 4, 0.5, 0.04, 3, "Dark indigo")
  300. local hit = takeDamage(Hitbox.Position, math.random(13, 16), 5, false)
  301. Debounces.isAttacking = true
  302. setLerp(0.3)
  303. Debounces.Speed = 0.7
  304. setJointCFrames({CFrame.new(Vector3.new(0.019, 1.494, -0.14)) * CFAngles(Vector3.new(-8.098, -42.11, -5.742)), CFrame.new(Vector3.new(-1.529, 0.141, -0.424)) * CFAngles(Vector3.new(25.529, -22.025, -13.993)), CFrame.new(Vector3.new(-0.754, -1.99, 0.055)) * CFAngles(Vector3.new(-6.382, -44.822, -4.508)), CFrame.new(Vector3.new(1.774, 0.59, -0.771)) * CFAngles(Vector3.new(-53.789, 36.425, 129.654)), CFrame.new(Vector3.new(0.773, -1.996, -0.004)) * CFAngles(Vector3.new(4.952, -59.879, 8.053)), CFrame.new(Vector3.new(0, 0, -0.001)) * CFAngles(Vector3.new(0, 44, 0))})
  305. wait(0.15)
  306. return hit[1]
  307. end}
  308. prepareCharacter = function()
  309. local animator = c.Humanoid:FindFirstChild("Animator")
  310. if animator then
  311. animator:Destroy()
  312. end
  313. local animate = c:FindFirstChild("Animate")
  314. if animate then
  315. animate:Destroy()
  316. end
  317. for _,x in pairs(Joints) do
  318. x.C1 = CFrameZero()
  319. end
  320. for _,v in pairs(c.Head:children()) do
  321. if v:isA("Sound") then
  322. v:Destroy()
  323. end
  324. end
  325. c.Humanoid.MaxHealth = health
  326. wait()
  327. c.Humanoid.Health = health
  328. end
  329. setJointCFrames = function(table)
  330. for i = 1, #table do
  331. JointTargets[i] = table[i]
  332. end
  333. end
  334. setLerp = function(speed)
  335. AnimStat.lerpSpeed = speed
  336. end
  337. takeDamage = function(position, damage, distance, platformStand)
  338. local hitPlrs = {}
  339. for i,v in pairs(pls:children()) do
  340. if v:isA("Player") and workspace:FindFirstChild(v.Name) and v ~= lp then
  341. local tor = workspace[v.Name]
  342. --if tor and tor:FindFirstChild("HumanoidRootPart") and tor:FindFirstChild("Humanoid") and tor.HumanoidRootPart.Position - position.magnitude < distance then
  343. tor.Humanoid:TakeDamage(damage)
  344. table.insert(hitPlrs, #hitPlrs + 1, v)
  345. --TagService:NewTag(tor, lp, "Aurum", damage)
  346. if platformStand then
  347. v.Character.PlatformStand = platformStand
  348. end
  349. --end
  350. end
  351. end
  352. return hitPlrs
  353. end
  354. moveVel = function(dir, speed, time)
  355. spawn(function()
  356. local g = Instance.new("BodyGyro", root)
  357. g.D = 0
  358. g.CFrame = root.CFrame
  359. g.MaxTorque = Vector3.new(1000000000, 1000000000, 1000000000)
  360. g.P = 10000000000
  361. local e = Instance.new("BodyVelocity", root)
  362. e.Velocity = dir.unit * speed
  363. e.P = 10000
  364. e.MaxForce = Vector3.new(100000000, 100000000, 100000000)
  365. wait(time)
  366. e:Destroy()
  367. g:Destroy()
  368. end)
  369. end
  370. prepareCharacter()
  371. local sine = 0
  372. local change = 1
  373. spawn(function()
  374. while wait() do
  375. sine = sine + change
  376. if Debounces.isAttacking == false and Debounces.isMoving == false and math.abs(root.Velocity.y) < 1 then
  377. change = 1
  378. setLerp(0.2)
  379. setJointCFrames({CFrame.new(Vector3.new(0.003, 1.5, 0)) * CFAngles(Vector3.new(-3 - 2 * math.sin(sine / 27), 30, 0)), CFrame.new(Vector3.new(-1.502, -0.008, -0.199)) * CFAngles(Vector3.new(7.005, -11.731, -8.413 - 2 * math.sin(sine / 27))), CFrame.new(Vector3.new(-0.594, -1.9 - 0.1 * math.sin(sine / 27), -0.072)) * CFAngles(Vector3.new(-0.001, 36.747, -1.165 + 2 * math.sin(sine / 25))), CFrame.new(Vector3.new(1.579, 0.119, -0.351)) * CFAngles(Vector3.new(27.663 + 2 * math.sin(sine / 27), 14.756, 14.132 + 2 * math.sin(sine / 27))), CFrame.new(Vector3.new(0.644, -1.9 - 0.1 * math.sin(sine / 27), -0.008)) * CFAngles(Vector3.new(0, 25.852, 2.906 - 2 * math.sin(sine / 25))), CFrame.new(Vector3.new(0, -0.1 + 0.1 * math.sin(sine / 27), 0)) * CFAngles(Vector3.new(0, -30, 0))})
  380. else
  381. if Debounces.isAttacking == false and Debounces.isMoving == true and math.abs(root.Velocity.y) < 1 then
  382. change = 2.5
  383. setLerp(0.2)
  384. Debounces.Speed = 0.9
  385. setJointCFrames({CFrame.new(Vector3.new(-0.011, 1.5, 0.009)) * CFAngles(Vector3.new(5, -4 * math.sin(sine / 8), 0)), CFrame.new(Vector3.new(-1.5, 0.019, 0.109 * math.sin(sine / 8))) * CFAngles(Vector3.new(-10.959 * math.sin(sine / 8), 0.719, -8.235)), CFrame.new(Vector3.new(-0.5, -1.9 + 0.4 * math.cos(sine / 8) / 2, 0 - 1.4 * math.sin(sine / 8) / 2)) * CFAngles(Vector3.new(40 * math.sin(sine / 8), 0, -2)), CFrame.new(Vector3.new(1.5, 0, -0.201)) * CFAngles(Vector3.new(21.246 + 2 * math.sin(sine / 8), -15.792 - 2 * math.sin(sine / 8), 8.909)), CFrame.new(Vector3.new(0.5, -1.9 - 0.4 * math.cos(sine / 8) / 2, 0 + 1.4 * math.sin(sine / 8) / 2)) * CFAngles(Vector3.new(-40 * math.sin(sine / 8), 0, 2)), CFrame.new(Vector3.new(0, 0, -0.001)) * CFAngles(Vector3.new(-10, 4 * math.sin(sine / 8), 0))})
  386. else
  387. if Debounces.isAttacking == false and math.abs(root.Velocity.y) > 1 then
  388. change = 1
  389. if root.Velocity.y > 0 then
  390. Debounces.Speed = 0.9
  391. setLerp(0.2)
  392. setJointCFrames({CFrame.new(Vector3.new(-0.011, 1.527, -0.115)) * CFAngles(Vector3.new(-9.493, 0, 0)), CFrame.new(Vector3.new(-1.814, 0.289, -0.265)) * CFAngles(Vector3.new(-2.521, -18.772, -41.571)), CFrame.new(Vector3.new(-0.503, -1.906, -0.014)) * CFAngles(Vector3.new(-8.209, 9.003, 1.293)), CFrame.new(Vector3.new(1.766, 0.255, -0.163)) * CFAngles(Vector3.new(6.91, 11.513, 29.448)), CFrame.new(Vector3.new(0.5, -1.28, -0.401)) * CFAngles(Vector3.new(-15.906, -11.514, -4.528)), CFrame.new(Vector3.new(0, 0, -0.001)) * CFAngles(Vector3.new(0, 0, 0))})
  393. else
  394. change = 1
  395. setLerp(0.2)
  396. Debounces.Speed = 1.1
  397. setJointCFrames({CFrame.new(Vector3.new(-0.011, 1.51, -0.295)) * CFAngles(Vector3.new(-17.477, 0, 0)), CFrame.new(Vector3.new(-1.814, 0.289, -0.465)) * CFAngles(Vector3.new(-1.38, -39.839, -42.989)), CFrame.new(Vector3.new(-0.503, -1.776, -0.224)) * CFAngles(Vector3.new(6.661, 9.034, -1.051)), CFrame.new(Vector3.new(1.766, 0.255, -0.363)) * CFAngles(Vector3.new(13.022, 31.837, 29.138)), CFrame.new(Vector3.new(0.5, -1.47, -0.401)) * CFAngles(Vector3.new(12.837, -12.269, 1.516)), CFrame.new(Vector3.new(0, 0, -0.001)) * CFAngles(Vector3.new(0, 0, 0))})
  398. end
  399. end
  400. end
  401. end
  402. human.WalkSpeed = Debounces.Speed * 16
  403. end
  404. end)
  405. human.Changed:connect(function(prop)
  406. if prop == "MoveDirection" then
  407. if human.MoveDirection.magnitude > 0.02 then
  408. Debounces.isMoving = true
  409. else
  410. Debounces.isMoving = false
  411. end
  412. end
  413. end)
  414. uinps.InputBegan:connect(function(InputObj)
  415. if InputObj.KeyCode == Enum.KeyCode.Slash then
  416. local finishEvent = nil
  417. do
  418. Debounces.isTyping = true
  419. finishEvent = uinps.InputBegan:connect(function(InputObj)
  420. if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
  421. Debounces.isTyping = false
  422. finishEvent:disconnect()
  423. end
  424. end)
  425. end
  426. end
  427. end)
  428. uinps.InputEnded:connect(function(InputObj)
  429. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  430. Debounces.isSprinting = false
  431. end
  432. end)
  433. mouse.Button1Down:connect(function()
  434. if Debounces.Combo == 1 and Debounces.isAttacking == false then
  435. Debounces.isAttacking = true
  436. Debounces.Combo = 2
  437. Combo.AttackOne()
  438. Debounces.isAttacking = false
  439. else
  440. if Debounces.Combo == 2 and Debounces.isAttacking == false then
  441. Debounces.isAttacking = true
  442. Debounces.Combo = 3
  443. Combo.AttackTwo()
  444. Debounces.isAttacking = false
  445. else
  446. if Debounces.Combo == 3 and Debounces.isAttacking == false then
  447. Debounces.isAttacking = true
  448. Debounces.Combo = 1
  449. Combo.AttackThree()
  450. Debounces.isAttacking = false
  451. end
  452. end
  453. end
  454. end)
  455. rs.RenderStepped:connect(function()
  456. Debounces.FPS = 1 / rs.RenderStepped:wait()
  457. if Debounces.FPS < 15 then
  458. Debounces.FPS = 15
  459. end
  460. for _,v in pairs(EfxModel:children()) do
  461. Effects[v.Name].move(v)
  462. end
  463. local FPSLerp = AnimStat.lerpSpeed / (Debounces.FPS / 60)
  464. for i = 1, #Joints do
  465. Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
  466. end
  467. local sineval = math.sin(tick() * 2) * 3
  468. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement