Advertisement
leaspect489

Untitled

Jan 15th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 87.33 KB | None | 0 0
  1. if script:FindFirstChild("DSource") then
  2. script.DSource:Destroy()
  3. end
  4.  
  5. --71339704
  6.  
  7. Player = game:GetService("Players").LocalPlayer
  8. _G.Mouse = Player:GetMouse()
  9. Character = Player.Character
  10. PlayerGui = Player.PlayerGui
  11. Backpack = Player.Backpack
  12. Torso = Character.Torso
  13. Head = Character.Head
  14. LeftArm = Character["Left Arm"]
  15. LeftLeg = Character["Left Leg"]
  16. RightArm = Character["Right Arm"]
  17. RightLeg = Character["Right Leg"]
  18. LS = Torso["Left Shoulder"]
  19. LH = Torso["Left Hip"]
  20. RS = Torso["Right Shoulder"]
  21. RH = Torso["Right Hip"]
  22. attack = false
  23. attackdebounce = false
  24. restoring = false
  25. combo = 0
  26. MP = 600
  27. sitting=false
  28. attack = false
  29. attackdebounce = false
  30. combo = 0
  31. regening = false
  32. Modes = {"Normal", "Unarmed"}
  33. Number = 1
  34. mode = Modes[Number]
  35. element = "Water"
  36. Style = "Standard"
  37. Guard = false
  38. Bashing = false
  39. holddash = false
  40. barragehold = false
  41. idleanimdelay = false
  42. willidleanim = true
  43. --player
  44. player = nil
  45. --save shoulders
  46. RSH, LSH = nil, nil
  47. --welds
  48. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  49. RWL, LWL = Instance.new("Weld"), Instance.new("Weld")
  50. --what anim
  51. anim = "none"
  52. bov=Instance.new("BodyPosition")
  53. bov.P=2000
  54. bov.D=100
  55. bov.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  56.  
  57. if Character:findFirstChild("Tusgari-Gama",true) ~= nil then
  58. Character:findFirstChild("Tusgari-Gama",true).Parent = nil
  59. end
  60. if Player.PlayerGui:findFirstChild("MPGUI",true) ~= nil then
  61. Player.PlayerGui:findFirstChild("MPGUI",true).Parent = nil
  62. end
  63.  
  64.  
  65. Character.Humanoid.MaxHealth = 27*37+37^27
  66.  
  67. function part(formfactor,parent,reflectance,transparency,Color,name,size)
  68. local fp = Instance.new("Part")
  69. fp.Material = "SmoothPlastic"
  70. fp.formFactor = formfactor
  71. fp.Parent = parent
  72. fp.Reflectance = reflectance
  73. fp.Transparency = transparency
  74. fp.CanCollide = false
  75. fp.BrickColor = BrickColor.new(Color)
  76. fp.Name = name
  77. fp.Size = size
  78. fp.Position = Torso.Position
  79. fp.BottomSurface="SmoothNoOutlines"
  80. fp.TopSurface="SmoothNoOutlines"
  81. fp.RightSurface="SmoothNoOutlines"
  82. fp.LeftSurface="SmoothNoOutlines"
  83. fp:BreakJoints()
  84. return fp
  85. end
  86.  
  87. function wedgepart(formfactor,parent,reflectance,transparency,Color,name,size)
  88. local fp = Instance.new("WedgePart")
  89. fp.Material = "SmoothPlastic"
  90. fp.formFactor = formfactor
  91. fp.Parent = parent
  92. fp.Reflectance = reflectance
  93. fp.Transparency = transparency
  94. fp.CanCollide = false
  95. fp.BrickColor = BrickColor.new(Color)
  96. fp.Name = name
  97. fp.Size = size
  98. fp.Position = Torso.Position
  99. fp.BottomSurface="SmoothNoOutlines"
  100. fp.TopSurface="SmoothNoOutlines"
  101. fp.RightSurface="SmoothNoOutlines"
  102. fp.LeftSurface="SmoothNoOutlines"
  103. fp:BreakJoints()
  104. return fp
  105. end
  106.  
  107. local Tsu = Instance.new("Model")
  108. Tsu.Parent = Character
  109. Tsu.Name = "Tsusgari-Gama"
  110.  
  111. function Weld(w, p, p1, a, b, c, x, y, z)
  112. w.Parent = p
  113. w.Part0 = p
  114. w.Part1 = p1
  115. w.C1 = CFrame.fromEulerAnglesXYZ(a,b,c) * CFrame.new(x,y,z)
  116. end
  117.  
  118. prt0 = part("Custom",Tsu,0,0,"Earth orange","Handle",Vector3.new(0.2, 1.2, 0.4))
  119. weld0 = Instance.new("Weld")
  120. weld0.Parent = prt0
  121. weld0.Part0 = prt0
  122. weld0.Part1 = LeftArm
  123. weld0.C0 = CFrame.fromEulerAnglesXYZ(math.pi/2,-math.pi,0) * CFrame.new(0,0+1,0)
  124. Instance.new("CylinderMesh",prt0)
  125. prt1 = part("Custom",Tsu,0,0,"Earth orange","Handle",Vector3.new(0.2, 1.2, 0.4))
  126. weld1 = Instance.new("Weld")
  127. weld1.Parent = prt1
  128. weld1.Part0 = prt1
  129. weld1.Part1 = RightArm
  130. weld1.C0 = CFrame.fromEulerAnglesXYZ(math.pi/2,-math.pi,0) * CFrame.new(0,0+1,0)
  131. Instance.new("CylinderMesh",prt1)
  132. prt2 = part("Custom",Tsu,0,0,"Bright blue","No",Vector3.new(0.2, 0.2, 0.4))
  133. weld2 = Instance.new("Weld")
  134. weld2.Parent = prt2
  135. weld2.Part0 = prt2
  136. weld2.Part1 = prt0
  137. weld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.7,0)
  138. mesh2 = Instance.new("CylinderMesh",prt2)
  139. prt3 = part("Custom",Tsu,0,0,"Bright blue","No",Vector3.new(0.2, 0.2, 0.4))
  140. weld3 = Instance.new("Weld")
  141. weld3.Parent = prt3
  142. weld3.Part0 = prt3
  143. weld3.Part1 = prt1
  144. weld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.7,0)
  145. Instance.new("CylinderMesh",prt3)
  146. prt4 = wedgepart("Custom",Tsu,0.5,0,"Cyan","No",Vector3.new(0.25, 0.45, 1))
  147. weld4 = Instance.new("Weld")
  148. weld4.Parent = prt4
  149. weld4.Part0 = prt4
  150. weld4.Part1 = prt0
  151. weld4.C0 = CFrame.fromEulerAnglesXYZ(-math.pi/6,0,0) * CFrame.new(0,0.7,0.2)
  152. prt5 = wedgepart("Custom",Tsu,0.5,0,"Cyan","No",Vector3.new(0.25, 0.45, 1))
  153. weld5 = Instance.new("Weld")
  154. weld5.Parent = prt5
  155. weld5.Part0 = prt5
  156. weld5.Part1 = prt1
  157. weld5.C0 = CFrame.fromEulerAnglesXYZ(-math.pi/6,0,0) * CFrame.new(0,0.7,0.2)
  158. prt6 = part("Custom",Tsu,0,0,"Bright blue","No",Vector3.new(0.2, 0.2, 0.4))
  159. weld6 = Instance.new("Weld")
  160. weld6.Parent = prt6
  161. weld6.Part0 = prt6
  162. weld6.Part1 = prt0
  163. weld6.C0 = CFrame.fromEulerAnglesXYZ(0,0,0,0) * CFrame.new(0,-.7,0)
  164. Instance.new("CylinderMesh",prt6)
  165. prt7 = part("Custom",Tsu,0,0,"Bright blue","No",Vector3.new(0.2, 0.2, 0.4))
  166. weld7 = Instance.new("Weld")
  167. weld7.Parent = prt7
  168. weld7.Part0 = prt7
  169. weld7.Part1 = prt1
  170. weld7.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-.7,0)
  171. Instance.new("CylinderMesh",prt7)
  172. --105 angle, shoulder weld; arm pivot drop-up
  173.  
  174. local mpGUI = Instance.new("GuiMain")
  175. mpGUI.Parent = Player.PlayerGui
  176. mpGUI.Name = "MPGUI"
  177. local magicframe = Instance.new("Frame")
  178. magicframe.Parent = mpGUI
  179. if prt5.BrickColor == "Cyan" then
  180. magicframe.BackgroundColor3 = Color3.new(0,0,1013)
  181. else
  182. magicframe.BackgroundColor3 = Color3.new(199,199,199)
  183. end
  184. magicframe.BackgroundTransparency = 1
  185. magicframe.BorderColor3 = Color3.new(149,149,149)
  186. magicframe.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
  187. local magictext = Instance.new("TextLabel")
  188. magictext.Parent = magicframe
  189. magictext.Text = "MP("..MP..")"
  190. magictext.BackgroundTransparency = 1
  191. magictext.SizeConstraint = "RelativeXY"
  192. magictext.TextXAlignment = "Center"
  193. magictext.TextYAlignment = "Center"
  194. magictext.Position = UDim2.new(0,80,1,200)
  195. local magictext2 = Instance.new("TextLabel")
  196. magictext2.Parent = magicframe
  197. magictext2.Text = " "
  198. magictext2.BackgroundTransparency = 0
  199. magictext2.BackgroundColor3 = Color3.new(0,0,0)
  200. magictext2.SizeConstraint = "RelativeXY"
  201. magictext2.TextXAlignment = "Center"
  202. magictext2.TextYAlignment = "Center"
  203. magictext2.Position = UDim2.new(0,10,1,170)
  204. magictext2.Size = UDim2.new(2.79999995,0,0.210000306,0)
  205. local magictext3 = Instance.new("TextLabel")
  206. magictext3.Parent = magicframe
  207. magictext3.Text = " "
  208. magictext3.BackgroundTransparency = 0
  209. if prt5.BrickColor == "Cyan" then
  210. magictext3.BackgroundColor3 = Color3.new(0,0,1013)
  211. else
  212. magictext3.BackgroundColor3 = Color3.new(199,199,199)
  213. end
  214. magictext3.SizeConstraint = "RelativeXY"
  215. magictext3.TextXAlignment = "Center"
  216. magictext3.TextYAlignment = "Center"
  217. magictext3.Position = UDim2.new(0,10,1,170)
  218. magictext3.Size = UDim2.new(MP*0.007,0,0.400000006,0)
  219. --{2.9000001, 0}, {0.450000018, 0}
  220.  
  221. local mpStandard = Instance.new("BillboardGui")
  222. mpStandard.Parent = Player.PlayerGui
  223. mpStandard.Name = "MPGUI"
  224. mpStandard.Adornee = Head
  225. mpStandard.Size = UDim2.new(1, 0, 1, 0)
  226. mpStandard.StudsOffset = Vector3.new(0, 2, 0)
  227. local Frame = Instance.new("Frame")
  228. Frame.Parent = mpStandard
  229. Frame.Size = magictext3.Size
  230. Frame.BackgroundTransparency = 0.35
  231. Frame.BackgroundColor3 = magictext3.BackgroundColor3
  232. local text = Instance.new("TextLabel")
  233. text.Parent = Frame
  234. text.Position = UDim2.new{0,0}, {0,0}
  235. text.Size = UDim2.new(2.5, 0, 2.5, 0)
  236. text.Text = magictext.Text
  237.  
  238. local gairo = Instance.new("BodyGyro")
  239. gairo.Parent = nil
  240. gairo.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  241. gairo.P = 20e+003
  242.  
  243. local Gyro2 = Instance.new("BodyGyro")
  244. Gyro2.Parent = nil
  245. Gyro2.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  246. Gyro2.P = 20e+003
  247.  
  248. function ss(pitch) --linerider64 was here :D
  249.  
  250. local SlashSound = Instance.new("Sound")
  251. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  252. SlashSound.Parent = workspace
  253. SlashSound.Volume = .7
  254. SlashSound.Pitch = pitch --linerider64 was also here XD
  255. SlashSound.PlayOnRemove = true
  256. --SlashSound:play()
  257. coroutine.resume(coroutine.create(function()
  258. wait(0)
  259. SlashSound.Parent = nil
  260. end))
  261. end
  262. function ss1(pitch)
  263.  
  264. local Slash = Instance.new("Sound")
  265. Slash.SoundId = "http://roblox.com/asset/?id=10209645"
  266. Slash.Parent = workspace
  267. Slash.Volume = 1
  268. Slash.Pitch = pitch --0.65
  269. Slash.PlayOnRemove = true
  270. --Slash:play()
  271. coroutine.resume(coroutine.create(function()
  272. wait(0)
  273. Slash.Parent = nil
  274. end))
  275. end
  276. function SEE(pitch)
  277.  
  278. local SEE = Instance.new("Sound")
  279. SEE.SoundId = "http://www.roblox.com/asset/?id=2101148"
  280. SEE.Parent = workspace
  281. SEE.Volume = 1
  282. SEE.Pitch = pitch --1
  283. SEE.PlayOnRemove = true
  284. --See:play()
  285. coroutine.resume(coroutine.create(function()
  286. wait(0)
  287. SEE.Parent = nil
  288. end))
  289. end
  290. function ss3(pitch)
  291.  
  292. local SEE = Instance.new("Sound")
  293. SEE.SoundId = "http://www.roblox.com/asset/?id=48618802 "
  294. SEE.Parent = workspace
  295. SEE.Volume = 1
  296. SEE.Pitch = pitch --1.5
  297. SEE.PlayOnRemove = true
  298. --See:play()
  299. coroutine.resume(coroutine.create(function()
  300. wait(0)
  301. SEE.Parent = nil
  302. end))
  303. end
  304. function glassbreak(pitch)
  305.  
  306. local SEE = Instance.new("Sound")
  307. SEE.SoundId = "rbxasset://Sounds/glassbreak.wav"
  308. SEE.Parent = parent
  309. SEE.Volume = 1
  310. SEE.Pitch = pitch --1.5
  311. SEE.PlayOnRemove = true
  312. --See:play()
  313. coroutine.resume(coroutine.create(function()
  314. wait(0)
  315. SEE.Parent = nil
  316. end))
  317. end
  318. function critsound(pitch)
  319.  
  320. local SlashSound = Instance.new("Sound")
  321. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2801263"
  322. SlashSound.Parent = workspace
  323. SlashSound.Volume = .7
  324. SlashSound.Pitch = pitch
  325. SlashSound.PlayOnRemove = true
  326. coroutine.resume(coroutine.create(function()
  327. wait(0)
  328. SlashSound.Parent = nil
  329. end))
  330. end
  331. function sheath(pitch)
  332.  
  333. local SlashSound = Instance.new("Sound")
  334. SlashSound.SoundId = "http://roblox.com/asset/?id=10209850"
  335. SlashSound.Parent = workspace
  336. SlashSound.Volume = .7
  337. SlashSound.Pitch = pitch
  338. SlashSound.PlayOnRemove = true
  339. coroutine.resume(coroutine.create(function()
  340. wait(0)
  341. SlashSound.Parent = nil
  342. end))
  343. end
  344. function shieldbash(pitch)
  345.  
  346. local SlashSound = Instance.new("Sound")
  347. SlashSound.SoundId = "http://roblox.com/asset/?id=10209583"
  348. SlashSound.Parent = workspace
  349. SlashSound.Volume = .7
  350. SlashSound.Pitch = pitch
  351. SlashSound.PlayOnRemove = true
  352. coroutine.resume(coroutine.create(function()
  353. wait(0)
  354. SlashSound.Parent = nil
  355. end))
  356. end
  357. function magicsound(pitch)
  358.  
  359. local SlashSound = Instance.new("Sound")
  360. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2248511"
  361. SlashSound.Parent = workspace
  362. SlashSound.Volume = .5
  363. SlashSound.Pitch = pitch
  364. SlashSound.PlayOnRemove = true
  365. coroutine.resume(coroutine.create(function()
  366. wait(0)
  367. SlashSound.Parent = nil
  368. end))
  369. end
  370. function abscond(pitch)
  371.  
  372. local SlashSound = Instance.new("Sound")
  373. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2767090"
  374. SlashSound.Parent = workspace
  375. SlashSound.Volume = 1
  376. SlashSound.Pitch = pitch
  377. SlashSound.PlayOnRemove = true
  378. coroutine.resume(coroutine.create(function()
  379. wait(0)
  380. SlashSound.Parent = nil
  381. end))
  382. end
  383. function Charge(pitch)
  384.  
  385. local SlashSound = Instance.new("Sound")
  386. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2101137"
  387. SlashSound.Parent = workspace
  388. SlashSound.Volume = 1
  389. SlashSound.Pitch = pitch
  390. SlashSound.PlayOnRemove = true
  391. coroutine.resume(coroutine.create(function()
  392. wait(0)
  393. SlashSound.Parent = nil
  394. end))
  395. end
  396. function MagicMayhemUltimaSounds()
  397.  
  398. local SlashSound = Instance.new("Sound")
  399. SlashSound.SoundId = "http://www.roblox.com/asset/?id=13775494"
  400. SlashSound.Parent = workspace
  401. SlashSound.Volume = 1
  402. SlashSound.Pitch = 0.1
  403. SlashSound.PlayOnRemove = true
  404. coroutine.resume(coroutine.create(function()
  405. wait(0)
  406. SlashSound.Parent = nil
  407. end))
  408. local SlashSound = Instance.new("Sound")
  409. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2691586"
  410. SlashSound.Parent = workspace
  411. SlashSound.Volume = 1
  412. SlashSound.Pitch = 0.2
  413. SlashSound.PlayOnRemove = true
  414. coroutine.resume(coroutine.create(function()
  415. wait(0)
  416. SlashSound.Parent = nil
  417. end))
  418. local SlashSound = Instance.new("Sound")
  419. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2691586"
  420. SlashSound.Parent = workspace
  421. SlashSound.Volume = 1
  422. SlashSound.Pitch = 0.05
  423. SlashSound.PlayOnRemove = true
  424. coroutine.resume(coroutine.create(function()
  425. wait(0)
  426. SlashSound.Parent = nil
  427. end))
  428. local SlashSound = Instance.new("Sound")
  429. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2801263"
  430. SlashSound.Parent = workspace
  431. SlashSound.Volume = 1
  432. SlashSound.Pitch = 0.05
  433. SlashSound.PlayOnRemove = true
  434. coroutine.resume(coroutine.create(function()
  435. wait(0)
  436. SlashSound.Parent = nil
  437. end))
  438. local SlashSound = Instance.new("Sound")
  439. SlashSound.SoundId = "http://www.roblox.com/asset?id=1369158"
  440. SlashSound.Parent = workspace
  441. SlashSound.Volume = 1
  442. SlashSound.Pitch = 0.7
  443. SlashSound.PlayOnRemove = true
  444. coroutine.resume(coroutine.create(function()
  445. wait(0)
  446. SlashSound.Parent = nil
  447. end))
  448. local SlashSound = Instance.new("Sound")
  449. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2974000"
  450. SlashSound.Parent = workspace
  451. SlashSound.Volume = 1
  452. SlashSound.Pitch = 0.5
  453. SlashSound.PlayOnRemove = true
  454. coroutine.resume(coroutine.create(function()
  455. wait(0)
  456. SlashSound.Parent = nil
  457. end))
  458. local SlashSound = Instance.new("Sound")
  459. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2974249"
  460. SlashSound.Parent = workspace
  461. SlashSound.Volume = 1
  462. SlashSound.Pitch = 0.3
  463. SlashSound.PlayOnRemove = true
  464. coroutine.resume(coroutine.create(function()
  465. wait(0)
  466. SlashSound.Parent = nil
  467. end))
  468. end
  469.  
  470. if (script.Parent.className ~= "HopperBin") then
  471. local Tool = Instance.new("HopperBin")
  472. Tool.Parent = Backpack
  473. Tool.Name = "Tsugari-Gama"
  474. script.Parent = Tool
  475. end
  476. Bin = script.Parent
  477.  
  478. local SpikeMesh = Instance.new("SpecialMesh")
  479. SpikeMesh.MeshId = "http://www.roblox.com/asset/?id=1033714"
  480. SpikeMesh.MeshType = "FileMesh"
  481. SpikeMesh.Parent = Tsu
  482. SpikeMesh.Scale = Vector3.new(1, 1, 1)
  483.  
  484. function unequipweld()
  485. weld0.Part1 = Torso
  486. weld0.C0 = CFrame.fromEulerAnglesXYZ(0,math.pi,0) * CFrame.new(-1.5,1,0)
  487. weld1.Part1 = Torso
  488. weld1.C0 = CFrame.fromEulerAnglesXYZ(0,math.pi,0) * CFrame.new(1.5,1,0)
  489. --[[C1=CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  490. ]]--
  491. end
  492.  
  493. function equipweld()
  494. weld0.Part1 = LeftArm
  495. weld0.C0 = CFrame.fromEulerAnglesXYZ(math.pi/2,-math.pi,0) * CFrame.new(0,0+1,0)
  496. weld1.Part1 = RightArm
  497. weld1.C0 = CFrame.fromEulerAnglesXYZ(math.pi/2,-math.pi,0) * CFrame.new(0,0+1,0)
  498. end
  499.  
  500. function hideanim()
  501. for i = 0, 1, 0.1 do
  502. wait(0)
  503. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0.5*i-0.5,-math.pi/6*i+math.pi/6)
  504. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  505. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,-0.5*i+0.5,math.pi/6*i-math.pi/6)
  506. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  507. end
  508. wait(0.1)
  509. unequipweld()
  510. end
  511.  
  512. function equipanim()
  513. equipweld()
  514. for i = 0, 1, 0.2 do
  515. wait(0)
  516. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.pi/6*i,0.5*i,0)
  517. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  518. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.pi/6*i,-0.5*i,0)
  519. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  520. end
  521. end
  522.  
  523. function maim()
  524. equipweld()
  525. for i = 0, 1, 0.2 do
  526. wait(0)
  527. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,-math.rad(85)*i,-math.pi/4+math.rad(5)*i)
  528. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  529. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,math.rad(85)*i,math.pi/4-math.rad(5)*i)
  530. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  531. end
  532. end
  533.  
  534. function changeequipleft()
  535. if Number > 1 then
  536. Number = Number - 1
  537. mode = Modes[Number]
  538. print(mode)
  539. if Number == 1 then
  540. AttackMode()
  541. end
  542. while mode == Normal do
  543. if mode == Normal then
  544. DifferentEffect(Torso)
  545. DifferentEffect(Torso)
  546. end
  547. end
  548. end
  549. end
  550.  
  551. function changeequipright()
  552. if Number < #Modes then
  553. Number = Number + 1
  554. mode = Modes[Number]
  555. print(mode)
  556. if Number == 2 then
  557. ArmedCom()
  558. end
  559. end
  560. end
  561.  
  562. function ChangeElement()
  563. attack = true
  564. for i = 0,1,0.1 do
  565. wait()
  566. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57-0.3*i,3.14,0) * CFrame.new(0,0,-0.5)
  567. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2*i,0,0)
  568. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  569. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+1*i,0,0)
  570. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  571. end
  572. magicsound(1)
  573. if element == "Water" then
  574. element = "None"
  575. WaveEffect(Torso,3,3,3,0,-2,0,0,0,0,BrickColor.new("Grime"))
  576. elseif element == "None" then
  577. element = "Water"
  578. WaveEffect(Torso,3,3,3,0,-2,0,0,0,0,BrickColor.new("Cyan"))
  579. end
  580. for i = 0,1,0.2 do
  581. wait()
  582. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57-0.3+0.6*i,3.14,0) * CFrame.new(0,0,-0.5)
  583. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2-3*i,0,0)
  584. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  585. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2-3*i,0,0)
  586. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  587. end
  588. wait(0.2)
  589. for i = 0,1,0.1 do
  590. wait()
  591. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3-0.3*i,3.14,0) * CFrame.new(0,0,-0.5)
  592. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1+1*i,0,0)
  593. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  594. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1+2*i,0,0)
  595. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  596. end
  597. attack = false
  598. end
  599.  
  600. function ArmedCom()
  601. attack = true
  602. for i = 0,1,0.1 do
  603. wait()
  604. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(-0.5*i+1.57,3.14,0) * CFrame.new(0,0,-0.5)
  605. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2.5*i,0,-0.5*i)
  606. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  607. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2.5*i,0,0.5*i)
  608. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  609. weld0.C0 = CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) * CFrame.new(0, 1, 0)
  610. weld1.C0 = CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) * CFrame.new(0, 1, 0)
  611. end
  612. wait(0)
  613. for i = 0, 1 , 0.1 do
  614. wait(0)
  615. MMMAGIC(prt0,0.8,0.8,0.8,0,0,0,BrickColor.new("Navy blue"))
  616. MMMAGIC(prt1,0.8,0.8,0.8,0,0,0,BrickColor.new("Navy blue"))
  617. end
  618. for i = 0,1,0.1 do
  619. wait()
  620. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.62-0.5*i,3.14,0) * CFrame.new(0,0,-0.5)
  621. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2.5-2.5*i,0,0.5*i-0.5)
  622. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  623. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2.5-2.5*i,0,-0.5*i+0.5)
  624. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  625. equipweld()
  626. end
  627. --Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5)
  628. attack = false
  629. end
  630.  
  631. function AttackMode()
  632. attack = true
  633. for i = 0,1,0.1 do
  634. wait()
  635. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3*i,3.14,0) * CFrame.new(0,0,-0.5)
  636. LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.5*i,-1.57*i,0)
  637. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.7*i,0,0)
  638. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-0.3*i,1*i,0)
  639. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  640. end
  641. sheath(2.25)
  642. wait(0.2)
  643. for i = 0,1,0.1 do
  644. wait()
  645. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3-0.3*i,3.14,0) * CFrame.new(0,0,-0.5)
  646. LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.5-1.5*i,-1.57+1.57*i,0)
  647. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.7+0.7*i,0,0)
  648. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-0.3+0.3*i,1-1*i,0)
  649. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  650. end
  651. attack = false
  652. end
  653.  
  654. function oneslash()
  655. attack = true
  656. combo = 1
  657. for i = 0 , 1 , 0.1 do
  658. wait(0)
  659. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2*i,-0.5*i+0.5,0.5*i-0.5)
  660. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  661. end
  662. gairo.Parent = Head
  663. gairo.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  664. gairo.P = 20e+003
  665. gairo.cframe = Head.CFrame
  666. ss(0.8)
  667. con1=prt0.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
  668. con2=prt1.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
  669. for i = 0 , 1 , 0.2 do
  670. wait(0)
  671. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,-1*i) * CFrame.new(0,0,-0.5)
  672. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-2*i+2,1*i,0)
  673. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-1*i,0,0)
  674. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1*i,0,1*i)
  675. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  676. weld1.C0 = CFrame.fromEulerAnglesXYZ(math.pi/2,-math.pi-math.pi/3*i,0) * CFrame.new(0, 1, 0)
  677. end
  678. wait(0.3)
  679. con1:disconnect()
  680. con2:disconnect()
  681. --Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5)
  682. attack = false
  683. end
  684.  
  685. function twoslash()
  686. attack = true
  687. combo = 2
  688. gairo.Parent = Head
  689. gairo.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  690. gairo.P = 20e+003
  691. gairo.cframe = Head.CFrame
  692. for i = 0 , 1 , 0.1 do
  693. wait(0)
  694. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  695. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.5*i+4.07,0,0)
  696. weld1.C0 = CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) * CFrame.new(0, 1, -1)
  697. end
  698. magicsound(3)
  699. con2=prt1.Touched:connect(function(hit) critsound(1) Damagefunc2(hit,20,30) end)
  700. wait(0.2)
  701. for i = 0, 1 , 0.1 do
  702. wait(0)
  703. MMMAGIC(prt1,2,2,2,0,0,0,BrickColor.new("Navy blue"))
  704. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,-1.5*i) * CFrame.new(0,0,-0.5)
  705. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  706. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-4*i+2.5+4.07,0,0)
  707. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  708. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-1*i,-1.2*i,0)
  709. equipweld()
  710. end
  711. wait(0.5)
  712. con1:disconnect()
  713. con2:disconnect()
  714. --Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5)
  715. gairo.Parent = nil
  716. attack = false
  717. end
  718.  
  719. function threeslash()
  720. attack = true
  721. combo = 3
  722. for i = 0 , 1 , 0.1 do
  723. wait(0)
  724. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,-1*i) * CFrame.new(0,0,-0.5)
  725. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ((-2*i+2),0,-1*i)
  726. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  727. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1*i,0,-1*i)
  728. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  729. end
  730. gairo.Parent = Head
  731. gairo.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  732. gairo.P = 20e+003
  733. gairo.cframe = Head.CFrame
  734. wait(0.3)
  735. if MP >= 100 then
  736. MMMAGIC(prt1,.8,.8,.8,0,0,0,BrickColor.new("Neon orange"))
  737. MMMAGIC(prt1,1,1,1,0,0,0,BrickColor.new("New Yeller"))
  738. MMMAGIC(prt1,2,2,2,0,0,0,BrickColor.new("Cool yellow"))
  739. MMMAGIC(prt1,3,3,3,0,0,0,BrickColor.new("Bright yellow"))
  740. wait()
  741. MP = MP - math.random(3,57)
  742. end
  743. wait()
  744. SEE(7)
  745. con1=prt0.Touched:connect(function(hit) Damagefunc1(hit,0,1) Damagefunc2(hit,0.5,3.1) end)
  746. con2=prt1.Touched:connect(function(hit) Damagefunc1(hit,0,2.3) Damagefunc2(hit,-0.78,5) end)
  747. wait(0.2)
  748. con1:disconnect()
  749. con2:disconnect()
  750. wait(0.3)
  751. --Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5)
  752. attack = false
  753. end
  754.  
  755. function Epic()
  756. attack = true
  757. r = 20
  758. h = 30
  759. if MP >= 450 then
  760. MP = MP - 150
  761. print(MP)
  762. if MP >= 600 then
  763.  
  764. end
  765. end
  766. for i = 0 , 1 , 0.1 do
  767. wait(0)
  768. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57-1*i,3.14,0) * CFrame.new(0,0,-0.5)
  769. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.14*i,0.2*i,0)
  770. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  771. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.14*i,-0.2*i,0)
  772. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  773. end
  774. for i = 0, 1 , 0.1 do
  775. wait(0)
  776. MMMAGIC(prt0,1,1,1,0,0,0,BrickColor.new("Bright yellow"))
  777. MMMAGIC(prt1,1,1,1,0,0,0,BrickColor.new("Bright yellow"))
  778. end
  779. for o = h,75,7 do
  780. for i = 0,360,30 do
  781. local c = Instance.new("Part")
  782. c.Parent = Workspace
  783. c.Size = Vector3.new(4,o,4)
  784. c.Anchored = true
  785. c.Material = "Slate"
  786. c.CanCollide = true
  787. c.BrickColor = BrickColor.new("Brown")
  788. Spike=SpikeMesh:clone()
  789. Spike.Parent=c
  790. Spike.Scale = c.Size
  791. c.CFrame = Torso.CFrame + Vector3.new(math.cos(math.rad(i))*r,0,math.sin(math.rad(i))*r) - Vector3.new(0,c.Size.y,0)
  792. coroutine.resume(coroutine.create(function()
  793. for i = 1,c.Size.y,2 do
  794. wait()
  795. c.CFrame = c.CFrame + Vector3.new(0,2,0)
  796. end
  797. delay(3,function()
  798. for i = 1,c.Size.y do
  799. wait()
  800. c.CFrame = c.CFrame - Vector3.new(0,1,0)
  801. end
  802. c:Remove()
  803. end)
  804. end))
  805. end
  806. r = r+10
  807. end
  808. for i = 0 , 1 , 0.1 do
  809. wait(0)
  810. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57-1*i+1,3.14,0) * CFrame.new(0,0,-0.5)
  811. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.14*i-3.14,0.2*i-0.2,0)
  812. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  813. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.14*i-3.14,-0.2*i+0.2,0)
  814. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  815. end
  816. attack = false
  817. end
  818.  
  819. function Block()
  820. attack = true
  821. Guard = true
  822. Character.Humanoid.WalkSpeed = 20
  823. for i = 0,1,0.1 do
  824. wait()
  825. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5)
  826. LW.C0 = CFrame.new(-1.5+0.8*i,0.5+0.2*i,-0.8*i) * CFrame.fromEulerAnglesXYZ(2.07*i,0,1.4*i)
  827. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  828. RW.C0 = CFrame.new(1.5-0.8*i,0.5,-0.8*i) * CFrame.fromEulerAnglesXYZ(0.7+0.87*i,0,-1.4*i)
  829. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  830. end
  831. humanoid = Character.Humanoid
  832. lhh = humanoid.Health
  833.  
  834. while Guard == true do
  835. wait()
  836.  
  837. if humanoid.Health < lhh then
  838.  
  839. print(lhh - humanoid.Health)
  840. test = lhh - humanoid.Health
  841. if MP < 600 then
  842. MP = MP - math.random(test, test*50)
  843. end
  844. if MP > 600 then
  845. MP = 600
  846. end
  847. if mode == "Normal" then
  848. humanoid.Health = lhh - (test * 50)
  849. elseif mode == "Unarmed" then
  850. humanoid.Health = lhh - (test * 50)
  851. end
  852. lhh = humanoid.Health
  853. shieldbash(1)
  854. local vel = Instance.new("BodyVelocity")
  855. vel.Parent = Torso
  856. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1000
  857. vel.velocity = Torso.CFrame.lookVector * -20
  858. velo = -20
  859. for i = 0,1,0.2 do
  860. wait()
  861. LW.C0 = CFrame.new(-1.5+0.8,0.5+0.2,-0.8) * CFrame.fromEulerAnglesXYZ(2.07,0,1.4+0.5*i)
  862. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  863. RW.C0 = CFrame.new(1.5-0.8,0.5,-0.8) * CFrame.fromEulerAnglesXYZ(0.7+0.87,0,-1.4-0.5*i)
  864. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  865. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3*i,3.14,0) * CFrame.new(0,0,-0.5)
  866. end
  867. for i = 0,1,0.05 do
  868. wait()
  869. LW.C0 = CFrame.new(-1.5+0.8,0.5+0.2,-0.8) * CFrame.fromEulerAnglesXYZ(2.07,0,1.4+0.5-0.5*i)
  870. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  871. RW.C0 = CFrame.new(1.5-0.8,0.5,-0.8) * CFrame.fromEulerAnglesXYZ(0.7+0.87,0,-1.4-0.5+0.5*i)
  872. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  873. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3-0.3*i,3.14,0) * CFrame.new(0,0,-0.5)
  874. velo = velo + 0.5
  875. vel.velocity = Torso.CFrame.lookVector * velo
  876. end
  877. vel.Parent = nil
  878.  
  879. end
  880.  
  881. wait(0.1)
  882. end
  883. Character.Humanoid.WalkSpeed = 16
  884. if Guard == false then
  885. for i = 0,1,0.1 do
  886. wait()
  887. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5)
  888. LW.C0 = CFrame.new(-1.5+0.8-0.8*i,0.5+0.2-0.2*i,-0.8+0.8*i) * CFrame.fromEulerAnglesXYZ(2.07-2.07*i,0,1.4-1.4*i)
  889. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  890. RW.C0 = CFrame.new(1.5-0.8+0.8*i,0.5,-0.8+0.8*i) * CFrame.fromEulerAnglesXYZ(0.7+0.87-0.87*i,0,-1.4+1.4*i)
  891. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  892. end
  893. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5)
  894. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  895. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  896. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.7,0,0)
  897. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  898. attack = false
  899. end
  900. end
  901.  
  902. function Dash()
  903. if MP >= 20 then
  904. attack = true
  905. gairo.Parent = Head
  906. gairo.cframe = Head.CFrame
  907. for i = 0,1,0.1 do
  908. wait()
  909. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0.5*i) * CFrame.new(0,0,-0.5)
  910. LW.C0 = CFrame.new(-1.5+0.7*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.9*i,0,1*i)
  911. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  912. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1+0.57*i,0,-1.2*i)
  913. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  914. end
  915. MP = MP - 20
  916. MagicMayhemUltimaSounds(5)
  917. con1=prt0.Touched:connect(function(hit) Bash(hit,40) end)
  918. local vel = Instance.new("BodyVelocity")
  919. vel.Parent = Player.Character.Torso
  920. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  921. vel.velocity = Head.CFrame.lookVector * 100
  922. for i = 0,1,0.2 do
  923. wait()
  924. if element == "Water" then
  925. MMMAGIC(prt0,3,3,3,0,0,0,BrickColor.new("Cyan"))
  926. MOREMAGIX(prt0,0,2,2,2,BrickColor.new("Cyan"))
  927. DashEf(Head.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),BrickColor.new("Cyan"))
  928. else
  929. MMMAGIC(prt0,3,3,3,0,0,0,BrickColor.new("Grime"))
  930. MOREMAGIX(prt0,0,2,2,2,BrickColor.new("Grime"))
  931. DashEf(Head.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),BrickColor.new("Grime"))
  932. end
  933. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0.5) * CFrame.new(0,0,-0.5)
  934. LW.C0 = CFrame.new(-1.5+0.7,0.5,-0.5-0.3*i) * CFrame.fromEulerAnglesXYZ(1.9,0,1-0.3*i)
  935. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  936. RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5-0.3*i) * CFrame.fromEulerAnglesXYZ(1+0.57,0,-1.2+0.3*i)
  937. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  938. end
  939. for i = 0,1,0.2 do
  940. wait()
  941. if element == "Water" then
  942. MMMAGIC(prt0,3,3,3,0,0,0,BrickColor.new("Cyan"))
  943. MOREMAGIX(prt0,0,2,2,2,BrickColor.new("Cyan"))
  944. DashEf(Head.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),BrickColor.new("Cyan"))
  945. else
  946. MMMAGIC(prt0,3,3,3,0,0,0,BrickColor.new("Grime"))
  947. MOREMAGIX(prt0,0,2,2,2,BrickColor.new("Grime"))
  948. DashEf(Head.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),BrickColor.new("Grime"))
  949. end
  950. end
  951. vel.Parent = nil
  952. for i = 0,1,0.2 do
  953. wait()
  954. if element == "Water" then
  955. MMMAGIC(prt0,3,3,3,0,0,0,BrickColor.new("Cyan"))
  956. MOREMAGIX(prt0,0,2,2,2,BrickColor.new("Cyan"))
  957. DashEf(Head.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),BrickColor.new("Cyan"))
  958. else
  959. MMMAGIC(prt19,3,3,3,0,0,0,BrickColor.new("Grime"))
  960. MOREMAGIX(prt19,0,2,2,2,BrickColor.new("Grime"))
  961. DashEf(Head.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),BrickColor.new("Grime"))
  962. end
  963. end
  964. if mode == "Normal" then
  965. wait(0.3)
  966. for i = 0,1,0.1 do
  967. wait()
  968. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0.5-0.5*i) * CFrame.new(0,0,-0.5)
  969. LW.C0 = CFrame.new(-1.5+0.7-0.7*i,0.5,-0.5-0.3+0.8*i) * CFrame.fromEulerAnglesXYZ(1.9-1.9*i,0,1-0.3-0.7*i)
  970. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  971. RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5-0.3+0.8*i) * CFrame.fromEulerAnglesXYZ(1+0.57-0.57*i,0,-1.2+0.3+0.9*i)
  972. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  973. end
  974. gairo.Parent = nil
  975. wait(0.2)
  976. con1:disconnect()
  977. elseif mode == "Unarmed" then
  978. if holddash == true and MP >= 20 then
  979. con1:disconnect()
  980. gairo.Parent = nil
  981. wait(0.5)
  982. gairo.Parent = Head
  983. gairo.cframe = Head.CFrame
  984. for i = 0,1,0.1 do
  985. wait()
  986. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0.5-1*i) * CFrame.new(0,0,-0.5)
  987. LW.C0 = CFrame.new(-1.5+0.7-0.7*i,0.5,-0.8+0.8*i) * CFrame.fromEulerAnglesXYZ(1.9,0,0.7-1.6*i)
  988. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  989. RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.8+0.8*i) * CFrame.fromEulerAnglesXYZ(1.57,0,-0.9+2*i)
  990. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  991. end
  992. magicsound(8)
  993. con2=prt1.Touched:connect(function(hit) Damagefunc2(hit,40,25) end)
  994. MP = MP - 2*10
  995. local vel = Instance.new("BodyVelocity")
  996. vel.Parent = Torso
  997. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  998. vel.velocity = Head.CFrame.lookVector * 50 --Applied force
  999. for i = 0,1,0.2 do
  1000. wait()
  1001. if element == "Water" then
  1002. MMMAGIC(prt1,3,3,3,0,0,0,BrickColor.new("Cyan"))
  1003. MOREMAGIX(prt1,0,2,2,2,BrickColor.new("Cyan"))
  1004. DashEf(Head.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),BrickColor.new("Cyan"))
  1005. else
  1006. MMMAGIC(prt1,3,3,3,0,0,0,BrickColor.new("Grime"))
  1007. MOREMAGIX(prt1,0,2,2,2,BrickColor.new("Grime"))
  1008. DashEf(Head.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),BrickColor.new("Grime"))
  1009. end
  1010. --weld1 weld here
  1011. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0.5-1) * CFrame.new(0,0,-0.5)
  1012. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.9-0.33*i,0,0.7-1.5+0.4*i)
  1013. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1014. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,-0.9+2)
  1015. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1016. end
  1017. for i = 0,1,0.2 do
  1018. wait()
  1019. if element == "Water" then
  1020. MMMAGIC(prt1,3,3,3,0,0,0,BrickColor.new("Cyan"))
  1021. MOREMAGIX(prt1,0,2,2,2,BrickColor.new("Cyan"))
  1022. DashEf(Head.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),BrickColor.new("Cyan"))
  1023. else
  1024. MMMAGIC(prt1,3,3,3,0,0,0,BrickColor.new("Grime"))
  1025. MOREMAGIX(prt1,0,2,2,2,BrickColor.new("Grime"))
  1026. DashEf(Head.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),BrickColor.new("Grime"))
  1027. end
  1028. end
  1029. vel.Parent = nil
  1030. for i = 0,1,0.2 do
  1031. wait()
  1032. if element == "Water" then
  1033. MMMAGIC(prt1,3,3,3,0,0,0,BrickColor.new("Cyan"))
  1034. MOREMAGIX(prt1,0,2,2,2,BrickColor.new("Cyan"))
  1035. DashEf(Head.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),BrickColor.new("Cyan"))
  1036. else
  1037. MMMAGIC(prt1,3,3,3,0,0,0,BrickColor.new("Grime"))
  1038. MOREMAGIX(prt1,0,2,2,2,BrickColor.new("Grime"))
  1039. DashEf(Head.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),BrickColor.new("Grime"))
  1040. end
  1041. end
  1042. wait(0.3)
  1043. con2:disconnect()
  1044. for i = 0,1,0.1 do
  1045. wait()
  1046. --weld1 weld here
  1047. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,-0.5+0.5*i) * CFrame.new(0,0,-0.5)
  1048. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.9-0.33-1.57*i,0,1.2-1.2*i)
  1049. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1050. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-0.57*i,0,1.1-1.1*i)
  1051. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1052. end
  1053. gairo.Parent = nil
  1054. else
  1055. wait(0.3)
  1056. for i = 0,1,0.1 do
  1057. wait()
  1058. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0.5-0.5*i) * CFrame.new(0,0,-0.5)
  1059. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.9-0.33-1.57*i,0,1.2-1.2*i)
  1060. --LW.C0 = CFrame.new(-1.5+0.7-0.7*i,0.5,-0.5-0.3+0.8*i) * CFrame.fromEulerAnglesXYZ(1.9-1.9*i,0,1-0.3-0.7*i)
  1061. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1062. RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5-0.3+0.8*i) * CFrame.fromEulerAnglesXYZ(1+0.57-0.57*i,0,-1.2+0.3+0.9*i)
  1063. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1064. end
  1065. gairo.Parent = nil
  1066. wait(0.2)
  1067. con1:disconnect()
  1068. end
  1069. end
  1070. attack = false
  1071. end
  1072. end
  1073.  
  1074. function Restore()
  1075. attack = true
  1076. restoring = true
  1077. Taunts={"Curaga.","This'll take a while","Cura","Cure!","Mending.."}
  1078. for i = 0,1,0.1 do
  1079. wait()
  1080. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57-0.2*i+0.3,3.14,0) * CFrame.new(0,0,-0.5)
  1081. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-math.pi/4*i+math.pi/18,-0.45*i+0.2,-math.pi/6*i+math.pi/18)
  1082. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1083. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-math.pi/4*i+math.pi/18,0.45*i-0.2,math.pi/6*i-math.pi/18)
  1084. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1085. end
  1086. coroutine.resume(coroutine.create(function()
  1087. while wait() do
  1088. game:GetService("Chat"):Chat(Character,Taunts[math.random(1, #Taunts)],"Blue")
  1089. wait(1)
  1090. Character.Chat:Remove()
  1091. end
  1092. end))
  1093. local lol = Instance.new("Part")
  1094. lol.Parent = Tsu
  1095. lol.Shape = "Ball"
  1096. lol.Position = Torso.Position
  1097. lol.Anchored = false
  1098. lol.Name = "lol"
  1099. lol.Transparency = 0.35
  1100. lol.CanCollide = false
  1101. lol.Size = Vector3.new(1,1,1)
  1102. lol.BrickColor = workspace.Base.BrickColor or workspace.BasePart.BrickColor
  1103. local lolmesh = Instance.new("SpecialMesh")
  1104. lolmesh.Parent = lol
  1105. lolmesh.Scale = Vector3.new(0.3,0.3,0.3)
  1106. lolmesh.MeshType = "Sphere"
  1107. local lolweld = Instance.new("Weld")
  1108. lolweld.Parent = lol
  1109. lolweld.Part0 = lol
  1110. lolweld.Part1 = Torso
  1111. wait(0)
  1112. coroutine.resume(coroutine.create(function()
  1113. for i = 0, 1, 0.05 do
  1114. wait(0)
  1115. lolmesh.Scale = lolmesh.Scale + Vector3.new(0.15,0.15,0.15)
  1116. end
  1117. end))
  1118. while restoring == true do
  1119. wait(0.15)
  1120. lolweld.C0 = CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) * CFrame.new(0, -5, 4.2)
  1121. lolweld.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  1122. MMMAGIC(lol,.8,.8,.8,0,0,0,BrickColor.new("Sand green"))
  1123. MMMAGIC(lol,1,1,1,0,0,0,BrickColor.new("Eath green"))
  1124. MMMAGIC(lol,2,2,2,0,0,0,BrickColor.new("Camo"))
  1125. MMMAGIC(lol,3,3,3,0,0,0,BrickColor.new("Black"))
  1126. DifferentEffect(workspace.Base)
  1127. DifferentEffect(workspace.Base)
  1128. DifferentEffect(workspace.Base)
  1129. con=lol.Touched:connect(function(hit) Damagefunc1(hit.Torso, 0.5, 0) end)
  1130. if MP >= 1000 then
  1131. MP = 1000
  1132. else
  1133. Character.Humanoid.Health = Character.Humanoid.Health + 5.05
  1134. MP = MP + 2*2^4
  1135. end
  1136. end
  1137. wait(.3)
  1138. for i = 0, 1, 0.05 do
  1139. wait(0)
  1140. lol.Transparency = lol.Transparency + 0.03
  1141. lolmesh.Scale = lolmesh.Scale + Vector3.new(0.25,0.25,0.25)
  1142. end
  1143. for i = 0,1,0.1 do
  1144. wait()
  1145. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57-0.2*i+0.3-0.3+0.2,3.14,0) * CFrame.new(0,0,-0.5)
  1146. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-math.rad(55)+math.pi/18*i,-0.25-0.2*i,-math.rad(40)+math.pi/18*i)
  1147. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1148. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-math.rad(55)+math.pi/18*i,0.25+0.2*i,math.rad(40)-math.pi/18*i)
  1149. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1150. end
  1151. con:disconnect()
  1152. lol:Destroy()
  1153. attack = false
  1154. end
  1155.  
  1156. function MMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  1157. local msh1 = Instance.new("BlockMesh")
  1158. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  1159. S=Instance.new("Part")
  1160. S.Name="Effect"
  1161. S.formFactor=3
  1162. S.Size=Vector3.new(x1,y1,z1)
  1163. S.BrickColor=color
  1164. S.Reflectance = 0
  1165. S.TopSurface=0
  1166. S.BottomSurface=0
  1167. S.Transparency=0
  1168. S.Anchored=true
  1169. S.CanCollide=false
  1170. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1171. S.Parent=Character
  1172. msh1.Parent = S
  1173. 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)
  1174. end
  1175.  
  1176. function MMMAGIC2(part,x1,y1,z1,x2,y2,z2,color)
  1177. local msh1 = Instance.new("BlockMesh")
  1178. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  1179. S=Instance.new("Part")
  1180. S.Name="Effect"
  1181. S.formFactor=0
  1182. S.Size=Vector3.new(x1,y1,z1)
  1183. S.BrickColor=color
  1184. S.Reflectance = 0
  1185. S.TopSurface=0
  1186. S.BottomSurface=0
  1187. S.Transparency=0
  1188. S.Anchored=true
  1189. S.CanCollide=false
  1190. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1191. S.Parent=Character
  1192. msh1.Parent = S
  1193. 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)
  1194. end
  1195.  
  1196. function UltimaMMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  1197. local msh1 = Instance.new("BlockMesh")
  1198. msh1.Scale = Vector3.new(x1,y1,z1)
  1199. S=Instance.new("Part")
  1200. S.Name="Effect"
  1201. S.formFactor=0
  1202. S.Size=Vector3.new(1,1,1)
  1203. S.BrickColor=color
  1204. S.Reflectance = 0
  1205. S.TopSurface=0
  1206. S.BottomSurface=0
  1207. S.Transparency=0
  1208. S.Anchored=true
  1209. S.CanCollide=false
  1210. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1211. S.Parent=Character
  1212. msh1.Parent = S
  1213. 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)
  1214. end
  1215.  
  1216. function MOREMAGIX(part,cframe,x,y,z,color)
  1217. p2=Instance.new("Part")
  1218. p2.Name="Blast"
  1219. p2.TopSurface=0
  1220. p2.BottomSurface=0
  1221. p2.CanCollide=false
  1222. p2.Anchored=true
  1223. p2.BrickColor=color
  1224. p2.Size=Vector3.new(x,y,z)
  1225. p2.formFactor="Symmetric"
  1226. p2.CFrame=part.CFrame*CFrame.new(0,cframe,0)
  1227. p2.Parent=workspace
  1228. m=Instance.new("BlockMesh")
  1229. m.Parent=p2
  1230. m.Name="BlastMesh"
  1231. 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))
  1232. end
  1233.  
  1234. function TsubasaMAGIX(part,cframe,x,y,z,color)
  1235. p2=Instance.new("Part")
  1236. p2.Name="Wings"
  1237. p2.TopSurface=0
  1238. p2.BottomSurface=0
  1239. p2.CanCollide=false
  1240. p2.Anchored=true
  1241. p2.BrickColor=color
  1242. p2.Size=Vector3.new(x,y,z)
  1243. p2.formFactor="Symmetric"
  1244. p2.CFrame=part.CFrame*CFrame.new(0,cframe,0)
  1245. p2.Parent=workspace
  1246. local m = Instance.new("SpecialMesh")
  1247. m.Scale = Vector3.new(.01,1.5,5)
  1248. m.MeshId = "http://www.roblox.com/asset/?id=1081197"
  1249. m.MeshType = "FileMesh"
  1250. m.Parent=p2
  1251. m.Name="Wing"
  1252. coroutine.resume(coroutine.create(function(part,dir) for loll=1, 15 do 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 Wings.Parent=nil end),p2,Vector3.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10))
  1253. end
  1254.  
  1255. function EVENMOARMAGIX(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  1256. local msh1 = Instance.new("SpecialMesh")
  1257. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  1258. msh1.MeshType = "Sphere"
  1259. S=Instance.new("Part")
  1260. S.Name="Effect"
  1261. S.formFactor=0
  1262. S.Size=Vector3.new(x1,y1,z1)
  1263. S.BrickColor=color
  1264. S.Reflectance = 0
  1265. S.TopSurface=0
  1266. S.BottomSurface=0
  1267. S.Transparency=0
  1268. S.Anchored=true
  1269. S.CanCollide=false
  1270. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
  1271. S.Parent=Character
  1272. msh1.Parent = S
  1273. 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)
  1274. end
  1275.  
  1276. function WaveEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  1277. local msh1 = Instance.new("SpecialMesh")
  1278. msh1.Scale = Vector3.new(x1,y1,z1)
  1279. msh1.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1280. S=Instance.new("Part")
  1281. S.Name="Effect"
  1282. S.formFactor=0
  1283. S.Size=Vector3.new(1,1,1)
  1284. S.BrickColor=color
  1285. S.Reflectance = 0
  1286. S.TopSurface=0
  1287. S.BottomSurface=0
  1288. S.Transparency=0
  1289. S.Anchored=true
  1290. S.CanCollide=false
  1291. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
  1292. S.Parent=Character
  1293. msh1.Parent = S
  1294. 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)
  1295. end
  1296.  
  1297. function BlastEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  1298. local msh1 = Instance.new("SpecialMesh")
  1299. msh1.Scale = Vector3.new(x1,y1,z1)
  1300. msh1.MeshId = "http://www.roblox.com/asset/?id=1323306"
  1301. S=Instance.new("Part")
  1302. S.Name="Effect"
  1303. S.formFactor=0
  1304. S.Size=Vector3.new(1,1,1)
  1305. S.BrickColor=color
  1306. S.Reflectance = 0
  1307. S.TopSurface=0
  1308. S.BottomSurface=0
  1309. S.Transparency=0
  1310. S.Anchored=true
  1311. S.CanCollide=false
  1312. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
  1313. S.Parent=Character
  1314. msh1.Parent = S
  1315. 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)
  1316. end
  1317.  
  1318. function DifferentEffect(parent)
  1319. p=Instance.new("Part")
  1320. p.Name="FlameEm"
  1321. p.Shape=0
  1322. p.TopSurface=0
  1323. p.BottomSurface=0
  1324. p.BrickColor = parent.BrickColor
  1325. p.Anchored=true
  1326. p.CanCollide=false
  1327. p.Size=Vector3.new(1,1,1)
  1328. p.CFrame=CFrame.new(Character["Torso"].CFrame.p+Vector3.new(0,-3,0))+Vector3.new(math.random(-10,10)/3,0,math.random(-10,10)/3)
  1329. p.Parent=parent
  1330. m=Instance.new("SpecialMesh")
  1331. m.MeshType="Sphere"
  1332. m.Parent=p
  1333. m.Scale=Vector3.new(1,1,1)
  1334. coroutine.resume(coroutine.create(function(p) for i=1, 9 do p.Mesh.Scale=p.Mesh.Scale+Vector3.new(0,1.5,0) p.Transparency=p.Transparency+1/9 wait(0) end p.Parent=nil end),p)
  1335. end
  1336.  
  1337. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1338. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1339. end
  1340.  
  1341. LastPoint = Torso
  1342. function effect(Color,Ref,LP,P1,returnn)
  1343. local effectsmsh = Instance.new("CylinderMesh")
  1344. effectsmsh.Scale = Vector3.new(1,1,1)
  1345. effectsmsh.Name = "Mesh"
  1346. local effectsg = Instance.new("Part")
  1347. effectsg.Material = "SmoothPlastic"
  1348. effectsg.formFactor = 3
  1349. effectsg.CanCollide = false
  1350. effectsg.Name = "Eff"
  1351. effectsg.Locked = true
  1352. effectsg.Anchored = true
  1353. effectsg.Transparency=0.7
  1354. effectsg.Size = Vector3.new(0.5,1,0.5)
  1355. effectsg.Parent = workspace
  1356. effectsmsh.Parent = effectsg
  1357. effectsg.BrickColor = BrickColor.new(Color)
  1358. effectsg.Reflectance = Ref
  1359. local point1 = P1
  1360. local mg = (LP.p - point1.p).magnitude
  1361. effectsg.Size = Vector3.new(0.5,mg,0.5)
  1362. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  1363. if returnn then return effectsg end
  1364. coroutine.resume(coroutine.create(function()
  1365. con1=effectsg.Touched:connect(function(hit) Damagefunc2(hit,5,1) end)
  1366. local c = game.Workspace:GetChildren();
  1367. for i = 1, #c do
  1368. local hum = c[i]:findFirstChild("Humanoid")
  1369. if hum ~= nil and hum.Health ~= 0 then
  1370. local head = c[i]:findFirstChild("Head");
  1371. if head ~= nil then
  1372. local targ = head.Position - effectsg.Position;
  1373. local mag = targ.magnitude;
  1374. if mag <= 6 then
  1375. Damagefunc1(head,5,1)
  1376. end
  1377. end
  1378. end
  1379. end
  1380. if not returnn then
  1381. for i = 0 , 1 , 0.2 do
  1382. wait()
  1383. local dir = effectsg.CFrame.lookVector+Vector3.new(0,0,0)
  1384. local hit2,pos = rayCast(effectsg.Position,effectsg.CFrame.lookVector,10,Character)
  1385. if hit2 ~= nil then
  1386. if hit2.Parent:FindFirstChild("Humanoid") ~= nil then
  1387. hum = hit2.Parent.Humanoid
  1388. Damagefunc1(hit2,5,5)
  1389. end
  1390. end
  1391. effectsmsh.Scale = Vector3.new(1-1*i,1,1-1*i)
  1392. end
  1393. wait()
  1394. effectsg.Parent = nil
  1395. end
  1396. end))
  1397. end
  1398.  
  1399. function effect2(Color,Ref,LP,P1,returnn)
  1400. local effectsmsh = Instance.new("BlockMesh")
  1401. effectsmsh.Scale = Vector3.new(1,1,1)
  1402. effectsmsh.Name = "Mesh"
  1403. local effectsg = Instance.new("Part")
  1404. effectsg.Material = "SmoothPlastic"
  1405. effectsg.formFactor = 3
  1406. effectsg.CanCollide = false
  1407. effectsg.Name = "Eff"
  1408. effectsg.Locked = true
  1409. effectsg.Anchored = true
  1410. effectsg.Transparency=0.4
  1411. effectsg.Size = Vector3.new(1,1,1)
  1412. effectsg.Parent = workspace
  1413. effectsmsh.Parent = effectsg
  1414. effectsg.BrickColor = BrickColor.new(Color)
  1415. effectsg.Reflectance = Ref
  1416. local point1 = P1
  1417. local mg = (LP.p - point1.p).magnitude
  1418. effectsg.Size = Vector3.new(5,mg,5)
  1419. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  1420. if returnn then return effectsg end
  1421. coroutine.resume(coroutine.create(function()
  1422. con1=effectsg.Touched:connect(function(hit) Damagefunc2(hit,5,1) end)
  1423. local c = game.Workspace:GetChildren();
  1424. for i = 1, #c do
  1425. local hum = c[i]:findFirstChild("Humanoid")
  1426. if hum ~= nil and hum.Health ~= 0 then
  1427. local head = c[i]:findFirstChild("Head");
  1428. if head ~= nil then
  1429. local targ = head.Position - effectsg.Position;
  1430. local mag = targ.magnitude;
  1431. if mag <= 6 then
  1432. Damagefunc1(head,5,1)
  1433. end
  1434. end
  1435. end
  1436. end
  1437. if not returnn then
  1438. for i = 0 , 1 , 0.2 do
  1439. wait()
  1440. effectsg.Transparency=effectsg.Transparency+0.1
  1441. end
  1442. wait()
  1443. effectsg.Parent = nil
  1444. end
  1445. end))
  1446. end
  1447.  
  1448. function SlashEffect(part,x1,y1,z1,x2,y2,z2,color,size,power,repeats)
  1449. p2=Instance.new("Part")
  1450. p2.Material = "SmoothPlastic"
  1451. p2.Name="Blast"
  1452. p2.TopSurface=0
  1453. p2.BottomSurface=0
  1454. p2.CanCollide=false
  1455. p2.Anchored=true
  1456. p2.BrickColor=color
  1457. p2.Size=Vector3.new(2,2,2)
  1458. p2.formFactor="Symmetric"
  1459. p2.CFrame=part.CFrame*CFrame.fromEulerAnglesXYZ(x2,y2,z2)*CFrame.new(x1,y1,z1)
  1460. p2.Parent=workspace
  1461. p2.Transparency=1
  1462. m=Instance.new("BlockMesh")
  1463. m.Parent=p2
  1464. m.Name="BlastMesh"
  1465. local LastPoint = p2.CFrame
  1466. coroutine.resume(coroutine.create(function(part,dir)
  1467. for loll=1, repeats do
  1468. part.BlastMesh.Scale=part.BlastMesh.Scale-Vector3.new(.09,.09,.09)
  1469. part.CFrame=part.CFrame*CFrame.new(0,2.5*size,0)*CFrame.fromEulerAnglesXYZ(0.6*power,0,0)
  1470. local Point = part.CFrame
  1471. effect("White",0.5,LastPoint,Point)
  1472. LastPoint = Point
  1473. wait(0)
  1474. end
  1475. part.Parent=nil
  1476. end),p2,0)
  1477. end
  1478. --SlashEffect(workspace.LocalPlayer.Torso,0,-6,-3,-1.57,math.random(-1,1)+math.random(),0,BrickColor.new("Bright yellow"),1.5,1.5)
  1479.  
  1480. function DashEf(P,color)
  1481. local m = Instance.new("Part")
  1482. m.Material = "SmoothPlastic"
  1483. m.Parent = workspace
  1484. m.BrickColor = color
  1485. m.Transparency = 0
  1486. m.Anchored = true
  1487. m.CFrame = P
  1488. m.CanCollide = false
  1489. local me = Instance.new("SpecialMesh")
  1490. me.Parent = m
  1491. me.MeshType = "FileMesh"
  1492. me.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1493. me.Scale = Vector3.new(2.5,2.5,2.5)
  1494. coroutine.resume(coroutine.create(function(part,mesh)
  1495. for i = 0,5 do
  1496. wait(0.1)
  1497. part.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(0, math.random(0,2), 0)
  1498. mesh.Scale = mesh.Scale + Vector3.new(0.5,0.4,0.5)
  1499. part.Transparency = part.Transparency + 0.20
  1500. end
  1501. m:Remove()
  1502. end),m,me)
  1503. end
  1504.  
  1505. function slasheffect(cframe,waitin,size,efdam)
  1506. wait(waitin)
  1507. for l=1, 2 do
  1508. wait()
  1509. e=Instance.new("Part")
  1510. e.Material = "SmoothPlastic"
  1511. e.Name="SlashEffect"
  1512. e.TopSurface=0
  1513. e.BottomSurface=0
  1514. e.formFactor="Symmetric"
  1515. e.Size=Vector3.new(2,2,size)
  1516. e.Anchored=true
  1517. e.BrickColor=BrickColor.new("White")
  1518. e.Reflectance=0
  1519.  
  1520. e.CanCollide=false
  1521. m=Instance.new("SpecialMesh")
  1522. m.MeshType="Sphere"
  1523. m.Scale=Vector3.new(.25,.25,1)
  1524. m.Parent=e
  1525. e.CFrame = cframe
  1526. e.Parent=workspace
  1527. local c = game.Workspace:GetChildren();
  1528. for i = 1, #c do
  1529. local hum = c[i]:findFirstChild("Humanoid")
  1530. if hum ~= nil and hum.Health ~= 0 then
  1531. local head = c[i]:findFirstChild("Head");
  1532. if head ~= nil then
  1533. local targ = head.Position - e.Position;
  1534. local mag = targ.magnitude;
  1535. if mag <= 5 and c[i].Name ~= Player.Name then
  1536. Damagefunc1(head,5,1)
  1537. end
  1538. end
  1539. end
  1540. end
  1541. coroutine.resume(coroutine.create(function(m) for i=1, 9 do m.Transparency=i*.1 m.Mesh.Scale=m.Mesh.Scale-Vector3.new(.01,.01,.05)*2 wait() end m.Parent=nil coneffect:disconnect() end),e)
  1542. end
  1543. end
  1544.  
  1545. DarkRiftF=function(par) --Saz
  1546. while barragehold == true and MP >= 0 do
  1547. MP = MP - math.random(0,10)
  1548. PWN={}
  1549. for _,v in pairs(workspace:children()) do
  1550. if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then
  1551. if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then
  1552. if v~=Character and (v.Torso.Position-par.Position).magnitude<=25 then
  1553. table.insert(PWN,v.Torso)
  1554. end
  1555. end
  1556. end
  1557. end
  1558. for _,t in pairs(PWN) do
  1559. Mag=(par.Position-t.Position).magnitude/2
  1560. t.Parent.Humanoid:TakeDamage(.6)
  1561. rl=Instance.new("BodyAngularVelocity")
  1562. rl.P=3000
  1563. rl.maxTorque=Vector3.new(500000,500000,500000)*5000
  1564. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))/10
  1565. rl.Parent=t
  1566. game:GetService("Debris"):AddItem(rl,.1)
  1567. if Mag<=2 then
  1568. if mana <= 600 then
  1569. MP = MP + math.random(0,10)
  1570. else
  1571. MP = 600
  1572. end
  1573. t.Parent.Humanoid:TakeDamage(.3)
  1574. else
  1575. if mana <= 600 then
  1576. MP = MP + 5
  1577. else
  1578. MP = 600
  1579. end
  1580. vl=Instance.new("BodyVelocity")
  1581. vl.P=3000
  1582. vl.maxForce=Vector3.new(50000000000,50000000000,50000000000)
  1583. vl.velocity=(t.Position-par.Position).unit*-(70/(Mag))
  1584. vl.Parent=t
  1585. game:GetService("Debris"):AddItem(vl,.1)
  1586. end
  1587. end
  1588. wait(.08)
  1589. end
  1590. end
  1591.  
  1592. function effect()
  1593. local clone = prt1:clone()
  1594. clone.Parent = workspace
  1595. clone.Anchored = true
  1596. clone.Transparency = 0.35
  1597. clone.Reflectance = 0
  1598. clone.Mesh.MeshType = "Brick"
  1599. clone.Mesh.Scale = clone.Mesh.Scale + Vector3.new(0,0,2)
  1600. clone.BrickColor = BrickColor.new("Black")
  1601. coroutine.resume(coroutine.create(function()
  1602. wait(0.25)
  1603. clone:Destroy()
  1604. end))
  1605. local clone2 = part1:clone()
  1606. clone2.Parent = workspace
  1607. clone2.Anchored = true
  1608. clone2.Transparency = 0.35
  1609. clone2.Reflectance = 0
  1610. clone2.Mesh.MeshType = "Brick"
  1611. clone2.Mesh.Scale = clone2.Mesh.Scale + Vector3.new(0,0,2)
  1612. clone2.BrickColor = BrickColor.new("White")
  1613. coroutine.resume(coroutine.create(function()
  1614. wait(0.25)
  1615. wait(0)
  1616. clone2:Destroy()
  1617. end))
  1618. end
  1619.  
  1620. Damagefunc1=function(hit,Damage,Knockback)
  1621. if attackdebounce == false then
  1622. attackdebounce = true
  1623. coroutine.resume(coroutine.create(function()
  1624. wait(0.1)
  1625. attackdebounce = false
  1626. end))
  1627. if hit.Parent==nil then
  1628. return
  1629. end
  1630. CPlayer=Bin
  1631. h=hit.Parent:FindFirstChild("Humanoid")
  1632. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1633. if MP < 1000 then
  1634. mana = mana + math.random(5,15)
  1635. end
  1636. if MP > 1000 then
  1637. MP = 1000
  1638. end
  1639. Damage=Damage
  1640. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1641. return
  1642. end]]
  1643. c=Instance.new("ObjectValue")
  1644. c.Name="creator"
  1645. c.Value=game.Players.LocalPlayer
  1646. c.Parent=h
  1647. game:GetService("Debris"):AddItem(c,.5)
  1648. -- print(c.Value)
  1649. if math.random(0,99)+math.random()<=7.8 then
  1650. CRIT=true
  1651. Damage=Damage*3
  1652. --[[ Knockback=Knockback*2
  1653. r=Instance.new("BodyAngularVelocity")
  1654. r.P=3000
  1655. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1656. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1657. r.Parent=hit.Parent.Torso]]
  1658. critsound(2)
  1659.  
  1660. end
  1661. Damage=Damage+math.random(0,10)
  1662. -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  1663. h:TakeDamage(Damage)
  1664. showDamage(hit.Parent,Damage,.5)
  1665. vp=Instance.new("BodyVelocity")
  1666. vp.P=500
  1667. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1668. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1669. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  1670. if Knockback>0 then
  1671. vp.Parent=hit.Parent.Torso
  1672. end
  1673. game:GetService("Debris"):AddItem(vp,.25)
  1674. --[[ r=Instance.new("BodyAngularVelocity")
  1675. r.P=3000
  1676. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1677. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1678. r.Parent=hit.Parent.Torso]]
  1679. game:GetService("Debris"):AddItem(r,.5)
  1680. c=Instance.new("ObjectValue")
  1681. c.Name="creator"
  1682. c.Value=Player
  1683. c.Parent=h
  1684. game:GetService("Debris"):AddItem(c,.5)
  1685. CRIT=false
  1686. hitDeb=true
  1687. AttackPos=6
  1688. end
  1689. end
  1690. end
  1691.  
  1692. Damagefunc2=function(hit,Damage,Knockback)
  1693. if attackdebounce == false then
  1694. attackdebounce = true
  1695. coroutine.resume(coroutine.create(function()
  1696. wait(0.1)
  1697. attackdebounce = false
  1698. end))
  1699. if hit.Parent==nil then
  1700. return
  1701. end
  1702. CPlayer=Bin
  1703. h=hit.Parent:FindFirstChild("Humanoid")
  1704. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1705. if MP < 1000 then
  1706. MP = MP + math.random(5,15)
  1707. end
  1708. if MP > 1000 then
  1709. MP = 1000
  1710. end
  1711. Damage=Damage
  1712. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1713. return
  1714. end]]
  1715. c=Instance.new("ObjectValue")
  1716. c.Name="creator"
  1717. c.Value=game.Players.LocalPlayer
  1718. c.Parent=h
  1719. game:GetService("Debris"):AddItem(c,.5)
  1720. -- print(c.Value)
  1721. if math.random(0,99)+math.random()<=7.8 then
  1722. CRIT=true
  1723. Damage=Damage*3
  1724. --[[ Knockback=Knockback*2
  1725. r=Instance.new("BodyAngularVelocity")
  1726. r.P=3000
  1727. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1728. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1729. r.Parent=hit.Parent.Torso]]
  1730. critsound(2)
  1731.  
  1732. end
  1733. Damage=Damage+math.random(0,10)
  1734. -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  1735. h:TakeDamage(Damage)
  1736. showDamage(hit.Parent,Damage,.5)
  1737. vl=Instance.new("BodyVelocity")
  1738. vl.P=4500
  1739. vl.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1740. -- vl.velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+Vector3.new(0,30,0)
  1741. vl.velocity=Head.CFrame.lookVector*Knockback+Head.Velocity/1.05
  1742. if Knockback>0 then
  1743. vl.Parent=hit.Parent.Torso
  1744. end
  1745. game:GetService("Debris"):AddItem(vl,.2)
  1746. rl=Instance.new("BodyAngularVelocity")
  1747. rl.P=3000
  1748. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1749. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1750. if Knockback>0 then
  1751. rl.Parent=hit.Parent.Torso
  1752. end
  1753. game:GetService("Debris"):AddItem(rl,.2)
  1754. c=Instance.new("ObjectValue")
  1755. c.Name="creator"
  1756. c.Value=Player
  1757. c.Parent=h
  1758. game:GetService("Debris"):AddItem(c,.5)
  1759. CRIT=false
  1760. hitDeb=true
  1761. AttackPos=6
  1762. end
  1763. end
  1764. end
  1765.  
  1766. BALLFUNC=function(hit,Damage,Knockback)
  1767. if hit.Parent==nil then
  1768. return
  1769. end
  1770. CPlayer=Bin
  1771. h=hit.Parent:FindFirstChild("Humanoid")
  1772. if h~=nil and hit.Parent.Name~=".." and hit.Parent:FindFirstChild("Torso")~=nil then
  1773. Damage=Damage
  1774. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1775. return
  1776. end]]
  1777. c=Instance.new("ObjectValue")
  1778. c.Name="creator"
  1779. c.Value=game.Players.LocalPlayer
  1780. c.Parent=h
  1781. game:GetService("Debris"):AddItem(c,.5)
  1782. -- print(c.Value)
  1783. if math.random(1,1)==1 then
  1784. CRIT=true
  1785. Damage=Damage*2
  1786. coroutine.resume(coroutine.create(function()
  1787. for i = 0,5 do
  1788. wait()
  1789. MOREMAGIX(hit.Parent.Torso,3,3,3,0,0,0,BrickColor.new("Mid grey"))
  1790. end
  1791. wait(1)
  1792. for i = 0,8 do
  1793. wait(0.1)
  1794. MOREMAGIX(hit.Parent.Torso,0,2,2,2,BrickColor.new("White"))
  1795. end
  1796. end))
  1797. Knockback=Knockback*2
  1798. r=Instance.new("BodyAngularVelocity")
  1799. r.P=3000
  1800. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1801. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1802. r.Parent=hit.Parent.Torso
  1803. s=Instance.new("Sound")
  1804. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  1805. s.Volume=1
  1806. s.Pitch=2
  1807. s.Parent=hit
  1808. s.PlayOnRemove=true
  1809. s.Parent=nil
  1810.  
  1811. end
  1812. Damage=Damage+math.random(0,10)
  1813. -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  1814. h:TakeDamage(Damage)
  1815. showDamage(hit.Parent,Damage,.5)
  1816. vp=Instance.new("BodyVelocity")
  1817. vp.P=500
  1818. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1819. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1820. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  1821. if Knockback>0 then
  1822. vp.Parent=hit.Parent.Torso
  1823. end
  1824. game:GetService("Debris"):AddItem(vp,.25)
  1825. --[[ r=Instance.new("BodyAngularVelocity")
  1826. r.P=3000
  1827. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1828. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1829. r.Parent=hit.Parent.Torso]]
  1830. game:GetService("Debris"):AddItem(r,.5)
  1831. c=Instance.new("ObjectValue")
  1832. c.Name="creator"
  1833. c.Value=Player
  1834. c.Parent=h
  1835. game:GetService("Debris"):AddItem(c,.5)
  1836. CRIT=false
  1837. hitDeb=true
  1838. AttackPos=6
  1839. end
  1840. end
  1841.  
  1842. Bash=function(hit,Damage) --credits to turdulator for making this function :D
  1843. if attackdebounce == false then
  1844. attackdebounce = true
  1845. coroutine.resume(coroutine.create(function()
  1846. wait(0.1)
  1847. attackdebounce = false
  1848. end))
  1849. if hit.Parent==nil then
  1850. return
  1851. end
  1852. h=hit.Parent:FindFirstChild("Humanoid")
  1853. t=hit.Parent:FindFirstChild("Torso")
  1854. if h~=nil and t~=nil then
  1855. if h.Parent==Character then
  1856. return
  1857. end
  1858. if MP < 600 then
  1859. MP = MP + math.random(5,15)
  1860. end
  1861. if MP > 600 then
  1862. MP = 600
  1863. end
  1864. shieldbash(1)
  1865. if math.random(0,99)+math.random()<=7.8 then
  1866. CRIT=true
  1867. Damage=Damage*3
  1868. --[[ Knockback=Knockback*2
  1869. r=Instance.new("BodyAngularVelocity")
  1870. r.P=3000
  1871. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1872. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1873. r.Parent=hit.Parent.Torso]]
  1874. critsound(2)
  1875.  
  1876. end
  1877. h:TakeDamage(Damage)
  1878. showDamage(hit.Parent,Damage,.5)
  1879. vl=Instance.new("BodyVelocity")
  1880. vl.P=4500
  1881. vl.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1882. -- vl.velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+Vector3.new(0,30,0)
  1883. vl.velocity=Head.CFrame.lookVector*35+Head.Velocity/1.05
  1884. vl.Parent=t
  1885. game:GetService("Debris"):AddItem(vl,.2)
  1886. rl=Instance.new("BodyAngularVelocity")
  1887. rl.P=3000
  1888. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1889. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1890. rl.Parent=t
  1891. game:GetService("Debris"):AddItem(rl,.2)
  1892. else
  1893. if hit.CanCollide==false then
  1894. return
  1895. end
  1896. MagicCom:disconnect()
  1897. -- DBExplode(DB)
  1898. end
  1899. end
  1900. end
  1901.  
  1902. UpBlast=function(hit,Damage) --credits to turdulator for making this function :D
  1903. if hit.Parent==nil then
  1904. return
  1905. end
  1906. h=hit.Parent:FindFirstChild("Humanoid")
  1907. t=hit.Parent:FindFirstChild("Torso")
  1908. if h~=nil and t~=nil then
  1909. if h.Parent==Character then
  1910. return
  1911. end
  1912. if MP < 600 then
  1913. MP = MP + math.random(10,20)
  1914. end
  1915. if MP > 600 then
  1916. MP = 600
  1917. end
  1918. if math.random(0,99)+math.random()<=7.8 then
  1919. CRIT=true
  1920. Damage=Damage*3
  1921. --[[ Knockback=Knockback*2
  1922. r=Instance.new("BodyAngularVelocity")
  1923. r.P=3000
  1924. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1925. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1926. r.Parent=hit.Parent.Torso]]
  1927. critsound(2)
  1928.  
  1929. end
  1930. h:TakeDamage(Damage)
  1931. showDamage(hit.Parent,Damage,.5)
  1932. vl=Instance.new("BodyVelocity")
  1933. vl.P=4500
  1934. vl.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1935. -- vl.velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+Vector3.new(0,3,0)
  1936. vl.velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+Vector3.new(0,45,0)
  1937. vl.Parent=t
  1938. game:GetService("Debris"):AddItem(vl,.2)
  1939. rl=Instance.new("BodyAngularVelocity")
  1940. rl.P=3000
  1941. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1942. -- rl.angularvelocity=Vector3.new(math.random(-40,40),math.random(-40,40),math.random(-40,40))
  1943. local tes = math.random(1,2)
  1944. if tes == 1 then
  1945. rl.angularvelocity=Vector3.new(0,0,math.random(-40,40))
  1946. elseif tes == 2 then
  1947. rl.angularvelocity=Vector3.new(math.random(-40,40),0,0)
  1948. end
  1949. rl.Parent=t
  1950. game:GetService("Debris"):AddItem(rl,.2)
  1951. else
  1952. if hit.CanCollide==false then
  1953. return
  1954. end
  1955. MagicCom:disconnect()
  1956. -- DBExplode(DB)
  1957. end
  1958. end
  1959.  
  1960. UltimaMagicMayhemDamage=function(hit,Damage) --credits to turdulator for making this function :D
  1961. if hit.Parent==nil then
  1962. return
  1963. end
  1964. h=hit.Parent:FindFirstChild("Humanoid")
  1965. t=hit.Parent:FindFirstChild("Torso")
  1966. if h~=nil and t~=nil then
  1967. if h.Parent==Character then
  1968. return
  1969. end
  1970. if math.random(0,99)+math.random()<=7.8 then
  1971. CRIT=true
  1972. Damage=Damage*10
  1973. --[[ Knockback=Knockback*2
  1974. r=Instance.new("BodyAngularVelocity")
  1975. r.P=3000
  1976. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1977. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1978. r.Parent=hit.Parent.Torso]]
  1979. critsound(2)
  1980.  
  1981. end
  1982. h:TakeDamage(Damage)
  1983. showDamage(hit.Parent,Damage,.5)
  1984. vl=Instance.new("BodyVelocity")
  1985. vl.P=4500
  1986. vl.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1987. -- vl.velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+Vector3.new(0,3,0)
  1988. vl.velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+Vector3.new(0,600,0)
  1989. vl.Parent=t
  1990. game:GetService("Debris"):AddItem(vl,.2)
  1991. rl=Instance.new("BodyAngularVelocity")
  1992. rl.P=3000
  1993. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1994. -- rl.angularvelocity=Vector3.new(math.random(-40,40),math.random(-40,40),math.random(-40,40))
  1995. local tes = math.random(1,2)
  1996. if tes == 1 then
  1997. rl.angularvelocity=Vector3.new(0,0,math.random(-40,40))
  1998. elseif tes == 2 then
  1999. rl.angularvelocity=Vector3.new(math.random(-40,40),0,0)
  2000. end
  2001. rl.Parent=t
  2002. game:GetService("Debris"):AddItem(rl,.2)
  2003. else
  2004. if hit.CanCollide==false then
  2005. return
  2006. end
  2007. MagicCom:disconnect()
  2008. -- DBExplode(DB)
  2009. end
  2010. end
  2011.  
  2012. DBHit=function(hit,DB) --credits to turdulator for making this function :D
  2013. if hit.Parent==nil then
  2014. return
  2015. end
  2016. h=hit.Parent:FindFirstChild("Humanoid")
  2017. t=hit.Parent:FindFirstChild("Torso")
  2018. if h~=nil and t~=nil then
  2019. if h.Parent==Character then
  2020. return
  2021. end
  2022. h:TakeDamage(5)
  2023. showDamage(hit.Parent,5,.5)
  2024. coroutine.resume(coroutine.create(function()
  2025. MMMAGIC(hit.Parent.Torso,3,3,3,0,0,0,part1.BrickColor)
  2026. wait(1)
  2027. wait(0.1)
  2028. MOREMAGIX(hit.Parent.Torso,0,2,2,2,prt1.BrickColor)
  2029. end))
  2030. vl=Instance.new("BodyVelocity")
  2031. vl.P=4500
  2032. vl.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2033. vl.velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+Vector3.new(0,3,0)
  2034. vl.Parent=t
  2035. game:GetService("Debris"):AddItem(vl,.2)
  2036. rl=Instance.new("BodyAngularVelocity")
  2037. rl.P=3000
  2038. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  2039. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2040. rl.Parent=t
  2041. game:GetService("Debris"):AddItem(rl,.2)
  2042. else
  2043. if hit.CanCollide==false then
  2044. return
  2045. end
  2046. MagicCom:disconnect()
  2047. -- DBExplode(DB)
  2048. end
  2049. end
  2050.  
  2051. showDamage=function(Char,Dealt,du)
  2052. m=Instance.new("Model")
  2053. m.Name=tostring(Dealt)
  2054. h=Instance.new("Humanoid")
  2055. h.Health=0
  2056. h.MaxHealth=0
  2057. h.Parent=m
  2058. c=Instance.new("Part")
  2059. c.Transparency=0
  2060. c.BrickColor=BrickColor.new("Grime")
  2061. if CRIT==true then
  2062. c.BrickColor=BrickColor.new("Grime")
  2063. end
  2064. c.Name="Head"
  2065. c.TopSurface=0
  2066. c.BottomSurface=0
  2067. c.formFactor="Plate"
  2068. c.Size=Vector3.new(1,.4,1)
  2069. ms=Instance.new("CylinderMesh")
  2070.  
  2071. ms.Scale=Vector3.new(.8,.8,.8)
  2072. if CRIT==true then
  2073. ms.Scale=Vector3.new(1.25,1.5,1.25)
  2074.  
  2075. end
  2076. ms.Parent=c
  2077. c.Reflectance=0
  2078. Instance.new("BodyGyro").Parent=c
  2079. c.Parent=m
  2080. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2081. f=Instance.new("BodyPosition")
  2082. f.P=2000
  2083. f.D=100
  2084. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2085. f.position=c.Position+Vector3.new(0,3,0)
  2086. f.Parent=c
  2087. game:GetService("Debris"):AddItem(m,.5+du)
  2088. c.CanCollide=false
  2089. m.Parent=workspace
  2090. c.CanCollide=false
  2091. end
  2092.  
  2093. function ob1d(mouse)
  2094. if attack == true then return end
  2095. hold = true
  2096. if combo == 0 then
  2097. oneslash()
  2098. coroutine.resume(coroutine.create(function()
  2099. wait(0.5)
  2100. if attack == false then
  2101. combo = 0
  2102. for i = 0,1,0.1 do
  2103. wait()
  2104. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,1*i-1) * CFrame.new(0,0,-0.5)
  2105. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-2+2,-0.5*i+1,-0.5*i)
  2106. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1*i-1,0,0)
  2107. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1*i+1,0,-1*i+1)
  2108. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2109. weld1.C0 = CFrame.fromEulerAnglesXYZ(math.pi/2,-math.pi-math.pi/6+math.pi/6,0) * CFrame.new(0, 1, 0)
  2110. end
  2111. wait(0.1)
  2112. gairo.Parent = nil
  2113. end
  2114. end))
  2115. elseif combo == 1 then
  2116. twoslash()
  2117. coroutine.resume(coroutine.create(function()
  2118. wait(0.2)
  2119. if attack == false then
  2120. combo = 0
  2121. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5)
  2122. equipanim()
  2123. wait(0.1)
  2124. gairo.Parent = nil
  2125. end
  2126. end))
  2127. elseif combo == 2 then
  2128. threeslash()
  2129. coroutine.resume(coroutine.create(function()
  2130. wait(0.2)
  2131. if attack == false then
  2132. combo = 0
  2133. for i = 0 , 1 , 0.1 do
  2134. wait(0)
  2135. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5)
  2136. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-2*i+2,0,-1*i+1)
  2137. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2138. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1*i-1,0,-1*i+1)
  2139. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2140. end
  2141. wait(0.1)
  2142. gairo.Parent = nil
  2143. end
  2144. end))
  2145. end
  2146. end
  2147.  
  2148. function ob1u(mouse)
  2149. hold = false
  2150. end
  2151.  
  2152. buttonhold = false
  2153.  
  2154. function key(key)
  2155. if attack == true then return end
  2156. if key == "q" then
  2157. changeequipleft()
  2158. end
  2159. if key == "e" then
  2160. changeequipright()
  2161. end
  2162. if key == "h" then
  2163. if MP >= 10 then
  2164. ChangeElement()
  2165. end
  2166. end
  2167. if key == "f" then
  2168. Gaurd = true
  2169. Block()
  2170. end
  2171. if key == "g" then
  2172. restoring = true
  2173. Restore()
  2174. end
  2175. if key == "z" then
  2176. holddash = true
  2177. Dash()
  2178. end
  2179. if element == "None" then
  2180. if key =="x" then
  2181. Epic()
  2182. end
  2183. end
  2184. end
  2185.  
  2186. function key2(key)
  2187. if key == "g"then
  2188. restoring = false
  2189. end
  2190. if key == "f" then
  2191. Guard = false
  2192. end
  2193. if key == "z" then
  2194. holddash = false
  2195. barragehold = false
  2196. end
  2197. end
  2198.  
  2199. function s(mouse)
  2200. mouse.Button1Down:connect(function() ob1d(mouse) end)
  2201. mouse.Button1Up:connect(function() ob1u(mouse) end)
  2202. mouse.KeyDown:connect(key)
  2203. mouse.KeyUp:connect(key2)
  2204. MMouse=mouse
  2205. unsheathed = true
  2206. player = Player
  2207. ch = Character
  2208. RSH = ch.Torso["Right Shoulder"]
  2209. LSH = ch.Torso["Left Shoulder"]
  2210. --
  2211. RW.Part0 = ch.Torso
  2212. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  2213. RW.C1 = CFrame.new(0, 0.5, 0)
  2214. RW.Part1 = ch["Right Arm"]
  2215. RW.Parent = ch.Torso
  2216. --_G.R = RW
  2217. --
  2218. LW.Part0 = ch.Torso
  2219. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  2220. LW.C1 = CFrame.new(0, 0.5, 0)
  2221. LW.Part1 = ch["Left Arm"]
  2222. LW.Parent = ch.Torso
  2223. --_G.L = LW
  2224. --
  2225. equipanim()
  2226. end
  2227.  
  2228. function ds(mouse)
  2229. unsheathed = false
  2230. hideanim()
  2231. wait(0)
  2232. RW.Parent = nil
  2233. LW.Parent = nil
  2234. RSH.Parent = player.Character.Torso
  2235. LSH.Parent = player.Character.Torso
  2236. end
  2237.  
  2238. Bin.Selected:connect(s)
  2239. Bin.Deselected:connect(ds)
  2240.  
  2241. function idleanim()
  2242. if attack == false then
  2243. --print("MOARDERP")
  2244. for i = 0,1,0.05 do
  2245. wait()
  2246. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(mat.pi/6+math.pi/36*i,-math.pi/2,0)
  2247. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2248. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(mat.pi/6+math.pi/36*i,math.pi/2,0)
  2249. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2250. end
  2251. wait(0.5)
  2252. for i = 0,1,0.05 do
  2253. wait()
  2254. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(mat.pi/6+math.pi/36+1.2*i,-math.pi/2+math.pi/18*i,0)
  2255. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2256. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(mat.pi/6+math.pi/36+1.2*i,math.pi/2-math.pi/18*i,0)
  2257. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2258. end
  2259. wait(0.1)
  2260. for i = 0,1,0.05 do
  2261. wait()
  2262. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(mat.pi/6+math.pi/36+1.2-2*i,-math.pi/2-math.pi/18+math.rad/6,0)
  2263. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2264. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(mat.pi/6-math.pi/36-0.8*i,math.pi/2+math.pi/18+math.rad/6,0)
  2265. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2266. end
  2267. wait(0.3)
  2268. for i = 0,1,0.05 do
  2269. wait()
  2270. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(mat.pi/6+math.pi/36+1.2-2*i,-math.pi/2-math.pi/4.5,0)
  2271. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2272. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(mat.pi/6-math.pi/36-0.8*i,math.pi/2+math.pi/4.5,0)
  2273. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2274. end
  2275. end
  2276. end
  2277.  
  2278. function onRunning(speed)
  2279. if attack == true then return end
  2280. if speed>0 then
  2281. walking = true
  2282. if attack == false then
  2283. for i = 0,1,0.1 do
  2284. wait()
  2285. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57-0.2*i,3.14,0) * CFrame.new(0,0,-0.5)
  2286. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-math.pi/4*i,-0.45*i,-math.pi/6*i)
  2287. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2288. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-math.pi/4*i,0.45*i,math.pi/6*i)
  2289. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2290. end
  2291. wait(0.1)
  2292. for i = 0,1,0.1 do
  2293. wait()
  2294. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57-0.3+0.3,3.14,0) * CFrame.new(0,0,-0.5)
  2295. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-math.pi/4*i+math.pi/18,-0.45*i+0.15,-math.pi/6*i)
  2296. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2297. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-math.pi/4*i+math.pi/18,0.45*i-0.15,math.pi/6*i)
  2298. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2299. end
  2300.  
  2301. end
  2302. else
  2303. walking = false
  2304. for i = 0,1,0.1 do
  2305. wait()
  2306. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5)
  2307. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2308. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2309. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2310. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2311. end
  2312. end
  2313. end
  2314. Character.Humanoid.Running:connect(onRunning)
  2315.  
  2316. while true do
  2317. wait(0)
  2318. magictext3.Size = UDim2.new(MP*0.007,0,0.200000006,0)
  2319. Frame.Size = magictext3.Size
  2320. magictext.Text = "MP("..MP..")"
  2321. text.Text = magictext.Text
  2322. if mode == "Normal" then
  2323. prt4.BrickColor = BrickColor.new("Dark stone grey")
  2324. prt5.BrickColor = BrickColor.new("Dark stone grey")
  2325. elseif mode == "Unarmed" then
  2326. prt4.BrickColor = BrickColor.new("Cyan")
  2327. prt5.BrickColor = BrickColor.new("Cyan")
  2328. end
  2329. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement