Advertisement
Explosin59

aeroblade

Jul 19th, 2017
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 58.84 KB | None | 0 0
  1. pcall(function()
  2. Player = game:GetService("Players").LocalPlayer
  3. Character = Player.Character
  4. PlayerGui = Player.PlayerGui
  5. Backpack = Player.Backpack
  6. Torso = Character.Torso
  7. Head = Character.Head
  8. LeftArm = Character["Left Arm"]
  9. LeftLeg = Character["Left Leg"]
  10. RightArm = Character["Right Arm"]
  11. RightLeg = Character["Right Leg"]
  12. LS = Torso["Left Shoulder"]
  13. LH = Torso["Left Hip"]
  14. RS = Torso["Right Shoulder"]
  15. RH = Torso["Right Hip"]
  16. attack = false
  17. attackdebounce = false
  18. combo = 0
  19. mana = 400
  20. necko=CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  21. necko2=CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  22. hold=false
  23. MMouse=nil
  24. equipped=false
  25. attack=false
  26. holddash=false
  27. dashing=false
  28. act = {key = {}}
  29. walking = false
  30. normattack=false
  31. sitting=false
  32. --player
  33. player = nil
  34. --save shoulders
  35. RSH, LSH = nil, nil
  36. --welds
  37. RW, LW , RWL, LWL = Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld")
  38. --what anim
  39. anim = "none"
  40. bodpos=Instance.new("BodyPosition")
  41. bodpos.P=2000
  42. bodpos.D=100
  43. bodpos.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  44. if Character:findFirstChild("AeroBlade",true) ~= nil then
  45. Character:findFirstChild("AeroBlade",true).Parent = nil
  46. end
  47. if Player.PlayerGui:findFirstChild("manaGUI",true) ~= nil then
  48. Player.PlayerGui:findFirstChild("manaGUI",true).Parent = nil
  49. end
  50. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  51. local fp = Instance.new("Part")
  52. fp.formFactor = formfactor
  53. fp.Parent = parent
  54. fp.Reflectance = reflectance
  55. fp.Transparency = transparency
  56. fp.CanCollide = false
  57. fp.BrickColor = brickcolor
  58. fp.Name = name
  59. fp.Size = size
  60. fp.Position = Torso.Position
  61. fp.BottomSurface="Smooth"
  62. fp.TopSurface="Smooth"
  63. fp:BreakJoints()
  64. return fp
  65. end
  66. local modelzorz = Instance.new("Model")
  67. modelzorz.Name = "AeroBlade"
  68. modelzorz.Parent = Character
  69. local prt1 = part(1,modelzorz,0,0,BrickColor.new("Gold"),"Part1",Vector3.new(1,1,1))
  70. local prt2 = part(1,modelzorz,0,0,BrickColor.new("Really black"),"Part2",Vector3.new(1,1,1))
  71. local prt3 = part(1,modelzorz,0,0,BrickColor.new("Gold"),"Part3",Vector3.new(1,1,1))
  72. local prt4 = part(1,modelzorz,0,0,BrickColor.new("Gold"),"Part4",Vector3.new(1,1,1))
  73. local prt5 = part(1,modelzorz,0,0,BrickColor.new("Really black"),"Part5",Vector3.new(1,1,1))
  74. local prt6 = part(1,modelzorz,0,0,BrickColor.new("Gold"),"Part6",Vector3.new(1,1,1))
  75. local prt7 = part(1,modelzorz,0,0,BrickColor.new("Really black"),"Part7",Vector3.new(1,1,1))
  76. local prt8 = part(1,modelzorz,0,0,BrickColor.new("Really black"),"Part8",Vector3.new(1,1,1))
  77. local prt9 = part(1,modelzorz,0,0,BrickColor.new("Gold"),"Part9",Vector3.new(1,1,1))
  78. local prt10 = part(1,modelzorz,0.5,0,BrickColor.new("Gold"),"Part10",Vector3.new(1,1,1))
  79. local prt11 = part(1,modelzorz,0,0,BrickColor.new("Really black"),"Part11",Vector3.new(1,1,1))
  80. local prt12 = part(1,modelzorz,0,0,BrickColor.new("Gold"),"Part12",Vector3.new(1,1,1))
  81. local prt13 = part(1,modelzorz,0,0,BrickColor.new("Really black"),"Part13",Vector3.new(1,1,1))
  82. local prt14 = part(1,modelzorz,0,0,BrickColor.new("Gold"),"Part14",Vector3.new(1,1,1))
  83. local prt15 = part(1,modelzorz,0,0,BrickColor.new("Really black"),"Part15",Vector3.new(1,1,1))
  84. local prt16 = part(1,modelzorz,0,0,BrickColor.new("Gold"),"Part16",Vector3.new(1,1,1))
  85. local prt17 = part(1,modelzorz,0,0,BrickColor.new("Really black"),"Part17",Vector3.new(1,1,1))
  86. local prt18 = part(1,modelzorz,0,0,BrickColor.new("Really black"),"Part18",Vector3.new(1,1,1))
  87. local msh1 = Instance.new("CylinderMesh")
  88. msh1.Parent = prt1
  89. msh1.Scale = Vector3.new(0.5,1,0.5)
  90. local msh2 = Instance.new("CylinderMesh")
  91. msh2.Parent = prt2
  92. msh2.Scale = Vector3.new(0.4,2,0.4)
  93. local msh3 = Instance.new("CylinderMesh")
  94. msh3.Parent = prt3
  95. msh3.Scale = Vector3.new(0.41,0.1,0.41)
  96. local msh4 = Instance.new("CylinderMesh")
  97. msh4.Parent = prt4
  98. msh4.Scale = Vector3.new(0.41,0.1,0.41)
  99. local msh5 = Instance.new("CylinderMesh")
  100. msh5.Parent = prt5
  101. msh5.Scale = Vector3.new(0.5,0.5,0.5)
  102. local msh6 = Instance.new("SpecialMesh")
  103. msh6.Parent = prt6
  104. msh6.MeshType="Sphere"
  105. msh6.Scale = Vector3.new(0.49,0.8,0.49)
  106. local msh7 = Instance.new("CylinderMesh")
  107. msh7.Parent = prt7
  108. msh7.Scale = Vector3.new(0.5,0.5,0.5)
  109. local msh8 = Instance.new("BlockMesh")
  110. msh8.Parent = prt8
  111. msh8.Scale = Vector3.new(0.35,1,0.35)
  112. local msh9 = Instance.new("CylinderMesh")
  113. msh9.Parent = prt9
  114. msh9.Scale = Vector3.new(0.5,0.1,0.5)
  115. local msh10 = Instance.new("BlockMesh")
  116. msh10.Parent = prt10
  117. msh10.Scale = Vector3.new(0.4,2,0.1)
  118. local msh11 = Instance.new("BlockMesh")
  119. msh11.Parent = prt11
  120. msh11.Scale = Vector3.new(0.21,1,0.11)
  121. local msh12 = Instance.new("CylinderMesh")
  122. msh12.Parent = prt12
  123. msh12.Scale = Vector3.new(0.5,0.1,0.5)
  124. local msh13 = Instance.new("BlockMesh")
  125. msh13.Parent = prt13
  126. msh13.Scale = Vector3.new(0.5,2,0.5)
  127. local msh14 = Instance.new("CylinderMesh")
  128. msh14.Parent = prt14
  129. msh14.Scale = Vector3.new(0.49,0.1,0.49)
  130. local msh15 = Instance.new("CylinderMesh")
  131. msh15.Parent = prt15
  132. msh15.Scale = Vector3.new(0.48,1,0.48)
  133. local msh16 = Instance.new("CylinderMesh")
  134. msh16.Parent = prt16
  135. msh16.Scale = Vector3.new(0.49,0.1,0.49)
  136. local msh17 = Instance.new("BlockMesh")
  137. msh17.Parent = prt17
  138. msh17.Scale = Vector3.new(0.5,1,0.5)
  139. local msh18 = Instance.new("SpecialMesh")
  140. msh18.Parent = prt18
  141. msh18.MeshType="Wedge"
  142. msh18.Scale = Vector3.new(0.5,0.5,0.5)
  143. local wld1 = Instance.new("Weld")
  144. wld1.Parent = prt1
  145. wld1.Part0 = prt1
  146. wld1.Part1 = Torso
  147. wld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,-1) * CFrame.new(3,-2,-0.7)
  148. local wld2 = Instance.new("Weld")
  149. wld2.Parent = prt2
  150. wld2.Part0 = prt2
  151. wld2.Part1 = prt1
  152. wld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  153. local wld3 = Instance.new("Weld")
  154. wld3.Parent = prt3
  155. wld3.Part0 = prt3
  156. wld3.Part1 = prt2
  157. wld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.8,0)
  158. local wld4 = Instance.new("Weld")
  159. wld4.Parent = prt4
  160. wld4.Part0 = prt4
  161. wld4.Part1 = prt2
  162. wld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.8,0)
  163. local wld5 = Instance.new("Weld")
  164. wld5.Parent = prt5
  165. wld5.Part0 = prt5
  166. wld5.Part1 = prt2
  167. wld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1.2,0)
  168. local wld6 = Instance.new("Weld")
  169. wld6.Parent = prt6
  170. wld6.Part0 = prt6
  171. wld6.Part1 = prt5
  172. wld6.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.2,0)
  173. local wld7 = Instance.new("Weld")
  174. wld7.Parent = prt7
  175. wld7.Part0 = prt7
  176. wld7.Part1 = prt2
  177. wld7.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1.2,0)
  178. local wld8 = Instance.new("Weld")
  179. wld8.Parent = prt8
  180. wld8.Part0 = prt8
  181. wld8.Part1 = prt7
  182. wld8.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.5,0)
  183. local wld9 = Instance.new("Weld")
  184. wld9.Parent = prt9
  185. wld9.Part0 = prt9
  186. wld9.Part1 = prt8
  187. wld9.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.6,0)
  188. local wld10 = Instance.new("Weld")
  189. wld10.Parent = prt10
  190. wld10.Part0 = prt10
  191. wld10.Part1 = prt9
  192. wld10.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1.2,0)
  193. local wld11 = Instance.new("Weld")
  194. wld11.Parent = prt11
  195. wld11.Part0 = prt11
  196. wld11.Part1 = prt10
  197. wld11.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.1,-0.6,0)
  198. local wld12 = Instance.new("Weld")
  199. wld12.Parent = prt12
  200. wld12.Part0 = prt12
  201. wld12.Part1 = prt9
  202. wld12.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.1,0)
  203. local wld13 = Instance.new("Weld")
  204. wld13.Parent = prt13
  205. wld13.Part0 = prt13
  206. wld13.Part1 = prt12
  207. wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1.2,0)
  208. local wld14 = Instance.new("Weld")
  209. wld14.Parent = prt14
  210. wld14.Part0 = prt14
  211. wld14.Part1 = prt13
  212. wld14.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1.2,0)
  213. local wld15 = Instance.new("Weld")
  214. wld15.Parent = prt15
  215. wld15.Part0 = prt15
  216. wld15.Part1 = prt14
  217. wld15.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.3,0)
  218. local wld16 = Instance.new("Weld")
  219. wld16.Parent = prt16
  220. wld16.Part0 = prt16
  221. wld16.Part1 = prt15
  222. wld16.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.3,0)
  223. local wld17 = Instance.new("Weld")
  224. wld17.Parent = prt17
  225. wld17.Part0 = prt17
  226. wld17.Part1 = prt16
  227. wld17.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.6,0)
  228. local wld18 = Instance.new("Weld")
  229. wld18.Parent = prt18
  230. wld18.Part0 = prt18
  231. wld18.Part1 = prt17
  232. wld18.C0 = CFrame.fromEulerAnglesXYZ(3.14,3.14,0) * CFrame.new(0,0.9,0)
  233. local fengui = Instance.new("GuiMain")
  234. fengui.Parent = Player.PlayerGui
  235. fengui.Name = "manaGUI"
  236. local fenframe = Instance.new("Frame")
  237. fenframe.Parent = fengui
  238. fenframe.BackgroundColor3 = Color3.new(255,255,255)
  239. fenframe.BackgroundTransparency = 1
  240. fenframe.BorderColor3 = Color3.new(17,17,17)
  241. fenframe.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
  242. local fentext = Instance.new("TextLabel")
  243. fentext.Parent = fenframe
  244. fentext.Text = "Mana("..mana..")"
  245. fentext.BackgroundTransparency = 1
  246. fentext.SizeConstraint = "RelativeXY"
  247. fentext.TextXAlignment = "Center"
  248. fentext.TextYAlignment = "Center"
  249. fentext.Position = UDim2.new(0,80,1,200)
  250. local fentext2 = Instance.new("TextLabel")
  251. fentext2.Parent = fenframe
  252. fentext2.Text = " "
  253. fentext2.BackgroundTransparency = 0
  254. fentext2.BackgroundColor3 = Color3.new(0,0,0)
  255. fentext2.SizeConstraint = "RelativeXY"
  256. fentext2.TextXAlignment = "Center"
  257. fentext2.TextYAlignment = "Center"
  258. fentext2.Position = UDim2.new(0,10,1,170)
  259. fentext2.Size = UDim2.new(2.79999995,0,0.210000306,0)
  260. local fentext3 = Instance.new("TextLabel")
  261. fentext3.Parent = fenframe
  262. fentext3.Text = " "
  263. fentext3.BackgroundTransparency = 0
  264. fentext3.BackgroundColor3 = Color3.new(1,1,0)
  265. fentext3.SizeConstraint = "RelativeXY"
  266. fentext3.TextXAlignment = "Center"
  267. fentext3.TextYAlignment = "Center"
  268. fentext3.Position = UDim2.new(0,10,1,170)
  269. fentext3.Size = UDim2.new(mana*0.007,0,0.400000006,0)
  270. --2.9000001, 0}, {0.450000018, 0}
  271. local gairo = Instance.new("BodyGyro")
  272. gairo.Parent = nil
  273. gairo.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  274. gairo.P = 20e+003
  275. if (script.Parent.className ~= "HopperBin") then
  276. Tool = Instance.new("HopperBin")
  277. Tool.Parent = Backpack
  278. Tool.Name = "AeroBlade"
  279. script.Parent = Tool
  280. end
  281. Bin = script.Parent
  282. local gairo = Instance.new("BodyGyro")
  283. gairo.Parent = nil
  284. gairo.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  285. gairo.P = 20e+003
  286. function hideanim()
  287. equipped=false
  288. wld1.Parent = prt1
  289. wld1.Part0 = prt1
  290. wld1.Part1 = Torso
  291. wld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,-1) * CFrame.new(3,-2,-0.7)
  292. wld1.C1=CFrame.fromEulerAnglesXYZ(0,0,0)
  293. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5)
  294. gairo.Parent=nil
  295. wait()
  296. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  297. end
  298. function equipanim()
  299. equipped=true
  300. wld1.Parent = prt13
  301. wld1.Part0 = prt13
  302. wld1.Part1 = RightArm
  303. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,0) * CFrame.new(0,1,1)
  304. wld1.C1=CFrame.fromEulerAnglesXYZ(0.2,0,0)
  305. Stance()
  306. RWL.C0 = CFrame.new(0.5,-1.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  307. RWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  308. LWL.C0 = CFrame.new(-0.5-0.6,-1.5+0.3,-0.3) * CFrame.fromEulerAnglesXYZ(0.5,0,-0.7+0.2)
  309. LWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  310. --[[gairo.Parent=Head
  311. gairo.cframe=Head.CFrame
  312. for i=0,1,0.1 do
  313. wait()
  314. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57-0.3*i,3.14,-0.3*i) * CFrame.new(0,0,-0.5)
  315. --gairo.cframe=Torso.CFrame*CFrame.fromEulerAnglesXYZ(-0.05,-0.1,0)
  316. end]]
  317. end
  318. function Walking(speed)
  319. walking=true
  320. for i=0,1,speed do
  321. wait()
  322. RWL.C0 = CFrame.new(0.5,-1.5,0) * CFrame.fromEulerAnglesXYZ(0.5-1*i,0,0)
  323. RWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  324. LWL.C0 = CFrame.new(-0.5-0.6,-1.5+0.3,-0.3) * CFrame.fromEulerAnglesXYZ(1*i,0,-0.7+0.2)
  325. LWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  326. end
  327. for i=0,1,speed do
  328. wait()
  329. RWL.C0 = CFrame.new(0.5,-1.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+1*i,0,0)
  330. RWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  331. LWL.C0 = CFrame.new(-0.5-0.6,-1.5+0.3,-0.3) * CFrame.fromEulerAnglesXYZ(0.5+0.5-1*i,0,-0.7+0.2)
  332. LWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  333. end
  334. if walking==false then
  335. RWL.C0 = CFrame.new(0.5,-1.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  336. RWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  337. LWL.C0 = CFrame.new(-0.5-0.6,-1.5+0.3,-0.3) * CFrame.fromEulerAnglesXYZ(0.5,0,-0.7+0.2)
  338. LWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  339. end
  340. end
  341. function Stance()
  342. coroutine.resume(coroutine.create(function()
  343. gairo.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  344. gairo.P = 10000000
  345. --gairo.D = 2000
  346. gairo.Parent = Torso
  347. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,0) * CFrame.new(0,1,-0.7)
  348. wait()
  349. while equipped==true and attack==false do
  350. wait()
  351. offset=(Torso.Position.y-MMouse.Hit.p.y)/60
  352. mag=(Torso.Position-MMouse.Hit.p).magnitude/80
  353. offset=offset/mag
  354. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,-0.2,0.7)
  355. --Torso.Neck.C1=necko2*CFrame.fromEulerAnglesXYZ(-offset/10,0,0)
  356. local pos4 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  357. gairo.cframe = CFrame.new(Torso.Position,pos4) * CFrame.fromEulerAnglesXYZ(-0.4,-0.5,0) * CFrame.new(0,0,0) --CFrame.new(Torso.Position,MMouse.Hit.p) *
  358. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.5,0,0.4)
  359. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  360. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,1,0)
  361. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.2,0,0)
  362. --[[RWL.C0 = CFrame.new(0.5,-1.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  363. RWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  364. LWL.C0 = CFrame.new(-0.5-0.6,-1.5+0.3,-0.3) * CFrame.fromEulerAnglesXYZ(0.5,0,-0.7+0.2)
  365. LWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) ]]
  366. end
  367. --Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  368. gairo.Parent=nil
  369. end))
  370. end
  371. function Sit()
  372. attack=true
  373. Character.Humanoid.WalkSpeed=0
  374. gairo.Parent=nil
  375. for i=0,1,0.1 do
  376. wait()
  377. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,0) * CFrame.new(0,1,-0.7)
  378. wld1.C1=CFrame.fromEulerAnglesXYZ(0.2-0.2*i,0,0)
  379. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,-0.2+0.2*i,0.7-0.7*i)
  380. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.5-1.7*i,0,0.4-0.4*i)
  381. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  382. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.2*i,1-1*i,0)
  383. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.3+0.3*i,0,0)
  384. RWL.C0 = CFrame.new(0.5,-1.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  385. RWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  386. LWL.C0 = CFrame.new(-0.5-0.6+0.6*i,-1.5+0.3-0.3*i,-0.3+0.3*i) * CFrame.fromEulerAnglesXYZ(0.5-0.5*i,0,-0.5+0.5*i)
  387. LWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  388. end
  389. bodpos.position=Torso.Position-Vector3.new(0,3,0)
  390. bodpos.Parent=Torso
  391. gairo.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  392. gairo.P = 10000000
  393. --gairo.D = 2000
  394. gairo.Parent = Torso
  395. gairo.cframe=Torso.CFrame
  396. for i=0,1,0.1 do
  397. wait()
  398. gairo.cframe=Torso.CFrame*CFrame.fromEulerAnglesXYZ(0.07*i,0,0)
  399. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,0) * CFrame.new(0,1-0.5*i,-0.7+1.2*i)
  400. wld1.C1=CFrame.fromEulerAnglesXYZ(1.2*i,0,-0.5*i)
  401. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  402. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.2-0.2*i,0,-0.3*i)
  403. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  404. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.2+1.77*i,0,0.7*i)
  405. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  406. RWL.C0 = CFrame.new(0.5+0.1*i,-1.5+0.6*i,-0.7*i) * CFrame.fromEulerAnglesXYZ(1.2*i,0,0.5*i)
  407. RWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  408. LWL.C0 = CFrame.new(-0.5-0.1*i,-1.5+0.6*i,-0.7*i) * CFrame.fromEulerAnglesXYZ(1.2*i,0,-0.5*i)
  409. LWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  410. end
  411. while attack==true do
  412. wait()
  413. Character.Humanoid.Health = Character.Humanoid.Health + 0.1
  414. end
  415. end
  416. function UnSit()
  417. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,0) * CFrame.new(0,1,-0.7)
  418. wld1.C1=CFrame.fromEulerAnglesXYZ(0.2,0,0)
  419. bodpos.Parent=nil
  420. gairo.Parent=nil
  421. Character.Humanoid.WalkSpeed=16
  422. attack=false
  423. end
  424. function Slash()
  425. --ss(1)
  426. equipsound(1.3)
  427. wld13.Part0 = LeftArm
  428. wld13.Part1 = prt12
  429. wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,1.8) * CFrame.new(-1,0,0)
  430. wld13.C1 = CFrame.fromEulerAnglesXYZ(0.7,0,0) * CFrame.new(0,1.2,-1)
  431. SlashEffect(prt6,0,-6,-1,0,3.14,0,BrickColor.new("Black"),1.5,1,2)
  432. for i=0,1,0.8 do
  433. wait()
  434. LW.C0 = CFrame.new(-1.5-0.5*i,0.5,0) * CFrame.fromEulerAnglesXYZ(1.5,0,0.4)
  435. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0.5*i)
  436. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,1,0)
  437. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.2,0,0)
  438. if wld13.Part0==LeftArm then
  439. wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,1.8-0.2*i) * CFrame.new(-1,0,0)
  440. wld13.C1 = CFrame.fromEulerAnglesXYZ(0.7-0.2*i,0,0) * CFrame.new(0,1.2,-1)
  441. end
  442. end
  443. local ppart = part(1,workspace,0,1,BrickColor.new("Navy blue"),"DerpPart",Vector3.new(1,1,1))
  444. ppart.Anchored=true
  445. ppart.CFrame=Head.CFrame*CFrame.new(0,0,-15)
  446. SlashEffect(ppart,0,-6,-3,-1.57,math.random(-50,50),0,BrickColor.new("Black"),2,2,4)
  447. for i=0,1,0.8 do
  448. wait()
  449. LW.C0 = CFrame.new(-1.5-0.5+0.5*i,0.5,0) * CFrame.fromEulerAnglesXYZ(1.5,0,0.4)
  450. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0.5-0.5*i)
  451. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,1,0)
  452. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.2,0,0)
  453. --wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,1.6) * CFrame.new(-1,0,0)
  454. --wld13.C1 = CFrame.fromEulerAnglesXYZ(0.5,0,0) * CFrame.new(0,2,-1)
  455. end
  456. wait(0.1)
  457. wld13.Part0 = prt13
  458. wld13.Part1 = prt12
  459. wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1.2,0)
  460. wld13.C1 = CFrame.fromEulerAnglesXYZ(0,0,0)
  461. wait(1)
  462. ppart.Parent=nil
  463. end
  464. function SlashTwo()
  465. coroutine.resume(coroutine.create(function()
  466. equipsound(1.3)
  467. wld13.Part0 = LeftArm
  468. wld13.Part1 = prt12
  469. wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,1.8) * CFrame.new(-1,0,0)
  470. wld13.C1 = CFrame.fromEulerAnglesXYZ(0.7,0,0) * CFrame.new(0,1.2,-1)
  471. SlashEffect(prt6,0,-6,-1,0,3.14,0,BrickColor.new("Black"),1.5,1,2)
  472. for i=0,1,0.8 do
  473. wait()
  474. LW.C0 = CFrame.new(-1.5-0.5*i,0.5,0) * CFrame.fromEulerAnglesXYZ(1.5,0,0.4)
  475. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0.5*i)
  476. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,1,0)
  477. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.2,0,0)
  478. if wld13.Part0==LeftArm then
  479. wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,1.8-0.2*i) * CFrame.new(-1,0,0)
  480. wld13.C1 = CFrame.fromEulerAnglesXYZ(0.7-0.2*i,0,0) * CFrame.new(0,1.2,-1)
  481. end
  482. end
  483. local ppart = part(1,workspace,0,1,BrickColor.new("Navy blue"),"DerpPart",Vector3.new(1,1,1))
  484. ppart.Anchored=true
  485. ppart.CFrame=Head.CFrame*CFrame.new(0,5,-30)
  486. SlashEffect(ppart,0,-8,-3,-1.57,-0.4,0,BrickColor.new("Black"),2.5,1,5)
  487. SlashEffect(ppart,0,-8,-3,-1.57,0.4,0,BrickColor.new("Black"),2.5,1,5)
  488. for i=0,1,0.8 do
  489. wait()
  490. LW.C0 = CFrame.new(-1.5-0.5+0.5*i,0.5,0) * CFrame.fromEulerAnglesXYZ(1.5,0,0.4)
  491. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0.5-0.5*i)
  492. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,1,0)
  493. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.2,0,0)
  494. --wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,1.6) * CFrame.new(-1,0,0)
  495. --wld13.C1 = CFrame.fromEulerAnglesXYZ(0.5,0,0) * CFrame.new(0,2,-1)
  496. end
  497. wait(0.1)
  498. wld13.Part0 = prt13
  499. wld13.Part1 = prt12
  500. wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1.2,0)
  501. wld13.C1 = CFrame.fromEulerAnglesXYZ(0,0,0)
  502. wait(1)
  503. ppart.Parent=nil
  504. end))
  505. end
  506. function Punch()
  507. attack=true
  508. for i=0,1,0.15 do
  509. wait()
  510. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,-0.2+0.2*i,0.7-0.7*i)
  511. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.5-2*i,0,0.4-0.8*i)
  512. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  513. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,1-1*i,0)
  514. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.2,0,0)
  515. RWL.C0 = CFrame.new(0.5,-1.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  516. RWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  517. LWL.C0 = CFrame.new(-0.5-0.6+0.6*i,-1.5+0.3-0.3*i,-0.3+0.3*i) * CFrame.fromEulerAnglesXYZ(0.5-0.5*i,0,-0.5+0.5*i)
  518. LWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  519. end
  520. ss(1.2)
  521. local vel = Instance.new("BodyGyro")
  522. vel.Parent = Head
  523. vel.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  524. vel.P = 20e+003
  525. vel.cframe=Head.CFrame
  526. con1=LeftArm.Touched:connect(function(hit) Damagefunc2(hit,5,1) punched=true end)
  527. for i=0,1,0.15 do
  528. wait()
  529. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,1.57*i)
  530. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+2.07*i,0,-0.4-1.17*i)
  531. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  532. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0.3*i)
  533. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.2,0,0)
  534. RWL.C0 = CFrame.new(0.5,-1.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  535. RWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  536. LWL.C0 = CFrame.new(-0.5,-1.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  537. LWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  538. end
  539. con1:disconnect()
  540. for i=0,1,0.15 do
  541. wait()
  542. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,1.57-1.57*i)
  543. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-0.07*i,0,-1.57+1.97*i)
  544. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  545. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,1*i,0.3-0.3*i)
  546. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.2,0,0)
  547. RWL.C0 = CFrame.new(0.5,-1.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  548. RWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  549. LWL.C0 = CFrame.new(-0.5-0.6*i,-1.5+0.3*i,-0.3*i) * CFrame.fromEulerAnglesXYZ(0.5*i,0,-0.5*i)
  550. LWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  551. end
  552. wait()
  553. vel.Parent=nil
  554. attack=false
  555. coroutine.resume(coroutine.create(function()
  556. wait(0.2)
  557. punched=false
  558. end))
  559. end
  560. function Kick()
  561. attack=true
  562. for i=0,1,0.15 do
  563. wait()
  564. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,-0.2+0.2*i,0.7-0.7*i)
  565. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.5-1.9*i,0,0.4-0.4*i)
  566. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  567. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,1-1*i,0.3*i)
  568. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.2+0.3*i,0,0)
  569. RWL.C0 = CFrame.new(0.5,-1.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  570. RWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  571. LWL.C0 = CFrame.new(-0.5-0.6+0.6*i,-1.5+0.3-0.3*i,-0.3+0.3*i) * CFrame.fromEulerAnglesXYZ(0.5-0.5*i,0,-0.5+0.5*i)
  572. LWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  573. end
  574. ss(1)
  575. local vel = Instance.new("BodyGyro")
  576. vel.Parent = Head
  577. vel.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  578. vel.P = 20e+003
  579. vel.cframe=Head.CFrame
  580. local vel2 = Instance.new("BodyVelocity")
  581. vel2.Parent = Torso
  582. vel2.maxForce = Vector3.new(4e+005,4e+005,4e+005)*2
  583. vel2.velocity = Head.CFrame.lookVector * 40
  584. con1=RightLeg.Touched:connect(function(hit) Damagefunc2(hit,10,1) kicked=true end)
  585. for i=0,1,0.15 do
  586. wait()
  587. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0.5*i,0,0)
  588. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.4-0.3*i,0,0)
  589. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  590. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.3*i,0,0.3)
  591. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  592. RWL.C0 = CFrame.new(0.5,-1.5+0.3*i,-0.5*i) * CFrame.fromEulerAnglesXYZ(1*i,0,0)
  593. RWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  594. LWL.C0 = CFrame.new(-0.5,-1.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0)
  595. LWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  596. end
  597. con1:disconnect()
  598. vel2.velocity = Head.CFrame.lookVector * -40
  599. for i=0,1,0.15 do
  600. wait()
  601. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0.5-0.5*i,0,0)
  602. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.4-0.3+0.3*i,0,0)
  603. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  604. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.3+0.3*i,0,0.3)
  605. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  606. RWL.C0 = CFrame.new(0.5,-1.5+0.3-0.3*i,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1-1*i,0,0)
  607. RWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  608. LWL.C0 = CFrame.new(-0.5,-1.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  609. LWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  610. end
  611. vel2.Parent=nil
  612. for i=0,1,0.15 do
  613. wait()
  614. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,-0.2*i,0.7*i)
  615. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.4+1.9*i,0,0.4*i)
  616. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  617. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,1*i,0.3)
  618. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.3*i,0,0)
  619. RWL.C0 = CFrame.new(0.5,-1.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  620. RWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  621. LWL.C0 = CFrame.new(-0.5-0.6*i,-1.5+0.3*i,-0.3*i) * CFrame.fromEulerAnglesXYZ(0.5*i,0,-0.5*i)
  622. LWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  623. end
  624. wait()
  625. vel.Parent=nil
  626. attack=false
  627. coroutine.resume(coroutine.create(function()
  628. wait(0.2)
  629. kicked=false
  630. end))
  631. end
  632. function WinrarDash()
  633. coroutine.resume(coroutine.create(function()
  634. local LastPoint = Torso.CFrame
  635. for i=0,1,0.1 do
  636. wait()
  637.         local Point = Torso.CFrame
  638.         effect2("Black",0,LastPoint,Point)
  639.         LastPoint = Point
  640. end
  641. end))
  642. attack=true
  643. local vel = Instance.new("BodyGyro")
  644. vel.Parent = Head
  645. vel.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  646. vel.P = 20e+003
  647. vel.cframe=Head.CFrame
  648. local vel2 = Instance.new("BodyVelocity")
  649. vel2.Parent = Torso
  650. vel2.maxForce = Vector3.new(4e+005,4e+005,4e+005)*2
  651. vel2.velocity = Head.CFrame.lookVector * -150  + (Vector3.new(0,1,0) * -37)
  652. wait(0.15)
  653. vel2.Parent=nil
  654. for i=1,8 do
  655. wait(math.random()/7)
  656. SlashTwo()
  657. end
  658. vel.Parent=nil
  659. attack=false
  660. end
  661. function DashForward()
  662. wait()
  663. --abscond(4)
  664. local vel = Instance.new("BodyVelocity")
  665. vel.Parent = Torso
  666. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*2
  667. vel.velocity = Head.CFrame.lookVector * 250  + (Vector3.new(0,1,0) * 63)
  668. local LastPoint = Torso.CFrame
  669. coroutine.resume(coroutine.create(function()
  670. for i=0,1,0.1 do
  671. wait()
  672. if holddash==true then
  673.         local Point = Torso.CFrame
  674.         effect2("Black",0,LastPoint,Point)
  675.         LastPoint = Point
  676. end
  677. end
  678. end))
  679. for i=0,1,0.3 do
  680. wait()
  681. vel.velocity = Head.CFrame.lookVector * 250  + (Vector3.new(0,1,0) * 63)
  682. --[[LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.3,0.3,-0.3)
  683. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  684. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2,0.2,0.5)
  685. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) ]]
  686. end
  687. vel.Parent=nil
  688. end
  689. function DashBackwards()
  690. wait()
  691. --abscond(2)
  692. local vel = Instance.new("BodyVelocity")
  693. vel.Parent = Torso
  694. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*2
  695. vel.velocity = Head.CFrame.lookVector * -250  + (Vector3.new(0,1,0) * -63)
  696. print(vel.velocity)
  697. local LastPoint = Torso.CFrame
  698. coroutine.resume(coroutine.create(function()
  699. for i=0,1,0.1 do
  700. wait()
  701. if holddash==true then
  702.         local Point = Torso.CFrame
  703.         effect2("Black",0,LastPoint,Point)
  704.         LastPoint = Point
  705. end
  706. end
  707. end))
  708. for i=0,1,0.3 do
  709. wait()
  710. vel.velocity = Head.CFrame.lookVector * -250  + (Vector3.new(0,1,0) * -63)
  711. --[[LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.3,0.3,-0.3)
  712. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  713. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2,0.2,0.5)
  714. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) ]]
  715. end
  716. vel.Parent=nil
  717. end
  718. function CarnageDash()
  719. --attack=true
  720. wait()
  721. local vel = Instance.new("BodyVelocity")
  722. vel.Parent = Torso
  723. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*2
  724. vel.velocity = Head.CFrame.lookVector * 150  + (Vector3.new(0,1,0) * 37)
  725. coroutine.resume(coroutine.create(function()
  726. while dashing==true do
  727. wait()
  728. Walking(0.15)
  729. end
  730. end))
  731. while dashing==true do
  732. wait(0.08)
  733. vel.velocity = Head.CFrame.lookVector * 150  + (Vector3.new(0,1,0) * 37)
  734. coroutine.resume(coroutine.create(function()
  735. --ss(1)
  736. equipsound(1.3)
  737. --for i=1,2 do
  738. wld13.Part0 = LeftArm
  739. wld13.Part1 = prt12
  740. wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,1.8) * CFrame.new(-1,0,0)
  741. wld13.C1 = CFrame.fromEulerAnglesXYZ(0.7,0,0) * CFrame.new(0,1.2,-1)
  742. SlashEffect(prt6,0,-6,-1,0,3.14,0,BrickColor.new("Black"),1.5,1,2)
  743. for i=0,1,0.8 do
  744. wait()
  745. LW.C0 = CFrame.new(-1.5-0.5*i,0.5,0) * CFrame.fromEulerAnglesXYZ(1.5,0,0.4)
  746. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0.5*i)
  747. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,1,0)
  748. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.2,0,0)
  749. if wld13.Part0==LeftArm then
  750. wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,1.8-0.2*i) * CFrame.new(-1,0,0)
  751. wld13.C1 = CFrame.fromEulerAnglesXYZ(0.7-0.2*i,0,0) * CFrame.new(0,1.2,-1)
  752. end
  753. end
  754. local ppart = part(1,workspace,0,1,BrickColor.new("Navy blue"),"DerpPart",Vector3.new(1,1,1))
  755. ppart.Anchored=true
  756. ppart.CFrame=Head.CFrame*CFrame.new(0,0,-5)*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  757. coroutine.resume(coroutine.create(function(PART)
  758. wait(1)
  759. PART.Parent=nil
  760. end),ppart)
  761. SlashEffect(ppart,0,-6,-3,-1.57,math.random(-50,50),0,BrickColor.new("Black"),2,2,4)
  762. for i=0,1,0.8 do
  763. wait()
  764. LW.C0 = CFrame.new(-1.5-0.5+0.5*i,0.5,0) * CFrame.fromEulerAnglesXYZ(1.5,0,0.4)
  765. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0.5-0.5*i)
  766. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,1,0)
  767. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.2,0,0)
  768. --wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,1.6) * CFrame.new(-1,0,0)
  769. --wld13.C1 = CFrame.fromEulerAnglesXYZ(0.5,0,0) * CFrame.new(0,2,-1)
  770. --end
  771. end
  772. end))
  773. end
  774. vel.Parent=nil
  775. wld13.Part0 = prt13
  776. wld13.Part1 = prt12
  777. wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1.2,0)
  778. wld13.C1 = CFrame.fromEulerAnglesXYZ(0,0,0)
  779. --attack=false
  780. end
  781. function DownwardSlash()
  782. attack=true
  783. wait()
  784. local vel = Instance.new("BodyVelocity")
  785. vel.Parent = Torso
  786. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*2
  787. vel.velocity = Vector3.new(0,1,0) * 40  
  788. gairo.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  789. gairo.P = 10000000
  790. --gairo.D = 2000
  791. gairo.Parent = Torso
  792. gairo.cframe=Torso.CFrame
  793. for i=0,1,0.1 do
  794. wait()
  795. --gairo.cframe=Torso.CFrame*CFrame.fromEulerAnglesXYZ(0,0,0.3*i)
  796. gairo.cframe=Torso.CFrame*CFrame.fromEulerAnglesXYZ(-0.1*i,0,0.2*i)
  797. end
  798. vel.velocity = Vector3.new(0,1,0) * 0
  799. for i=1,20 do
  800. wait(0.05)
  801. coroutine.resume(coroutine.create(function()
  802. Slash()
  803. end))
  804. end
  805. vel.Parent=nil
  806. gairo.Parent=nil
  807. attack=false
  808. end
  809. function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  810. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  811. end
  812. function MMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  813.         local msh1 = Instance.new("BlockMesh")
  814.         msh1.Scale = Vector3.new(0.5,0.5,0.5)
  815.         S=Instance.new("Part")
  816.         S.Name="Effect"
  817.         S.formFactor=0
  818.         S.Size=Vector3.new(x1,y1,z1)
  819.         S.BrickColor=color
  820.         S.Reflectance = 0
  821.         S.TopSurface=0
  822.         S.BottomSurface=0
  823.         S.Transparency=0
  824.         S.Anchored=true
  825.         S.CanCollide=false
  826.         S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  827.         S.Parent=Character
  828.         msh1.Parent = S
  829.         coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  830. end
  831. function UltimaMMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  832.         local msh1 = Instance.new("BlockMesh")
  833.         msh1.Scale = Vector3.new(x1,y1,z1)
  834.         S=Instance.new("Part")
  835.         S.Name="Effect"
  836.         S.formFactor=0
  837.         S.Size=Vector3.new(1,1,1)
  838.         S.BrickColor=color
  839.         S.Reflectance = 0
  840.         S.TopSurface=0
  841.         S.BottomSurface=0
  842.         S.Transparency=0
  843.         S.Anchored=true
  844.         S.CanCollide=false
  845.         S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  846.         S.Parent=Character
  847.         msh1.Parent = S
  848.         coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  849. end
  850. function MOREMAGIX(part,cframe,x,y,z,color)
  851.                 p2=Instance.new("Part")
  852.                 p2.Name="Blast"
  853.                 p2.TopSurface=0
  854.                 p2.BottomSurface=0
  855.                 p2.CanCollide=false
  856.                 p2.Anchored=true
  857.                 p2.BrickColor=color
  858.                 p2.Size=Vector3.new(x,y,z)
  859.                 p2.formFactor="Symmetric"
  860.                 p2.CFrame=part.CFrame*CFrame.new(0,cframe,0)
  861.                 p2.Parent=workspace
  862.                 m=Instance.new("BlockMesh")
  863.                 m.Parent=p2
  864.                 m.Name="BlastMesh"
  865.                 coroutine.resume(coroutine.create(function(part,dir) for loll=1, 15 do part.BlastMesh.Scale=part.BlastMesh.Scale-Vector3.new(.09,.09,.09) part.Transparency=loll/20 part.CFrame=part.CFrame*CFrame.new(dir)*CFrame.fromEulerAnglesXYZ(math.random(-100,100)/100, math.random(-100,100)/100, math.random(-100,100)/100) wait() end part.Parent=nil end),p2,Vector3.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10))
  866. end
  867. function EVENMOARMAGIX(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  868.         local msh1 = Instance.new("SpecialMesh")
  869.         msh1.Scale = Vector3.new(0.5,0.5,0.5)
  870.         msh1.MeshType = "Sphere"
  871.         S=Instance.new("Part")
  872.         S.Name="Effect"
  873.         S.formFactor=0
  874.         S.Size=Vector3.new(x1,y1,z1)
  875.         S.BrickColor=color
  876.         if Style == "WingBlade" and element == "Dark" then
  877.         S.BrickColor=BrickColor.new("Black")
  878.         end
  879.         S.Reflectance = 0
  880.         S.TopSurface=0
  881.         S.BottomSurface=0
  882.         S.Transparency=0
  883.         S.Anchored=true
  884.         S.CanCollide=false
  885.         S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
  886.         S.Parent=Character
  887.         msh1.Parent = S
  888.         coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.3,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  889. end
  890. function WaveEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  891.         local msh1 = Instance.new("SpecialMesh")
  892.         msh1.Scale = Vector3.new(x1,y1,z1)
  893.         msh1.MeshId = "http://www.roblox.com/asset/?id=20329976"
  894.         S=Instance.new("Part")
  895.         S.Name="Effect"
  896.         S.formFactor=0
  897.         S.Size=Vector3.new(1,1,1)
  898.         S.BrickColor=color
  899.         S.Reflectance = 0
  900.         S.TopSurface=0
  901.         S.BottomSurface=0
  902.         S.Transparency=0
  903.         S.Anchored=true
  904.         S.CanCollide=false
  905.         S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
  906.         S.Parent=Character
  907.         msh1.Parent = S
  908.         coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.3,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  909. end
  910. function BlastEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  911.         local msh1 = Instance.new("SpecialMesh")
  912.         msh1.Scale = Vector3.new(x1,y1,z1)
  913.         msh1.MeshId = "http://www.roblox.com/asset/?id=1323306"
  914.         S=Instance.new("Part")
  915.         S.Name="Effect"
  916.         S.formFactor=0
  917.         S.Size=Vector3.new(1,1,1)
  918.         S.BrickColor=color
  919.         S.Reflectance = 0
  920.         S.TopSurface=0
  921.         S.BottomSurface=0
  922.         S.Transparency=0
  923.         S.Anchored=true
  924.         S.CanCollide=false
  925.         S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
  926.         S.Parent=Character
  927.         msh1.Parent = S
  928.         coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.3,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  929. end
  930. LastPoint = Torso
  931. function effect(Color,Ref,LP,P1,returnn)
  932. local effectsmsh = Instance.new("CylinderMesh")
  933. effectsmsh.Scale = Vector3.new(1,1,1)
  934. effectsmsh.Name = "Mesh"
  935. local effectsg = Instance.new("Part")
  936. effectsg.formFactor = 3
  937. effectsg.CanCollide = false
  938. effectsg.Name = "Eff"
  939. effectsg.Locked = true
  940. effectsg.Anchored = true
  941. effectsg.Transparency=0.7
  942. effectsg.Size = Vector3.new(0.5,1,0.5)
  943. effectsg.Parent = workspace
  944. effectsmsh.Parent = effectsg
  945. effectsg.BrickColor = BrickColor.new(Color)
  946. effectsg.Reflectance = Ref
  947. local point1 = P1
  948. local mg = (LP.p - point1.p).magnitude
  949. effectsg.Size = Vector3.new(0.5,mg,0.5)
  950. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  951. if returnn then return effectsg end
  952. coroutine.resume(coroutine.create(function()
  953. con1=effectsg.Touched:connect(function(hit) Damagefunc2(hit,5,1) end)
  954.         local c = game.Workspace:GetChildren();
  955.         for i = 1, #c do
  956.                 local hum = c[i]:findFirstChild("Humanoid")
  957.                 if hum ~= nil and hum.Health ~= 0 then
  958.                 local head = c[i]:findFirstChild("Head");
  959.                 if head ~= nil then
  960.                 local targ = head.Position - effectsg.Position;
  961.                 local mag = targ.magnitude;
  962.                 if mag <= 6 then
  963.                 Damagefunc1(head,5,1)
  964.                 end
  965.                 end
  966.                 end
  967.         end
  968. if not returnn then
  969. for i = 0 , 1 , 0.2 do
  970. wait()
  971. local dir = effectsg.CFrame.lookVector+Vector3.new(0,0,0)
  972. local hit2,pos = rayCast(effectsg.Position,effectsg.CFrame.lookVector,10,Character)
  973. if hit2 ~= nil then
  974. if hit2.Parent:FindFirstChild("Humanoid") ~= nil then
  975. hum = hit2.Parent.Humanoid
  976. Damagefunc1(hit2,5,5)
  977. end
  978. end
  979. effectsmsh.Scale = Vector3.new(1-1*i,1,1-1*i)
  980. end
  981. wait()
  982. effectsg.Parent = nil
  983. end
  984. end))
  985. end
  986. function effect2(Color,Ref,LP,P1,returnn)
  987. local effectsmsh = Instance.new("BlockMesh")
  988. effectsmsh.Scale = Vector3.new(1,1,1)
  989. effectsmsh.Name = "Mesh"
  990. local effectsg = Instance.new("Part")
  991. effectsg.formFactor = 3
  992. effectsg.CanCollide = false
  993. effectsg.Name = "Eff"
  994. effectsg.Locked = true
  995. effectsg.Anchored = true
  996. effectsg.Transparency=0.4
  997. effectsg.Size = Vector3.new(1,1,1)
  998. effectsg.Parent = workspace
  999. effectsmsh.Parent = effectsg
  1000. effectsg.BrickColor = BrickColor.new(Color)
  1001. effectsg.Reflectance = Ref
  1002. local point1 = P1
  1003. local mg = (LP.p - point1.p).magnitude
  1004. effectsg.Size = Vector3.new(5,mg,5)
  1005. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  1006. if returnn then return effectsg end
  1007. coroutine.resume(coroutine.create(function()
  1008. con1=effectsg.Touched:connect(function(hit) Damagefunc2(hit,5,1) end)
  1009.         local c = game.Workspace:GetChildren();
  1010.         for i = 1, #c do
  1011.                 local hum = c[i]:findFirstChild("Humanoid")
  1012.                 if hum ~= nil and hum.Health ~= 0 then
  1013.                 local head = c[i]:findFirstChild("Head");
  1014.                 if head ~= nil then
  1015.                 local targ = head.Position - effectsg.Position;
  1016.                 local mag = targ.magnitude;
  1017.                 if mag <= 6 then
  1018.                 Damagefunc1(head,5,1)
  1019.                 end
  1020.                 end
  1021.                 end
  1022.         end
  1023. if not returnn then
  1024. for i = 0 , 1 , 0.2 do
  1025. wait()
  1026. effectsg.Transparency=effectsg.Transparency+0.1
  1027. end
  1028. wait()
  1029. effectsg.Parent = nil
  1030. end
  1031. end))
  1032. end
  1033. function SlashEffect(part,x1,y1,z1,x2,y2,z2,color,size,power,repeats)
  1034.         p2=Instance.new("Part")
  1035.         p2.Name="Blast"
  1036.         p2.TopSurface=0
  1037.         p2.BottomSurface=0
  1038.         p2.CanCollide=false
  1039.         p2.Anchored=true
  1040.         p2.BrickColor=color
  1041.         p2.Size=Vector3.new(2,2,2)
  1042.         p2.formFactor="Symmetric"
  1043.         p2.CFrame=part.CFrame*CFrame.fromEulerAnglesXYZ(x2,y2,z2)*CFrame.new(x1,y1,z1)
  1044.         p2.Parent=workspace
  1045.         p2.Transparency=1
  1046.         m=Instance.new("BlockMesh")
  1047.         m.Parent=p2
  1048.         m.Name="BlastMesh"
  1049.         local LastPoint = p2.CFrame
  1050.         coroutine.resume(coroutine.create(function(part,dir)
  1051.         for loll=1, repeats do
  1052.         part.BlastMesh.Scale=part.BlastMesh.Scale-Vector3.new(.09,.09,.09)
  1053.         part.CFrame=part.CFrame*CFrame.new(0,2.5*size,0)*CFrame.fromEulerAnglesXYZ(0.6*power,0,0)
  1054.         local Point = part.CFrame
  1055.         effect("Gold",0.5,LastPoint,Point)
  1056.         LastPoint = Point
  1057.         wait(0)
  1058.         end
  1059.         part.Parent=nil
  1060.         end),p2,0)
  1061. end
  1062. --SlashEffect(workspace.Fenrier.Torso,0,-6,-3,-1.57,math.random(-1,1)+math.random(),0,BrickColor.new("Black"),1.5,1.5)
  1063. function ss(pitch)
  1064. local SlashSound = Instance.new("Sound")
  1065. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  1066. --SlashSound.SoundId = "http://roblox.com/asset/?id=10209645"
  1067. SlashSound.Parent = workspace
  1068. SlashSound.Volume = .5
  1069. SlashSound.Pitch = pitch
  1070. SlashSound.PlayOnRemove = true
  1071. coroutine.resume(coroutine.create(function()
  1072. wait(0)
  1073. SlashSound.Parent = nil
  1074. end))
  1075. end
  1076. function equipsound(pitch)
  1077. local SlashSound = Instance.new("Sound")
  1078. SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  1079. SlashSound.Parent = workspace
  1080. SlashSound.Volume = .3
  1081. SlashSound.Pitch = pitch
  1082. SlashSound.PlayOnRemove = true
  1083. coroutine.resume(coroutine.create(function()
  1084. wait(0)
  1085. SlashSound.Parent = nil
  1086. end))
  1087. end
  1088. function abscond(pitch)
  1089. local SlashSound = Instance.new("Sound")
  1090. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2767090"
  1091. SlashSound.Parent = workspace
  1092. SlashSound.Volume = 1
  1093. SlashSound.Pitch = pitch
  1094. SlashSound.PlayOnRemove = true
  1095. coroutine.resume(coroutine.create(function()
  1096. wait(0)
  1097. SlashSound.Parent = nil
  1098. end))
  1099. end
  1100. function magicsound(pitch)
  1101. local SlashSound = Instance.new("Sound")
  1102. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2248511"
  1103. SlashSound.Parent = workspace
  1104. SlashSound.Volume = .5
  1105. SlashSound.Pitch = pitch
  1106. SlashSound.PlayOnRemove = true
  1107. coroutine.resume(coroutine.create(function()
  1108. wait(0)
  1109. SlashSound.Parent = nil
  1110. end))
  1111. end
  1112. function critsound(pitch)
  1113. local SlashSound = Instance.new("Sound")
  1114. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2801263"
  1115. SlashSound.Parent = workspace
  1116. SlashSound.Volume = .7
  1117. SlashSound.Pitch = pitch
  1118. SlashSound.PlayOnRemove = true
  1119. coroutine.resume(coroutine.create(function()
  1120. wait(0)
  1121. SlashSound.Parent = nil
  1122. end))
  1123. end
  1124. function spikesound(pitch)
  1125. local SlashSound = Instance.new("Sound")
  1126. SlashSound.SoundId = "http://www.roblox.com/asset/?id=3264793"
  1127. SlashSound.Parent = workspace
  1128. SlashSound.Volume = .7
  1129. SlashSound.Pitch = pitch
  1130. SlashSound.PlayOnRemove = true
  1131. coroutine.resume(coroutine.create(function()
  1132. wait(0)
  1133. SlashSound.Parent = nil
  1134. end))
  1135. end
  1136. Damagefunc1=function(hit,Damage,Knockback)
  1137.         if attackdebounce == false then
  1138.         attackdebounce = true
  1139.         coroutine.resume(coroutine.create(function()
  1140.         wait(0.1)
  1141.         attackdebounce = false
  1142.         end))
  1143.         if hit.Parent==nil then
  1144.                 return
  1145.         end
  1146.         CPlayer=Bin
  1147.         h=hit.Parent:FindFirstChild("Humanoid")
  1148.         if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1149.                 if mana < 400 then
  1150.                 mana = mana + math.random(10,20)  
  1151.                 end
  1152.                 if mana > 400 then
  1153.                 mana = 400
  1154.                 end
  1155.                 Damage=Damage
  1156. --[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1157.                         return
  1158.                 end]]
  1159.                         c=Instance.new("ObjectValue")
  1160.                         c.Name="creator"
  1161.                         c.Value=game.Players.LocalPlayer
  1162.                         c.Parent=h
  1163.                         game:GetService("Debris"):AddItem(c,.5)
  1164. --                        print(c.Value)
  1165.                 if math.random(0,99)+math.random()<=5 then
  1166.                         CRIT=true
  1167.                         Damage=Damage*1.5
  1168. --[[                        Knockback=Knockback*2
  1169.                         r=Instance.new("BodyAngularVelocity")
  1170.                         r.P=3000
  1171.                         r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1172.                         r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1173.                         r.Parent=hit.Parent.Torso]]
  1174.                         critsound(2)
  1175.        
  1176.                 end
  1177.                 Damage=Damage+math.random(0,10)
  1178. --                Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  1179.                 h.Health=h.Health-Damage
  1180.                 showDamage(hit.Parent,Damage,.5)
  1181.                 vp=Instance.new("BodyVelocity")
  1182.                 vp.P=500
  1183.                 vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1184. --                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1185.                 vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  1186.                 if Knockback>0 then
  1187.                         vp.Parent=hit.Parent.Torso
  1188.                 end
  1189.                 game:GetService("Debris"):AddItem(vp,.25)
  1190. --[[                r=Instance.new("BodyAngularVelocity")
  1191.                 r.P=3000
  1192.                 r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1193.                 r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1194.                 r.Parent=hit.Parent.Torso]]
  1195.                 game:GetService("Debris"):AddItem(r,.5)
  1196.                                 c=Instance.new("ObjectValue")
  1197.                         c.Name="creator"
  1198.                         c.Value=Player
  1199.                         c.Parent=h
  1200.                         game:GetService("Debris"):AddItem(c,.5)
  1201.                 CRIT=false
  1202.                 hitDeb=true
  1203.                 AttackPos=6
  1204.         end
  1205.         end
  1206. end
  1207. Damagefunc1=function(hit,Damage,Knockback)
  1208.         if hit.Parent==nil then
  1209.                 return
  1210.         end
  1211. --        CPlayer=Bin
  1212.         h=hit.Parent:FindFirstChild("Humanoid")
  1213.         if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1214.         if attackdebounce == false then
  1215.         attackdebounce = true
  1216.         coroutine.resume(coroutine.create(function()
  1217.         wait(0.1)
  1218.         attackdebounce = false
  1219.         end))
  1220.                 Damage=Damage
  1221. --[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1222.                         return
  1223.                 end]]
  1224. --                        print("NOPE.AVI")
  1225.                 if math.random(0,99)+math.random()<=5 then
  1226.                         CRIT=true
  1227.                         Damage=Damage*1.5
  1228. --[[                        Knockback=Knockback*2
  1229.                         r=Instance.new("BodyAngularVelocity")
  1230.                         r.P=3000
  1231.                         r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1232.                         r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1233.                         r.Parent=hit.Parent.Torso]]
  1234.        
  1235.                 end
  1236.                 Damage=Damage+math.random(0,10)
  1237. --                Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  1238.                 h:TakeDamage(Damage)
  1239.                 showDamage(hit.Parent,Damage,.5)
  1240.                 vp=Instance.new("BodyVelocity")
  1241.                 vp.P=500
  1242.                 vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1243. --                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1244.                 vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  1245.                 if Knockback>0 then
  1246.                         vp.Parent=hit.Parent.Torso
  1247.                 end
  1248.                 game:GetService("Debris"):AddItem(vp,.25)
  1249. --[[                r=Instance.new("BodyAngularVelocity")
  1250.                 r.P=3000
  1251.                 r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1252.                 r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1253.                 r.Parent=hit.Parent.Torso
  1254.                 game:GetService("Debris"):AddItem(r,.5)]]
  1255.                 CRIT=false
  1256.                 hitDeb=true
  1257.                 AttackPos=6
  1258.         end
  1259.         end
  1260. end
  1261. Damagefunc2=function(hit,Damage,Knockback)
  1262.         if hit.Parent==nil then
  1263.                 return
  1264.         end
  1265. --        CPlayer=Bin
  1266.         h=hit.Parent:FindFirstChild("Humanoid")
  1267.         if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1268.         if attackdebounce == false then
  1269.         attackdebounce = true
  1270.         coroutine.resume(coroutine.create(function()
  1271.         wait(0.1)
  1272.         attackdebounce = false
  1273.         end))
  1274.                 Damage=Damage
  1275. --[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1276.                         return
  1277.                 end]]
  1278. --                        print("NOPE.AVI")
  1279.                 if math.random(0,99)+math.random()<=5 then
  1280.                         CRIT=true
  1281.                         Damage=Damage*1.5
  1282. --[[                        Knockback=Knockback*2
  1283.                         r=Instance.new("BodyAngularVelocity")
  1284.                         r.P=3000
  1285.                         r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1286.                         r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1287.                         r.Parent=hit.Parent.Torso]]
  1288.        
  1289.                 end
  1290.                 Damage=Damage+math.random(0,10)
  1291. --                Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  1292.                 h:TakeDamage(Damage)
  1293.                 showDamage(hit.Parent,Damage,.5)
  1294.                 vp=Instance.new("BodyVelocity")
  1295.                 vp.P=500
  1296.                 vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1297. --                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1298.                 vp.velocity=Torso.CFrame.lookVector*Knockback
  1299.                 if Knockback>0 then
  1300.                         vp.Parent=hit.Parent.Torso
  1301.                 end
  1302.                 game:GetService("Debris"):AddItem(vp,2)
  1303. --[[                r=Instance.new("BodyAngularVelocity")
  1304.                 r.P=3000
  1305.                 r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1306.                 r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1307.                 r.Parent=hit.Parent.Torso
  1308.                 game:GetService("Debris"):AddItem(r,.5)]]
  1309.                 CRIT=false
  1310.                 hitDeb=true
  1311.                 AttackPos=6
  1312.         end
  1313.         end
  1314. end
  1315. showDamage=function(Char,Dealt,du)
  1316.         m=Instance.new("Model")
  1317.         m.Name=tostring(Dealt)
  1318.         h=Instance.new("Humanoid")
  1319.         h.Health=0
  1320.         h.MaxHealth=0
  1321.         h.Parent=m
  1322.         c=Instance.new("Part")
  1323.         c.Transparency=0
  1324.         c.BrickColor=BrickColor:Red()
  1325.         if CRIT==true then
  1326.                 c.BrickColor=BrickColor.new("Gold")
  1327.         end
  1328.         c.Name="Head"
  1329.         c.TopSurface=0
  1330.         c.BottomSurface=0
  1331.         c.formFactor="Plate"
  1332.         c.Size=Vector3.new(1,.4,1)
  1333.         ms=Instance.new("CylinderMesh")
  1334.         ms.Scale=Vector3.new(.8,.8,.8)
  1335.         if CRIT==true then
  1336.                 ms.Scale=Vector3.new(1.25,1.5,1.25)
  1337.         end
  1338.         ms.Parent=c
  1339.         c.Reflectance=0
  1340.         Instance.new("BodyGyro").Parent=c
  1341.         c.Parent=m
  1342.         c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1343.         f=Instance.new("BodyPosition")
  1344.         f.P=2000
  1345.         f.D=100
  1346.         f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1347.         f.position=c.Position+Vector3.new(0,3,0)
  1348.         f.Parent=c
  1349.         game:GetService("Debris"):AddItem(m,.5+du)
  1350.         c.CanCollide=false
  1351.         m.Parent=workspace
  1352.         c.CanCollide=false
  1353. end
  1354. hold = false
  1355. function ob1d(mouse)
  1356. if attack == true then return end
  1357. hold = true
  1358. Slash()
  1359. --[[if combo == 0 then
  1360. combo = 1
  1361. onehit()
  1362. coroutine.resume(coroutine.create(function()
  1363. wait(0.5)
  1364. if attack == false then
  1365. combo = 0
  1366. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1367. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1368. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1369. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1370. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1371. end
  1372. end))
  1373. elseif combo == 1 then
  1374. combo = 2
  1375. twohit()
  1376. coroutine.resume(coroutine.create(function()
  1377. wait(0.5)
  1378. if attack == false then
  1379. combo = 0
  1380. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1381. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1382. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1383. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1384. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1385. end
  1386. end))
  1387. elseif combo == 2 then
  1388. combo = 3
  1389. threehit()
  1390. wait(0.5)
  1391. combo = 0
  1392. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1393. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1394. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1395. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1396. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1397. end ]]
  1398. end
  1399. function ob1u(mouse)
  1400. hold = false
  1401. end
  1402. buttonhold = false
  1403. function Key(key,mouse)
  1404. if key=="k" then
  1405. if sitting==false then
  1406. sitting=true
  1407. normattack=true
  1408. Sit()
  1409. elseif sitting==true then
  1410. sitting=false
  1411. UnSit()
  1412. normattack=false
  1413. end
  1414. end
  1415. pcall(function() act.key[key:lower()] = true end)
  1416. local kk = key:lower()
  1417. coroutine.resume(coroutine.create(function()
  1418. if kk == "w" or kk == "a" or kk == "s" or kk == "d" then
  1419. while act.key["w"] == true or act.key["a"] == true or act.key["s"] == true or act.key["d"] == true do
  1420. wait()
  1421. end
  1422. walking = false
  1423. end
  1424. end))
  1425. if kk == "w" or kk == "a" or kk == "s" or kk == "d" then
  1426. if walking == true then return end
  1427. if normattack==true then return end
  1428. while act.key["w"] == true or act.key["a"] == true or act.key["s"] == true or act.key["d"] == true do
  1429. Walking(0.1)
  1430. wait()
  1431. end
  1432. walking = false
  1433. Stance()
  1434. end
  1435. if attack == true then return end
  1436. if key == "y" then
  1437. holddash=true
  1438. DashForward()
  1439. end
  1440. if key == "h" then
  1441. holddash=true
  1442. DashBackwards()
  1443. end
  1444. if key=="g" then
  1445. dashing=true
  1446. CarnageDash()
  1447. end
  1448. if key=="q" then
  1449. DownwardSlash()
  1450. end
  1451. if punched==true then
  1452. if key=="c" then
  1453. normattack=true
  1454. WinrarDash()
  1455. normattack=false
  1456. end
  1457. elseif kicked==true then
  1458. if key=="z" then
  1459. normattack=true
  1460. normattack=false
  1461. end
  1462. else
  1463. if key=="z" then
  1464. normattack=true
  1465. Punch()
  1466. normattack=false
  1467. end
  1468. if key=="x" then
  1469. normattack=true
  1470. Kick()
  1471. normattack=false
  1472. end
  1473. end
  1474. --[[if key=="c" then
  1475. normattack=true
  1476. WinrarDash()
  1477. normattack=false
  1478. end]]
  1479. RWL.C0 = CFrame.new(0.5,-1.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1480. RWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1481. LWL.C0 = CFrame.new(-0.5-0.6,-1.5+0.3,-0.3) * CFrame.fromEulerAnglesXYZ(0.5,0,-0.7+0.2)
  1482. LWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1483. Stance()
  1484. end
  1485. function Key2(key,mouse)
  1486. pcall(function() act.key[key:lower()] = false end)
  1487. if key=="f" then
  1488. holddash=false
  1489. end
  1490. if key=="g" then
  1491. dashing=false
  1492. end
  1493. end
  1494. function s(mouse)
  1495. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1496. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1497. mouse.KeyDown:connect(function(key) Key(key,mouse) end)
  1498. mouse.KeyUp:connect(function(key) Key2(key,mouse) end)
  1499. --mouse.KeyDown:connect(key,mouse)
  1500. --mouse.KeyUp:connect(key2,mouse)
  1501. MMouse=mouse
  1502. player = Player
  1503. ch = Character
  1504. RSH = ch.Torso["Right Shoulder"]
  1505. LSH = ch.Torso["Left Shoulder"]
  1506. --
  1507. RW.Part0 = ch.Torso
  1508. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1509. RW.C1 = CFrame.new(0, 0.5, 0)
  1510. RW.Part1 = ch["Right Arm"]
  1511. RW.Parent = ch.Torso
  1512. --_G.R = RW
  1513. --
  1514. LW.Part0 = ch.Torso
  1515. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1516. LW.C1 = CFrame.new(0, 0.5, 0)
  1517. LW.Part1 = ch["Left Arm"]
  1518. LW.Parent = ch.Torso
  1519. --_G.L = LW
  1520. --
  1521. RHP = ch.Torso["Right Hip"]
  1522. LHP = ch.Torso["Left Hip"]
  1523. --
  1524. RWL.Part0 = ch.Torso
  1525. RWL.C0 = CFrame.new(0, -1.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1526. RWL.C1 = CFrame.new(-0.5, 0.5, 0)
  1527. RWL.Part1 = ch["Right Leg"]
  1528. RWL.Parent = ch.Torso
  1529. --_G.R = RW
  1530. --
  1531. LWL.Part0 = ch.Torso
  1532. LWL.C0 = CFrame.new(0, -1.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1533. LWL.C1 = CFrame.new(0.5, 0.5, 0)
  1534. LWL.Part1 = ch["Left Leg"]
  1535. LWL.Parent = ch.Torso
  1536. --_G.L = LW
  1537. --
  1538. equipanim()
  1539. end
  1540. function ds(mouse)
  1541. hideanim()
  1542. RW.Parent = nil
  1543. LW.Parent = nil
  1544. RWL.Parent = nil
  1545. LWL.Parent = nil
  1546. RSH.Parent = player.Character.Torso
  1547. LSH.Parent = player.Character.Torso
  1548. RHP.Parent = player.Character.Torso
  1549. LHP.Parent = player.Character.Torso
  1550. end
  1551. Bin.Selected:connect(s)
  1552. Bin.Deselected:connect(ds)
  1553. --[[function onRunning(speed)
  1554. if attack == true then return end
  1555.         if speed>0 then
  1556. walking = true
  1557. for i = 0,1,0.1 do
  1558. wait()
  1559. if attack == false then
  1560. --Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1561. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1562. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1563. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1564. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1565. end
  1566. end
  1567.         else
  1568. walking = false
  1569. for i = 0,1,0.1 do
  1570. wait()
  1571. if attack == false then
  1572. --Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1573. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1574. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1575. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1576. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1577. end
  1578. end
  1579.         end
  1580. end
  1581. Character.Humanoid.Running:connect(onRunning) ]]
  1582. local BladeHealth=Character.Humanoid.MaxHealth/2
  1583. coroutine.resume(coroutine.create(function()
  1584. for i=0,1,0.1 do
  1585. wait()
  1586. Character.Humanoid.Maxhealth=BladeHealth
  1587. end
  1588. end))
  1589. while true do
  1590. wait(0)  
  1591. fentext3.Size = UDim2.new(mana*0.007,0,0.200000006,0)
  1592. fentext.Text = "Mana("..mana..")"
  1593. fentext3.BackgroundColor3 = Color3.new(1,1,1)
  1594. end
  1595.  
  1596. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement