Advertisement
RienerXproX

Untitled

Jan 4th, 2018
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.22 KB | None | 0 0
  1. wait(1)
  2. ---------------------------
  3. local MaxMana = 5000000 -- Max Mana You Can Get
  4. local Mana = 5000000 -- Mana You Start With
  5. local ManaGain = 100000 -- How Much Mana You Gain Per Second
  6. ---------------------------
  7. repeat game:GetService('RunService').Stepped:wait() until game:GetService('Players').LocalPlayer.Character
  8. ----190470714
  9. ----
  10. sit = true
  11. cn = CFrame.new
  12. v3 = Vector3.new
  13. c3 = Color3.new
  14. bn = BrickColor.new
  15. ca2 = CFrame.Angles
  16. ca = function(x,y,z) return ca2(math.rad(x),math.rad(y),math.rad(z)) end
  17. ud2 = UDim2.new
  18. ----
  19. ----
  20. local Player = game:GetService('Players').LocalPlayer
  21. local Char = Player.Character
  22. local Human = Char.Humanoid
  23. local Mouse = Player:GetMouse()
  24. ----
  25. ----
  26. Human.WalkSpeed = 0
  27. print ('Loading...')
  28. wait(0)
  29. ----
  30. ----
  31. local mananum=0
  32. la = Char['Left Arm']
  33. ra = Char['Right Arm']
  34. ll = Char['Left Leg']
  35. rl = Char['Right Leg']
  36. tr = Char['Torso']
  37. hd = Char['Head']
  38. rp = Char['HumanoidRootPart']
  39. ----
  40. ----
  41. ram = tr['Right Shoulder']
  42. lam = tr['Left Shoulder']
  43. llm = tr['Left Hip']
  44. rlm = tr['Right Hip']
  45. hm = tr['Neck']
  46. rj = rp['RootJoint']
  47. ----
  48. ----
  49. InputService = game:GetService('UserInputService')
  50. RunService = game:GetService('RunService')
  51. ----
  52. ----
  53. it=Instance.new
  54. Torso=Char.Torso
  55. local fengui=it("GuiMain")
  56. fengui.Parent=Player.PlayerGui
  57. fengui.Name="WeaponGUI"
  58. local fenframe=it("Frame")
  59. fenframe.Parent=fengui
  60. fenframe.BackgroundColor3=Color3.new(255,255,255)
  61. fenframe.BackgroundTransparency=1
  62. fenframe.BorderColor3=Color3.new(17,17,17)
  63. fenframe.Size=UDim2.new(0.0500000007, 0, 0.100000001, 0)
  64. fenframe.Position=UDim2.new(0.4,0,0.1,0)
  65. local fenbarmana1=it("TextLabel")
  66. fenbarmana1.Parent=fenframe
  67. fenbarmana1.Text=" "
  68. fenbarmana1.BackgroundTransparency=0
  69. fenbarmana1.BackgroundColor3=Color3.new(0,0,0)
  70. fenbarmana1.SizeConstraint="RelativeXY"
  71. fenbarmana1.TextXAlignment="Center"
  72. fenbarmana1.TextYAlignment="Center"
  73. fenbarmana1.Position=UDim2.new(0,0,0,0)
  74. fenbarmana1.Size=UDim2.new(4,0,0.2,0)
  75. local fenbarmana2=it("TextLabel")
  76. fenbarmana2.Parent=fenframe
  77. fenbarmana2.Text=" "
  78. fenbarmana2.BackgroundTransparency=0
  79. fenbarmana2.BackgroundColor3=Torso.Color
  80. fenbarmana2.SizeConstraint="RelativeXY"
  81. fenbarmana2.TextXAlignment="Center"
  82. fenbarmana2.TextYAlignment="Center"
  83. fenbarmana2.Position=UDim2.new(0,0,0,0)
  84. fenbarmana2.Size=UDim2.new(4*Mana/MaxMana,0,0.2,0)
  85. local fenbarmana3=it("TextLabel")
  86. fenbarmana3.Parent=fenframe
  87. fenbarmana3.Text=" "
  88. fenbarmana3.BackgroundTransparency=0
  89. fenbarmana3.BackgroundColor3=Color3.new(Col1,Col2,Col3)
  90. fenbarmana3.SizeConstraint="RelativeXY"
  91. fenbarmana3.TextXAlignment="Center"
  92. fenbarmana3.TextYAlignment="Center"
  93. fenbarmana3.Position=UDim2.new(0,0,0,0)
  94. fenbarmana3.Size=UDim2.new(0,0,0.2,0)
  95. local fenbarmana4=it("TextLabel")
  96. fenbarmana4.Parent=fenframe
  97. fenbarmana4.Text="Energy("..Mana..")"
  98. fenbarmana4.BackgroundTransparency=1
  99. fenbarmana4.BackgroundColor3=Color3.new(0,0,0)
  100. fenbarmana4.SizeConstraint="RelativeXY"
  101. fenbarmana4.TextXAlignment="Center"
  102. fenbarmana4.TextYAlignment="Center"
  103. fenbarmana4.Position=UDim2.new(0,0,-0.3,0)
  104. fenbarmana4.Size=UDim2.new(4,0,0.2,0)
  105. fenbarmana4.FontSize="Size9"
  106. fenbarmana4.TextStrokeTransparency=0
  107. fenbarmana4.TextColor=BrickColor.new("White")
  108.  
  109. LastMade = nil
  110.  
  111. xNew=function(Table)
  112. local Obj=Instance.new(Table[1])
  113. for Ind,Val in pairs(Table) do
  114. if Ind~=1 and Ind~=2 then
  115. Obj[Ind] = Val
  116. end
  117. end
  118. Obj.Parent=Table[2]
  119. LastMade= Obj
  120. return Obj
  121. end
  122.  
  123. xPart=function(tab)
  124. local v=Instance.new(tab.type or "Part")
  125. if tab.type~="CornerWedgePart" then v.formFactor="Custom" end
  126. v.CanCollide=false
  127. v.TopSurface=10 v.BottomSurface=10 v.RightSurface=10 v.LeftSurface=10 v.FrontSurface=10 v.BackSurface=10
  128. v.Size=v3(tab[2],tab[3],tab[4])
  129. if tab.co then v.BrickColor=bn(tab.co) end
  130. if tab.tr then v.Transparency=tab.tr end
  131. if tab.rf then v.Reflectance=tab.rf end
  132. if tab.cf then v.CFrame=tab.cf end
  133. if tab.an then v.Anchored=tab.an end
  134. if tab.mt then v.Material=tab.mt end
  135. if tab.ca then v.CanCollide=tab.ca end
  136. v.Parent=tab[1]
  137. LastMade= v
  138. return v
  139. end
  140.  
  141. xWeld = function(a,b,between,type)
  142. local Weld = xNew{type or 'Weld',a,Part0 = a,Part1 = b, C0 = cn()}
  143. if between then
  144. Weld.C1 = b.CFrame:inverse() * a.CFrame
  145. else
  146. Weld.C1 = cn()
  147. end
  148. return Weld
  149. end
  150.  
  151. function xSound(id,parent,pitch)
  152. local s = xNew{'Sound', PlayOnRemove = true, SoundId = 'http://roblox.com/asset/?id='..id,Pitch = pitch}
  153. s.Parent = parent
  154. s:Destroy()
  155. if id == 190470714 then
  156. s.Looped = true
  157. s.Name = "Music"
  158. end
  159. end
  160.  
  161. ----
  162. xSound(190470714,workspace,1.5)
  163. ----
  164. do local function QuaternionFromCFrame(cf) local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() local trace = m00 + m11 + m22 if trace > 0 then local s = math.sqrt(1 + trace) local recip = 0.5/s return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 else local i = 0 if m11 > m00 then i = 1 end if m22 > (i == 0 and m00 or m11) then i = 2 end if i == 0 then local s = math.sqrt(m00-m11-m22+1) local recip = 0.5/s return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip elseif i == 1 then local s = math.sqrt(m11-m22-m00+1) local recip = 0.5/s return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip elseif i == 2 then local s = math.sqrt(m22-m00-m11+1) local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip end end end local function QuaternionToCFrame(px, py, pz, x, y, z, w) local xs, ys, zs = x + x, y + y, z + z local wx, wy, wz = w*xs, w*ys, w*zs local xx = x*xs local xy = x*ys local xz = x*zs local yy = y*ys local yz = y*zs local zz = z*zs return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) end local function QuaternionSlerp(a, b, t) local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] local startInterp, finishInterp; if cosTheta >= 0.0001 then if (1 - cosTheta) > 0.0001 then local theta = math.acos(cosTheta) local invSinTheta = 1/math.sin(theta) startInterp = math.sin((1-t)*theta)*invSinTheta finishInterp = math.sin(t*theta)*invSinTheta else startInterp = 1-t finishInterp = t end else if (1+cosTheta) > 0.0001 then local theta = math.acos(-cosTheta) local invSinTheta = 1/math.sin(theta) startInterp = math.sin((t-1)*theta)*invSinTheta finishInterp = math.sin(t*theta)*invSinTheta else startInterp = t-1 finishInterp = t end end return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp end function clerp(a,b,t) local qa = {QuaternionFromCFrame(a)} local qb = {QuaternionFromCFrame(b)} local ax, ay, az = a.x, a.y, a.z local bx, by, bz = b.x, b.y, b.z local _t = 1-t return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) end end
  165. function xlerp(weld,to,tim)
  166. if weld.C1 ~= to then
  167. --weld.C1 = clerp(weld.C1,to,tim)
  168. weld.C1 = weld.C1:lerp(to,tim)
  169. end
  170. end
  171. function lerp(a,b,c)return a+(b-a)*c end
  172. ----
  173. ----
  174. if Char:findFirstChild("Health") then
  175. Char.Health:Destroy()
  176. end
  177. wait(0)
  178. ----
  179. --hd.Mesh.Scale = Vector3.new(hd.Mesh.Scale.X * 3,hd.Mesh.Scale.Y * 3,hd.Mesh.Scale.Z * 3)
  180. ra.Size = ra.Size * 3
  181. la.Size = la.Size * 3
  182. ll.Size = ll.Size * 3
  183. rl.Size = rl.Size * 3
  184. tr.Size = tr.Size * 3
  185. hd.Size = hd.Size * 3
  186. rp.Size = rp.Size * 3
  187. --
  188. local tw = xWeld(rp,tr)
  189. tw.C1 = cn(0,0,0)
  190. local law = xWeld(tr,la)
  191. law.C0 = cn(-4.5,.5,0)
  192. law.C1 = cn(0,.5,0)
  193. local raw = xWeld(tr,ra)
  194. raw.C0 = cn(4.5,.5,0)
  195. raw.C1 = cn(0,.5,0)
  196. local llw = xWeld(tr,ll)
  197. llw.C0 = cn(-1.5,-5,0)
  198. llw.C1 = cn(0,1,0)
  199. local rlw = xWeld(tr,rl)
  200. rlw.C0 = cn(1.5,-5,0)
  201. rlw.C1 = cn(0,1,0)
  202. local hw = xWeld(tr,hd)
  203. hw.C1 = cn(0,-4.5,0)
  204. ras = raw.C1
  205. las = law.C1
  206. lls = llw.C1
  207. rls = rlw.C1
  208. ts = tw.C1
  209. hs = hw.C1
  210. -----
  211. for _,Part in pairs(Char:GetChildren()) do
  212. if Part:IsA('BasePart') then
  213. Part.CustomPhysicalProperties = PhysicalProperties.new(0, .3, .5)
  214. end
  215. end
  216. --------------------------------------------------------
  217. --------------------------------------------------------
  218. -----------------------CONSTANTS------------------------
  219. --------------------------------------------------------
  220. --------------------------------------------------------
  221. REGEN_SPEED = 5
  222. WEAPON_NAME = 'Grandark'
  223. ----------------------------------------------------
  224. ----------------------------------------------------
  225. -----------------------MODEL------------------------
  226. ----------------------------------------------------
  227. ----------------------------------------------------
  228. local Handle
  229. local Blade
  230. local haw
  231. Pack = Instance.new('Model', Char)
  232. Pack.Name = WEAPON_NAME
  233. do
  234. Handle = xPart{Pack,0.54285717, 4.96428585, 1.02857149} Handle.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic; haw = xWeld(ra,Handle); LastMade.C1 = ca(90,0,180)*cn(0,3,0) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  235. xNew{'BlockMesh',Handle,Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  236. local Part = xPart{Pack,0.285714328, 0.949999154, 1.8714298} Part.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, -3.22142696, 1.4642868, -1, 0, -5.96046377e-008, 0, 1, 0, 5.96046377e-008, 0, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  237. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  238. local Part = xPart{Pack,0.521428645, 0.1, 4.92857265} Part.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, -2.59285641, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  239. xNew{'BlockMesh',Part,Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  240. local Part = xPart{Pack,0.864285767, 0.221428677, 5.65714407} Part.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, -2.57142735, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  241. xNew{'BlockMesh',Part,Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  242. local Part = xPart{Pack,0.54285717, 1.01428556, 1.02857149} Part.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, -1.4428587, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  243. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.FileMesh, MeshId = 'http://www.roblox.com/Asset/?id=9756362', TextureId = '', Scale = v3(0.714285731, 1.42857146, 0.714285731), Offset = v3(0, 0, 0)}
  244. local Part = xPart{Pack,0.54285717, 0.657142878, 1.02857149} Part.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, 2.81071377, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  245. xNew{'BlockMesh',Part,Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  246. local Part = xPart{Pack,0.54285717, 0.657142937, 1.02857149} Part.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, 2.81071377, 1.02857018, 1, 0, 0, 0, 1, 0, 0, 0, 1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  247. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  248. local Part = xPart{Pack,0.54285717, 0.657142937, 1.02857149} Part.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, 2.81071377, 1.02857208, -1, 0, 8.74227695e-008, 0, 1, 0, -8.74227695e-008, 0, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  249. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  250. local Part = xPart{Pack,0.54285717, 1.11428583, 0.371428579} Part.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, 2.23928523, 0.699998856, 1, -8.74227695e-008, 8.74227837e-008, 8.74227766e-008, 1, -8.74227695e-008, -8.74227766e-008, 8.74227766e-008, 1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  251. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  252. local Part = xPart{Pack,0.54285717, 1.11428583, 0.371428579} Part.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, 2.23928547, 0.700000763, -1, 8.74227695e-008, 8.74227837e-008, 8.74227766e-008, 1, 8.74227695e-008, -8.74227695e-008, 8.74227766e-008, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  253. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  254. local Part = xPart{Pack,0.342857182, 0.585714281, 0.514285684} Part.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(2.91071415, 0, 0.257143021, -5.96046377e-008, 1, 1.49781926e-007, -1, -5.96046306e-008, -3.92309403e-008, -3.92309296e-008, -1.49781926e-007, 1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  255. xNew{'CylinderMesh',Part,Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  256. local Part = xPart{Pack,0.342857182, 0.585714281, 0.514285684} Part.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(2.91071415, 0, -0.257143021, -5.96046377e-008, 1, 1.49781926e-007, -1, -5.96046306e-008, -3.92309403e-008, -3.92309296e-008, -1.49781926e-007, 1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  257. xNew{'CylinderMesh',Part,Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  258. local Part = xPart{Pack,0.564285755, 0.257142901, 0.514285743} Part.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, 2.35357094, 0.257143021, -1, 8.74227695e-008, 8.74227837e-008, 8.74227766e-008, 1, 8.74227695e-008, -8.74227695e-008, 8.74227766e-008, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  259. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  260. local Part = xPart{Pack,0.564285755, 0.257142901, 0.514285743} Part.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, 2.35357118, 0.257141113, 1, 3.51124925e-008, -2.6822093e-007, -3.51123965e-008, 1, 3.53819075e-007, 2.6822093e-007, -3.53819075e-007, 1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  261. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  262. local Part = xPart{Pack,0.564285755, 1.73571444, 0.200000003} Part.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, 1.50000012, 0.0714263916, 1, 3.51124925e-008, -2.6822093e-007, -3.51123965e-008, 1, 3.53819075e-007, 2.6822093e-007, -3.53819075e-007, 1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  263. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 0.714285672), Offset = v3(0, 0, 0)}
  264. local Part = xPart{Pack,0.564285755, 1.73571444, 0.200000003} Part.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, 1.49999988, 0.0714321136, -1, 6.27284535e-008, 3.87430191e-007, 6.27285388e-008, 1, 2.26830267e-007, -3.87430163e-007, 2.26830295e-007, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  265. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 0.714285672), Offset = v3(0, 0, 0)}
  266. local Part = xPart{Pack,0.54285717, 0.657142937, 1.02857149} Part.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, 2.81071377, 1.02857208, -1, 0, 8.74227695e-008, 0, 1, 0, -8.74227695e-008, 0, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  267. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  268. local Part = xPart{Pack,0.864285767, 0.657142937, 1.02857149} Part.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, 2.48571396, -1.96071529, 1, -4.47536763e-009, -5.65906291e-008, -5.65906291e-008, -1.58996982e-023, -1, 4.47536763e-009, 1, -2.53263884e-016) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  269. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  270. local Part = xPart{Pack,0.864285767, 0.657142937, 1.02857149} Part.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, 2.48571205, -1.96071529, -1, -1.90377425e-009, 5.96046377e-008, 5.96046377e-008, 6.53269716e-010, 1, -1.90377425e-009, 1, -6.53269605e-010) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  271. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  272. Blade = xPart{Pack,0.285714328, 12.2071428, 2.38571548} Blade.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic xWeld(Handle,Blade) LastMade.C1 = CFrame.new(0, -8.56428432, 0.649999619, 1, 0, 0, 0, 1, 0, 0, 0, 1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  273. xNew{'BlockMesh',Blade,Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  274. local Part = xPart{Pack,0.285714328, 0.949999154, 1.8714298} Part.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, -4.22142696, 1.4642868, -1, 0, -5.96046377e-008, 0, 1, 0, 5.96046377e-008, 0, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  275. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  276. local Part = xPart{Pack,0.285714328, 0.949999154, 1.8714298} Part.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, -5.22142696, 1.4642868, -1, 0, -5.96046377e-008, 0, 1, 0, 5.96046377e-008, 0, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  277. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  278. local Part = xPart{Pack,0.285714328, 0.949999154, 1.8714298} Part.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, -6.22142696, 1.4642868, -1, 0, -5.96046377e-008, 0, 1, 0, 5.96046377e-008, 0, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  279. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  280. local Part = xPart{Pack,0.285714328, 0.949999154, 1.8714298} Part.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, -7.22142696, 1.4642868, -1, 0, -5.96046377e-008, 0, 1, 0, 5.96046377e-008, 0, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  281. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  282. local Part = xPart{Pack,0.285714328, 0.949999154, 1.8714298} Part.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, -11.221427, 1.4642868, -1, 0, -5.96046377e-008, 0, 1, 0, 5.96046377e-008, 0, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  283. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  284. local Part = xPart{Pack,0.285714328, 0.949999154, 1.8714298} Part.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, -8.22142696, 1.4642868, -1, 0, -5.96046377e-008, 0, 1, 0, 5.96046377e-008, 0, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  285. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  286. local Part = xPart{Pack,0.285714328, 0.949999154, 1.8714298} Part.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, -9.22142696, 1.4642868, -1, 0, -5.96046377e-008, 0, 1, 0, 5.96046377e-008, 0, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  287. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  288. local Part = xPart{Pack,0.285714328, 0.949999154, 1.8714298} Part.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, -10.221427, 1.4642868, -1, 0, -5.96046377e-008, 0, 1, 0, 5.96046377e-008, 0, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  289. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  290. local Part = xPart{Pack,0.285714328, 0.949999154, 1.8714298} Part.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, -12.221427, 1.4642868, -1, 0, -5.96046377e-008, 0, 1, 0, 5.96046377e-008, 0, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  291. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  292. local Part = xPart{Pack,0.285714328, 0.949999154, 1.8714298} Part.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, -13.2214279, 1.4642868, -1, 0, -5.96046377e-008, 0, 1, 0, 5.96046377e-008, 0, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  293. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  294. local Part = xPart{Pack,0.285714328, 0.949999154, 2.01428699} Part.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, 14.1928558, 1.5357151, 1, 1.06776947e-016, 2.85758261e-009, 1.39271539e-016, -1, -1.13713643e-008, 2.85758261e-009, 1.13713643e-008, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  295. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  296. local Part = xPart{Pack,0.285714328, 0.949999154, 1.15714407} Part.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, 14.1928558, 2.3214283, -1, 2.33221598e-009, 0, -2.33221553e-009, -1, -4.92687668e-010, 0, -4.92687668e-010, 1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  297. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  298. end
  299. has = haw.C1
  300.  
  301. for _,v in pairs(Pack:GetChildren()) do
  302. v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0)
  303. end
  304. --------------------------------------------------------
  305. --------------------------------------------------------
  306. -----------------------VARIABLES------------------------
  307. --------------------------------------------------------
  308. --------------------------------------------------------
  309. State = 'Idle'
  310. FallTime = 0
  311. Walk = 0
  312. WalkReverse = false
  313. StompDB = false
  314. JumpDB = false
  315. --
  316. function NewHitbox(Radius,Position)
  317. local Returning = {}
  318. for _,v in pairs(workspace:GetChildren()) do
  319. if v~=Char and v:FindFirstChild('Humanoid') and v:FindFirstChild('Torso') then
  320. local Mag = (v.Torso.Position - Position).magnitude
  321. if Mag < Radius then
  322. table.insert(Returning,v)
  323. end
  324. end
  325. end
  326. return Returning
  327. end
  328. --
  329. function UpdateState()
  330. if (rp.Velocity*v3(1, 0, 1)).magnitude > 5 then
  331. if State == 'Idle' then State = 'Walking' end
  332. else
  333. if State == 'Walking' then State = 'Idle'; end
  334. end
  335. if WalkReverse then
  336. Walk = Walk - .5
  337. else
  338. Walk = Walk + .5
  339. end
  340. if Walk >= 10 then
  341. WalkReverse = true
  342. elseif Walk <= -10 then
  343. WalkReverse = false
  344. end
  345. end
  346. --
  347. function JumpExplode()
  348. local Hit = NewHitbox(35,Char.Torso.Position)
  349. for _,v in pairs(Hit) do
  350. v.Humanoid.MaxHealth = 100
  351. v.Humanoid.Health = v.Humanoid.Health - 1000000000
  352. if sit then
  353. v.Humanoid.Sit = true
  354. end
  355. end
  356. xSound('2233908',tr,1)
  357. coroutine.wrap(function()
  358. local Explosion = xNew{'Part',Char,Anchored = true,CanCollide = false,FormFactor = 'Custom',BrickColor = bn('Earth green')}
  359. local Mesh = xNew{'SpecialMesh', Explosion,MeshType = 'FileMesh', MeshId = 'http://www.roblox.com/asset/?id=20329976'}
  360. Explosion.CFrame = Char.Torso.CFrame * cn(0,-20,0)
  361. Mesh.Scale = v3(1,7,1)
  362. repeat
  363. Mesh.Scale = Mesh.Scale + v3(1,0,1)
  364. Explosion.Transparency = Explosion.Transparency + .025
  365. wait()
  366. until Explosion.Transparency >= 1
  367. Explosion:Destroy()
  368. end)()
  369. end
  370. --
  371. function Stomp()
  372. if State == 'Walking' or State == 'Idle' then
  373. if StompDB == false then
  374. StompDB = true
  375. State = 'Attacking'
  376. Human.WalkSpeed = 0
  377. --
  378. xSound('138186576',Char.Head,1)
  379. for _=0,1,.05 do
  380. xlerp(tw,ts,.2)
  381. xlerp(hw,hs*ca(40,0,0)*cn(0,-1,-1.5),.2)
  382. xlerp(rlw,rls*ca(20,0,0),.2)
  383. xlerp(llw,lls*cn(0,-2,1.25),.2)
  384. xlerp(raw,ras*ca(20,0,-20)*cn(-.5,-.5,0),.2)
  385. xlerp(law,las*ca(20,0,0),.2)
  386. wait()
  387. end
  388. coroutine.wrap(function()
  389. local Explosion = xNew{'Part',Char,Anchored = true,CanCollide = false,FormFactor = 'Custom',BrickColor = bn('Earth green')}
  390. local Mesh = xNew{'SpecialMesh', Explosion,MeshType = 'FileMesh', MeshId = 'http://www.roblox.com/asset/?id=3270017'}
  391. Explosion.CFrame = rp.CFrame * cn(0,-7,0)*ca(90,0,0)
  392. Mesh.Scale = v3(5,5,10)
  393. repeat
  394. Mesh.Scale = Mesh.Scale + v3(2,2,.5)
  395. Explosion.Transparency = Explosion.Transparency + .01
  396. wait()
  397. until Explosion.Transparency >= 1
  398. Explosion:Destroy()
  399. end)()
  400. coroutine.wrap(function()
  401. local Already = {}
  402. for i=1,50,2 do
  403. wait(.1)
  404. local Hit = NewHitbox(i*2,Char.Torso.Position)
  405. for _,v in pairs(Hit) do
  406. if not Already[v] then
  407. v.Humanoid.MaxHealth = 100
  408. v.Humanoid.Health = v.Humanoid.Health - 300000000000
  409. if sit then
  410. v.Humanoid.Sit = true
  411. end
  412. Already[v] = true
  413. end
  414. end
  415. end
  416. end)()
  417. --attack
  418. for _=0,1,.05 do
  419. xlerp(tw,ts,.3)
  420. xlerp(hw,hs*ca(40,0,0)*cn(0,-1,-1.5),.3)
  421. xlerp(rlw,rls*ca(20,0,0),.3)
  422. xlerp(llw,lls*cn(0,0,1.25),.3)
  423. xlerp(raw,ras*ca(20,0,-20)*cn(-.5,-.5,0),.3)
  424. xlerp(law,las*ca(20,0,0),.3)
  425. wait()
  426. end
  427. State = 'Idle'
  428. Human.WalkSpeed = 50
  429. coroutine.wrap(function()
  430. wait(0)
  431. StompDB = false
  432. end)()
  433. end
  434. end
  435. end
  436. --
  437. function Charge()
  438. if State == 'Walking' or State == 'Idle' then
  439. State = 'Charge'
  440. for _, controller in pairs(game:GetService("ControllerService"):GetChildren()) do
  441. controller.Parent = workspace
  442. end
  443. local function Exp()
  444. local Explosion = xNew{'Part',Char,Anchored = true,CanCollide = false,FormFactor = 'Custom',BrickColor = bn('White')}
  445. local Mesh = xNew{'SpecialMesh', Explosion,MeshType = 'FileMesh', MeshId = 'http://www.roblox.com/asset/?id=20329976'}
  446. Explosion.CFrame = rp.CFrame * cn(0,0,-15)*ca(70,0,0)
  447. Mesh.Scale = v3(1,6,1)
  448. repeat
  449. Char.Head.Velocity=Char.Head.CFrame.lookVector*100
  450. Mesh.Scale = Mesh.Scale + v3(1,.5,1)
  451. Explosion.Transparency = Explosion.Transparency + .05
  452. wait()
  453. until Explosion.Transparency >= 1
  454. Explosion:Destroy()
  455. end
  456. coroutine.wrap(function()
  457. wait(0)
  458. Human.WalkSpeed = 80
  459. Char.Head.Velocity=Char.Head.CFrame.lookVector*200
  460. for _=1, 10 do
  461. coroutine.wrap(Exp)()
  462. local Hit = NewHitbox(10,Char.Torso.Position)
  463. for _,v in pairs(Hit) do
  464. v.Humanoid.MaxHealth = 100
  465. v.Humanoid.Health = v.Humanoid.Health - 100000000000
  466. end
  467. wait(0)
  468. xSound('10730819',tr,.8)
  469. Char.Head.Velocity=Char.Head.CFrame.lookVector*100
  470. end
  471. Human.WalkSpeed = 50
  472. State = 'Idle'
  473. end)()
  474. --
  475. for _=0,1,.05 do
  476. Char.Head.Velocity=Char.Head.CFrame.lookVector*100
  477. xlerp(tw,ts*ca(0,-90,0),.4)
  478. xlerp(hw,hs*ca(0,90,0),.4)
  479. xlerp(raw,ras*ca(-90,0,-90)*cn(0,-1,0),.4)
  480. xlerp(law,las*ca(0,0,40)*cn(1,-.5,0),.4)
  481. xlerp(rlw,rls*ca(0,0,10)*cn(1,0,0),.4)
  482. xlerp(llw,lls*ca(0,0,10)*cn(1,0,0),.4)
  483. wait()
  484. end
  485. --
  486. end
  487. end
  488. function Combo()
  489. if State == 'Idle' or State == 'Walking' then
  490. State = 'Attacking'
  491. Human.WalkSpeed = 3
  492. for _=0,1,.2 do
  493. xlerp(tw,ts*ca(0,20,0),.4)
  494. xlerp(hw,hs*ca(0,30,0),.4)
  495. xlerp(raw,ras*ca(0,180,-90)*cn(-1,-1,0),.4)
  496. xlerp(law,las*ca(0,0,40)*cn(1,-.5,0),.4)
  497. xlerp(rlw,rls*ca(20,0,0)*cn(0,0,-1),.4)
  498. xlerp(llw,lls*cn(0,0,1.25),.4)
  499. wait()
  500. end
  501. local Already = {}
  502. xSound('231731980',tr,1.3)
  503. for _=0,1,.1 do
  504. xlerp(tw,ts*ca(0,-30,0),.4)
  505. xlerp(hw,hs*ca(0,-50,0),.4)
  506. xlerp(raw,ras*ca(160,180,-130)*cn(2,-1,1),.4)
  507. xlerp(law,las*ca(0,0,40)*cn(1,-.5,0),.4)
  508. xlerp(rlw,rls*ca(20,0,0)*cn(0,0,-1),.4)
  509. xlerp(llw,lls*cn(0,0,1.25),.4)
  510. xlerp(haw,has*ca(40,0,0),.4)
  511. wait()
  512. local Hit = NewHitbox(15,(Blade.CFrame).p)
  513. for _,v in pairs(Hit) do
  514. if not Already[v] then
  515. v.Humanoid.MaxHealth = 100
  516. v.Humanoid.Health = v.Humanoid.Health - 300000000000
  517. Already[v] = true
  518. end
  519. end
  520. end
  521. ----Combo2
  522. for _=0,1,.2 do
  523. xlerp(tw,ts*ca(0,-35,0),.4)
  524. xlerp(haw,has,.4)
  525. xlerp(hw,hs*ca(0,-30,0),.4)
  526. xlerp(raw,ras*ca(-120,0,-70)*cn(1,-1,0),.4)
  527. xlerp(law,las*ca(0,0,40)*cn(1,-.5,0),.4)
  528. xlerp(rlw,rls*ca(20,0,0)*cn(0,0,-1),.4)
  529. xlerp(llw,lls*cn(0,0,1.25),.4)
  530. wait()
  531. end
  532. xSound('231731980',tr,1)
  533. local Already = {}
  534. for _=0,1,.1 do
  535. xlerp(tw,ts*ca(0,20,0),.4)
  536. xlerp(hw,hs*ca(0,30,0),.4)
  537. xlerp(raw,ras*ca(30,0,-90)*cn(0,-1,0),.4)
  538. xlerp(law,las*ca(0,0,40)*cn(1,-.5,0),.4)
  539. xlerp(rlw,rls*ca(20,0,0)*cn(0,0,-1),.4)
  540. xlerp(llw,lls*cn(0,0,1.25),.4)
  541. wait()
  542. local Hit = NewHitbox(15,(Blade.CFrame).p)
  543. for _,v in pairs(Hit) do
  544. if not Already[v] then
  545. v.Humanoid.MaxHealth = 100
  546. v.Humanoid.Health = v.Humanoid.Health - 3000000000000
  547. Already[v] = true
  548. end
  549. end
  550. end
  551. --Combo 3
  552. for _=0,1,.1 do
  553. xlerp(tw,ts,.3)
  554. xlerp(hw,hs,.3)
  555. xlerp(haw,has,.3)
  556. xlerp(raw,ras*ca(-140,0,0)*cn(0,-1.5,0),.3)
  557. xlerp(law,las*ca(0,0,40)*cn(1,-.5,0),.3)
  558. xlerp(rlw,rls*ca(20,0,0)*cn(0,0,-1),.3)
  559. xlerp(llw,lls*cn(0,0,1.25),.4)
  560. wait()
  561. end
  562. xSound('231731980',tr,.8)
  563. local Already = {}
  564. for _=0,1,.1 do
  565. xlerp(tw,ts*ca(15,0,0)*cn(0,1.5,0),.4)
  566. xlerp(hw,hs,.4)
  567. xlerp(raw,ras*ca(-20,0,0)*cn(0,0,0),.4)
  568. xlerp(law,las*ca(0,0,40)*cn(1,-.5,0),.4)
  569. xlerp(haw,has*ca(20,0,0),.4)
  570. wait()
  571. local Hit = NewHitbox(10,(Blade.CFrame).p)
  572. for _,v in pairs(Hit) do
  573. if not Already[v] then
  574. v.Humanoid.MaxHealth = 100
  575. v.Humanoid.Health = v.Humanoid.Health - 300000000000
  576. Already[v] = true
  577. end
  578. end
  579. end
  580. wait(.2)
  581. State = 'Idle'
  582. Human.WalkSpeed = 50
  583. end
  584. end
  585. --
  586. function SwordSlam()
  587. if State == 'Walking' or State == 'Idle' then
  588. State = 'Attacking'
  589. Human.WalkSpeed = 0
  590. for _=0,1,.05 do
  591. xlerp(tw,ts,.2)
  592. xlerp(hw,hs,.2)
  593. xlerp(raw,ras*ca(-140,0,0)*cn(0,-1.5,0),.2)
  594. xlerp(law,las*ca(0,0,40)*cn(1,-.5,0),.2)
  595. xlerp(rlw,rls*ca(20,0,0)*cn(0,0,-1),.2)
  596. xlerp(llw,lls*cn(0,0,1.25),.2)
  597. wait()
  598. end
  599. coroutine.wrap(function()
  600. wait()
  601. xSound('10730819',tr,.5)
  602. local Explosion = xNew{'Part',Char,Anchored = true,CanCollide = false,FormFactor = 'Custom',BrickColor = bn('dsasda')}
  603. local Mesh = xNew{'SpecialMesh', Explosion,MeshType = 'FileMesh', MeshId = 'http://www.roblox.com/asset/?id=20329976'}
  604. Explosion.CFrame = rp.CFrame * cn(0,-5,-20)
  605. Mesh.Scale = v3(1,5,1)
  606. repeat
  607. Mesh.Scale = Mesh.Scale + v3(1,1,1)
  608. Explosion.Transparency = Explosion.Transparency + .025
  609. wait()
  610. until Explosion.Transparency >= 1
  611. Explosion:Destroy()
  612. end)()
  613. for _=0,1,.15 do
  614. xlerp(tw,ts*ca(15,0,0)*cn(0,1.5,0),.4)
  615. xlerp(hw,hs,.4)
  616. xlerp(raw,ras*ca(-20,0,0)*cn(0,0,0),.4)
  617. xlerp(law,las*ca(0,0,40)*cn(1,-.5,0),.4)
  618. xlerp(haw,has*ca(20,0,0),.4)
  619. wait()
  620. end
  621. local Hit = NewHitbox(40,(rp.CFrame * cn(0,-5,-20)).p)
  622. for _,v in pairs(Hit) do
  623. v.Humanoid.MaxHealth = 100
  624. v.Humanoid.Health = v.Humanoid.Health - 100000000000
  625. if sit then
  626. v.Humanoid.Sit = true
  627. end
  628. end
  629. wait(0)
  630. State = 'Idle'
  631. Human.WalkSpeed = 50
  632. end
  633. end
  634. --
  635. CanBoom = true
  636. function Fire(Part)
  637. local Flame = Instance.new("ParticleEmitter",Part)
  638. Flame.LightEmission = 0.21
  639. Flame.Size = NumberSequence.new(15)
  640. Flame.Texture = "http://www.roblox.com/asset/?id=366803190"
  641. Flame.Transparency = NumberSequence.new(0.5)
  642. Flame.LockedToPart = true
  643. Flame.Lifetime = NumberRange.new(0.1,0.8)
  644. Flame.Rate = 40
  645. Flame.VelocitySpread = 2
  646. end
  647. Mouse.KeyDown:connect(function(key)
  648. if key == ' ' then
  649. if State == 'Walking' or State == 'Idle' then
  650. if JumpDB == false then
  651. JumpDB = true
  652. State = 'Jumping'
  653. Human.Jump = true
  654. Human.WalkSpeed = 50
  655. wait(0)
  656. State = 'Falling'
  657. coroutine.wrap(function()
  658. wait(0)
  659. JumpDB = false
  660. end)()
  661. end
  662. end
  663. elseif key == 'z' and Mana >= 400 then
  664. Mana = Mana-400
  665. Combo()
  666. elseif key == 'x' and Mana >= 300 then
  667. Mana = Mana-300
  668. Charge()
  669. elseif key == 'c' and Mana >= 250 then
  670. Mana = Mana-250
  671. SwordSlam()
  672. elseif key == 'v' and Mana >= 100 then
  673. Mana = Mana-100
  674. Stomp()
  675. elseif key == "p" and Mana >= 1000 then
  676. Mana = Mana-1000
  677. Stomp()
  678. wait()
  679. SwordSlam()
  680. wait()
  681. Combo()
  682. wait()
  683. Combo()
  684. elseif key == "f" and Mana >= 800 and CanBoom then
  685. Mana = Mana - 800
  686. CanBoom = false
  687. local P = Instance.new("Part",Char)
  688. P.Name = "Boom"
  689. P.Anchored = true
  690. P.Transparency = 1
  691. Fire(P)
  692. P.Material = "Neon"
  693. P.BrickColor = BrickColor.new("Crimson")
  694. P.TopSurface = "Smooth"
  695. P.CFrame = Torso.CFrame
  696. P.CanCollide = false
  697. xSound(161451748,workspace,0.9)
  698. function Hit(hit)
  699. if hit.Parent and hit.Parent:findFirstChild("Humanoid") then
  700. if hit.Parent:findFirstChild("Torso") and hit.Parent.Name ~= Player.Character.Name and hit.Parent:findFirstChild("Flamed") == nil then
  701. local Z = Instance.new("StringValue",hit.Parent)
  702. Z.Name = "Flamed"
  703. local Torsoo = hit.Parent:findFirstChild("Torso")
  704. Torsoo.Anchored = true
  705. for i,v in pairs(hit.Parent:GetChildren()) do
  706. Fire(v)
  707. end
  708. if hit.Parent:findFirstChild("Humanoid") then
  709. local H = hit.Parent:findFirstChild("Humanoid")
  710. H.MaxHealth = math.huge
  711. H.WalkSpeed = 0
  712. H.JumpPower = 0
  713. wait()
  714. Torsoo.Anchored = false
  715. H:remove()
  716. if hit.Parent then
  717. hit.Parent:BreakJoints()
  718. end
  719. end
  720. end
  721. end
  722. end
  723. P.Touched:connect(Hit)
  724. for i=1,100 do
  725. wait(0.1)
  726. P.CFrame = Torso.CFrame
  727. P.Size = Vector3.new(P.Size.X + 0.5,P.Size.Y + 0.5,P.Size.Z + 0.5)
  728. P.CFrame = Torso.CFrame
  729. end
  730. P:remove()
  731. wait(0)
  732. CanBoom = true
  733.  
  734. end
  735. end)
  736. --
  737. Human.Changed:connect(function()
  738. if State ~= 'Jumping' then
  739. Human.Jump = false
  740. end
  741. end)
  742.  
  743. Human.FreeFalling:connect(function(a)
  744. if a then
  745. if State == 'Walking' or State == 'Idle' then
  746. State = 'Falling'
  747. end
  748. elseif State == 'Jumping' or State == 'Falling' then
  749. State = 'Idle'
  750. if FallTime > 10 then
  751. print('Boom!')
  752. JumpExplode()
  753. end
  754. Human.WalkSpeed = 50
  755. FallTime = 0
  756. end
  757. end)
  758. --
  759. wait(0)
  760. game:GetService('RunService').RenderStepped:connect(function()
  761. UpdateState()
  762. if State == 'Jumping' or State == 'Falling' then
  763. FallTime = FallTime + .1
  764. xlerp(tw,ts,.3)
  765. xlerp(hw,hs*ca(40,0,0)*cn(0,-1,-1.5),.2)
  766. xlerp(raw,ras*ca(0,0,-90)*cn(-1,-1,0),.2)
  767. xlerp(law,las*ca(0,0,90)*cn(1,-1,0),.2)
  768. xlerp(rlw,rls*ca(20,0,0),.2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement