zEE1222

122

Aug 18th, 2016
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 111.05 KB | None | 0 0
  1. Player = game:GetService("Players").LocalPlayer
  2. Character = Player.Character
  3. PlayerGui = Player.PlayerGui
  4. Backpack = Player.Backpack
  5. Torso = Character.Torso
  6. Head = Character.Head
  7. LeftArm = Character["Left Arm"]
  8. LeftLeg = Character["Left Leg"]
  9. RightArm = Character["Right Arm"]
  10. RightLeg = Character["Right Leg"]
  11. LS = Torso["Left Shoulder"]
  12. LH = Torso["Left Hip"]
  13. RS = Torso["Right Shoulder"]
  14. RH = Torso["Right Hip"]
  15. attack = false
  16. attackdebounce = false
  17. combo = 0
  18. mana = 400
  19. necko=CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  20. necko2=CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  21. mode = "Sword"
  22. spread2 = 0
  23. range2 = 500
  24. rangepower = 10
  25. Item = {"Normal", "Explode", "Bomb", "Dark"}
  26. Number = 1
  27. shot = Item[Number]
  28. alt=0
  29. mana2="Normal"
  30. Stance="Normal"
  31. t = nil
  32. local T = Torso:Clone()
  33. local H = Instance.new("Humanoid")
  34. local M = Instance.new("Model")
  35. local S = Character:Clone()
  36. point = false
  37. local neckcf0 = Torso.Neck.C0
  38. bg = Instance.new("BodyGyro")
  39. MMouse = nil
  40. radv = 90
  41. offset = 0
  42. aiming = false
  43. lol = false
  44. DemMags=0
  45. skillcombo=0
  46. blackhole=false
  47. --player
  48. player = nil
  49. --other var
  50. player = Player
  51. ch = Character
  52. --save shoulders
  53. RSH, LSH , RHL, LHL = ch.Torso["Right Shoulder"], ch.Torso["Left Shoulder"] , ch.Torso["Right Hip"] , ch.Torso["Left Hip"]
  54. --welds
  55. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  56. --what anim
  57. anim = "none"
  58. EtheralMode=false
  59.  
  60. if Character:findFirstChild("God Arc",true) ~= nil then
  61. Character:findFirstChild("God Arc",true).Parent = nil
  62. end
  63. if Character:findFirstChild("Weapon",true) ~= nil then
  64. Character:findFirstChild("Weapon",true).Parent = nil
  65. end
  66. if Character:findFirstChild("ArmataeModel",true) ~= nil then
  67. Character:findFirstChild("ArmataeModel",true).Parent = nil
  68. end
  69. if Player.PlayerGui:findFirstChild("manaGUI",true) ~= nil then
  70. Player.PlayerGui:findFirstChild("manaGUI",true).Parent = nil
  71. end
  72.  
  73. --[[
  74. if Player.userId ~= then
  75. script.Parent = Character
  76. local h = Instance.new("Hint")
  77. h.Parent = workspace
  78. h.Text = "UR NOT FEN!"
  79. wait(1)
  80. h.Text = "U MUST DAI!!"
  81. wait(0.5)
  82. if Character:findFirstChild("ForceField") ~= nil then
  83. Character:findFirstChild("ForceField").Parent = nil
  84. end
  85. Character:BreakJoints()
  86. local m = Instance.new("Explosion")
  87. m.Parent = workspace
  88. m.Position = Torso.Position
  89. wait(3)
  90. h.Parent = nil
  91. script.Parent = nil
  92. wait(9001)
  93. while true do
  94. wait()
  95. end
  96. end
  97. ]]--
  98.  
  99. local modelzorz = Instance.new("Model")
  100. modelzorz.Name = "God Arc"
  101. modelzorz.Parent = Character
  102.  
  103. local prt1 = Instance.new("Part")
  104. prt1.formFactor = 1
  105. prt1.Parent = modelzorz
  106. prt1.CanCollide = false
  107. prt1.BrickColor = BrickColor.new("Black")
  108. prt1.Name = "Part1"
  109. prt1.Size = Vector3.new(1,3,1)
  110. prt1.Position = Torso.Position
  111. local prt2 = Instance.new("Part")
  112. prt2.formFactor = 1
  113. prt2.Parent = modelzorz
  114. prt2.CanCollide = false
  115. prt2.BrickColor = BrickColor.new("Medium stone grey")
  116. prt2.Name = "Part2"
  117. prt2.Size = Vector3.new(1,1,1)
  118. prt2.Position = Torso.Position
  119. local prt3 = Instance.new("Part")
  120. prt3.formFactor = 1
  121. prt3.Parent = modelzorz
  122. prt3.CanCollide = false
  123. prt3.BrickColor = BrickColor.new("Medium stone grey")
  124. prt3.Name = "Part3"
  125. prt3.Size = Vector3.new(1,1,1)
  126. prt3.Position = Torso.Position
  127. local prt4 = Instance.new("Part")
  128. prt4.formFactor = 1
  129. prt4.Parent = modelzorz
  130. prt4.CanCollide = false
  131. prt4.BrickColor = BrickColor.new("Medium stone grey")
  132. prt4.Name = "Part4"
  133. prt4.Size = Vector3.new(1,1,1)
  134. prt4.Position = Torso.Position
  135. local prt5 = Instance.new("Part")
  136. prt5.formFactor = 1
  137. prt5.Parent = modelzorz
  138. prt5.CanCollide = false
  139. prt5.BrickColor = BrickColor.new("Dark stone grey")
  140. prt5.Name = "Part5"
  141. prt5.Size = Vector3.new(1,1,1)
  142. prt5.Position = Torso.Position
  143. local prt6 = Instance.new("Part")
  144. prt6.formFactor = 1
  145. prt6.Parent = modelzorz
  146. prt6.CanCollide = false
  147. prt6.BrickColor = BrickColor.new("Black")
  148. prt6.Name = "Part6"
  149. prt6.Size = Vector3.new(1,1,1)
  150. prt6.Position = Torso.Position
  151. local prt7 = Instance.new("Part")
  152. prt7.formFactor = 1
  153. prt7.Parent = modelzorz
  154. prt7.CanCollide = false
  155. prt7.BrickColor = BrickColor.new("Black")
  156. prt7.Name = "Part7"
  157. prt7.Size = Vector3.new(1,2,1)
  158. prt7.Position = Torso.Position
  159. local prt8 = Instance.new("Part")
  160. prt8.formFactor = 1
  161. prt8.Parent = modelzorz
  162. prt8.CanCollide = false
  163. prt8.BrickColor = BrickColor.new("Dark stone grey")
  164. prt8.Name = "Part8"
  165. prt8.Size = Vector3.new(1,1,1)
  166. prt8.Position = Torso.Position
  167. local prt9 = Instance.new("Part")
  168. prt9.formFactor = 1
  169. prt9.Parent = modelzorz
  170. prt9.CanCollide = false
  171. prt9.BrickColor = BrickColor.new("White")
  172. prt9.Name = "Part9"
  173. prt9.Size = Vector3.new(1,1,1)
  174. prt9.Position = Torso.Position
  175. local prt10 = Instance.new("Part")
  176. prt10.formFactor = 1
  177. prt10.Parent = modelzorz
  178. prt10.CanCollide = false
  179. prt10.BrickColor = BrickColor.new("Medium stone grey")
  180. prt10.Name = "Part10"
  181. prt10.Size = Vector3.new(1,1,1)
  182. prt10.Position = Torso.Position
  183. local prt11 = Instance.new("Part")
  184. prt11.formFactor = 1
  185. prt11.Parent = modelzorz
  186. prt11.CanCollide = false
  187. prt11.BrickColor = BrickColor.new("Dark stone grey")
  188. prt11.Name = "Part11"
  189. prt11.Size = Vector3.new(1,1,1)
  190. prt11.Position = Torso.Position
  191. local prt12 = Instance.new("Part")
  192. prt12.formFactor = 1
  193. prt12.Parent = modelzorz
  194. prt12.CanCollide = false
  195. prt12.BrickColor = BrickColor.new("White")
  196. prt12.Reflectance = 0.2
  197. prt12.Name = "Part12"
  198. prt12.Size = Vector3.new(1,4,1)
  199. prt12.Position = Torso.Position
  200. local prt13 = Instance.new("Part")
  201. prt13.formFactor = 1
  202. prt13.Parent = modelzorz
  203. prt13.CanCollide = false
  204. prt13.BrickColor = BrickColor.new("Medium stone grey")
  205. prt13.Reflectance = 0.5
  206. prt13.Name = "Part13"
  207. prt13.Size = Vector3.new(1,4,1)
  208. prt13.Position = Torso.Position
  209. local prt14 = Instance.new("Part")
  210. prt14.formFactor = 1
  211. prt14.Parent = modelzorz
  212. prt14.CanCollide = false
  213. prt14.BrickColor = BrickColor.new("White")
  214. prt14.Reflectance = 0.3
  215. prt14.Name = "Part14"
  216. prt14.Size = Vector3.new(1,1,1)
  217. prt14.Position = Torso.Position
  218. local prt15 = Instance.new("Part")
  219. prt15.formFactor = 1
  220. prt15.Parent = modelzorz
  221. prt15.CanCollide = false
  222. prt15.BrickColor = BrickColor.new("Black")
  223. prt15.Reflectance = 0.3
  224. prt15.Name = "Part15"
  225. prt15.Size = Vector3.new(1,4,1)
  226. prt15.Position = Torso.Position
  227. local prt16 = Instance.new("Part")
  228. prt16.formFactor = 1
  229. prt16.Parent = modelzorz
  230. prt16.CanCollide = false
  231. prt16.BrickColor = BrickColor.new("White")
  232. prt16.Name = "Part16"
  233. prt16.Size = Vector3.new(1,1,1)
  234. prt16.Position = Torso.Position
  235. local prt17 = Instance.new("Part")
  236. prt17.formFactor = 1
  237. prt17.Parent = modelzorz
  238. prt17.CanCollide = false
  239. prt17.BrickColor = BrickColor.new("Medium stone grey")
  240. prt17.Name = "Part17"
  241. prt17.Size = Vector3.new(1,1,1)
  242. prt17.Position = Torso.Position
  243. local prt18 = Instance.new("Part")
  244. prt18.formFactor = 1
  245. prt18.Parent = modelzorz
  246. prt18.CanCollide = false
  247. prt18.BrickColor = BrickColor.new("Black")
  248. prt18.Name = "Part18"
  249. prt18.Size = Vector3.new(1,1,1)
  250. prt18.Position = Torso.Position
  251. local prt19 = Instance.new("Part")
  252. prt19.formFactor = 1
  253. prt19.Parent = modelzorz
  254. prt19.CanCollide = false
  255. prt19.BrickColor = BrickColor.new("Really black")
  256. prt19.Name = "Part19"
  257. prt19.Size = Vector3.new(1,1,1)
  258. prt19.Position = Torso.Position
  259. local prt20 = Instance.new("Part")
  260. prt20.formFactor = 1
  261. prt20.Parent = modelzorz
  262. prt20.CanCollide = false
  263. prt20.BrickColor = BrickColor.new("Medium stone grey")
  264. prt20.Name = "Part20"
  265. prt20.Size = Vector3.new(1,1,1)
  266. prt20.Position = Torso.Position
  267. local prt21 = Instance.new("Part")
  268. prt21.formFactor = 1
  269. prt21.Parent = modelzorz
  270. prt21.CanCollide = false
  271. prt21.BrickColor = BrickColor.new("Medium stone grey")
  272. prt21.Name = "Part21"
  273. prt21.Size = Vector3.new(1,1,1)
  274. prt21.Position = Torso.Position
  275. local prt22 = Instance.new("Part")
  276. prt22.formFactor = 1
  277. prt22.Parent = modelzorz
  278. prt22.CanCollide = false
  279. prt22.BrickColor = BrickColor.new("Medium stone grey")
  280. prt22.Name = "Part22"
  281. prt22.Size = Vector3.new(1,1,1)
  282. prt22.Position = Torso.Position
  283. local prt23 = Instance.new("Part")
  284. prt23.formFactor = 1
  285. prt23.Parent = modelzorz
  286. prt23.CanCollide = false
  287. prt23.BrickColor = BrickColor.new("Medium stone grey")
  288. prt23.Name = "Part23"
  289. prt23.Size = Vector3.new(1,1,1)
  290. prt23.Position = Torso.Position
  291. --[[local prt24 = Instance.new("Part")
  292. prt24.formFactor = 1
  293. prt24.Parent = modelzorz
  294. prt24.CanCollide = false
  295. prt24.BrickColor = BrickColor.new("Bright red")
  296. prt24.Name = "Part24"
  297. prt24.Size = Vector3.new(1,1,1)
  298. prt24.Position = Torso.Position ]]
  299. modelzorz:BreakJoints()
  300.  
  301. local msh1 = Instance.new("CylinderMesh")
  302. msh1.Parent = prt1
  303. msh1.Scale = Vector3.new(0.4,1,0.4)
  304. local msh2 = Instance.new("CylinderMesh")
  305. msh2.Parent = prt2
  306. msh2.Scale = Vector3.new(0.5,0.6,0.5)
  307. local msh3 = Instance.new("CylinderMesh")
  308. msh3.Parent = prt3
  309. msh3.Scale = Vector3.new(0.5,0.6,0.5)
  310. local msh4 = Instance.new("SpecialMesh")
  311. msh4.Parent = prt4
  312. msh4.Scale = Vector3.new(0.7,0.5,0.7)
  313. local msh5 = Instance.new("SpecialMesh")
  314. msh5.Parent = prt5
  315. msh5.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  316. msh5.Scale = Vector3.new(0.5,0.7,0.5)
  317. local msh6 = Instance.new("SpecialMesh")
  318. msh6.Parent = prt6
  319. msh6.MeshId = "http://www.roblox.com/asset/?id=1778999"
  320. msh6.Scale = Vector3.new(0.5,0.5,0.5)
  321. local msh7 = Instance.new("BlockMesh")
  322. msh7.Parent = prt7
  323. msh7.Scale = Vector3.new(1.2,1,0.7)
  324. local msh8 = Instance.new("SpecialMesh")
  325. msh8.Parent = prt8
  326. msh8.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  327. msh8.Scale = Vector3.new(0.5,0.7,0.5)
  328. local msh9 = Instance.new("SpecialMesh")
  329. msh9.Parent = prt9
  330. msh9.MeshType = "Sphere"
  331. msh9.Scale = Vector3.new(0.4,0.4,0.4)
  332. local msh10 = Instance.new("BlockMesh")
  333. msh10.Parent = prt10
  334. msh10.Scale = Vector3.new(1.5,1,0.8)
  335. local msh11 = Instance.new("CylinderMesh")
  336. msh11.Parent = prt11
  337. msh11.Scale = Vector3.new(1.5,0.9,1.5)
  338. local msh12 = Instance.new("BlockMesh")
  339. msh12.Parent = prt12
  340. msh12.Scale = Vector3.new(0.8,1,0.3)
  341. local msh13 = Instance.new("BlockMesh")
  342. msh13.Parent = prt13
  343. msh13.Scale = Vector3.new(1,1,0.1)
  344. local msh14 = Instance.new("SpecialMesh")
  345. msh14.Parent = prt14
  346. msh14.MeshType = "Wedge"
  347. msh14.Scale = Vector3.new(0.3,0.5,0.5)
  348. local msh15 = Instance.new("CylinderMesh")
  349. msh15.Parent = prt15
  350. msh15.Scale = Vector3.new(0.5,0.8,0.5)
  351. local msh16 = Instance.new("CylinderMesh")
  352. msh16.Parent = prt16
  353. msh16.Scale = Vector3.new(0.9,0.9,0.9)
  354. local msh17 = Instance.new("CylinderMesh")
  355. msh17.Parent = prt17
  356. msh17.Scale = Vector3.new(0.6,0.6,0.6)
  357. local msh18 = Instance.new("CylinderMesh")
  358. msh18.Parent = prt18
  359. msh18.Scale = Vector3.new(0.5,0.9,0.5)
  360. local msh19 = Instance.new("CylinderMesh")
  361. msh19.Parent = prt19
  362. msh19.Scale = Vector3.new(0.3,0.91,0.3)
  363. local msh20 = Instance.new("BlockMesh")
  364. msh20.Parent = prt20
  365. msh20.Scale = Vector3.new(0.1,0.7,0.1)
  366. local msh21 = Instance.new("BlockMesh")
  367. msh21.Parent = prt21
  368. msh21.Scale = Vector3.new(0.1,0.7,0.1)
  369. local msh22 = Instance.new("BlockMesh")
  370. msh22.Parent = prt22
  371. msh22.Scale = Vector3.new(0.1,0.7,0.1)
  372. local msh23 = Instance.new("BlockMesh")
  373. msh23.Parent = prt23
  374. msh23.Scale = Vector3.new(0.1,0.7,0.1)
  375. --[[local msh24 = Instance.new("BlockMesh")
  376. msh24.Parent = prt24
  377. msh24.Scale = Vector3.new(0.1,50,0.1) ]]
  378.  
  379. local wld1 = Instance.new("Weld")
  380. wld1.Parent = prt1
  381. wld1.Part0 = prt1
  382. wld1.Part1 = Torso
  383. wld1.C0 = CFrame.fromEulerAnglesXYZ(0,3.14,2.2) * CFrame.new(1.5,-1.7,-0.8)
  384. local wld2 = Instance.new("Weld")
  385. wld2.Parent = prt2
  386. wld2.Part0 = prt2
  387. wld2.Part1 = prt1
  388. wld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.5,0)
  389. local wld3 = Instance.new("Weld")
  390. wld3.Parent = prt3
  391. wld3.Part0 = prt3
  392. wld3.Part1 = prt1
  393. wld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.5,0)
  394. local wld4 = Instance.new("Weld")
  395. wld4.Parent = prt4
  396. wld4.Part0 = prt4
  397. wld4.Part1 = prt1
  398. wld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1.1,0)
  399. local wld5 = Instance.new("Weld")
  400. wld5.Parent = prt5
  401. wld5.Part0 = prt5
  402. wld5.Part1 = prt4
  403. wld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.3,0)
  404. local wld6 = Instance.new("Weld")
  405. wld6.Parent = prt6
  406. wld6.Part0 = prt6
  407. wld6.Part1 = prt1
  408. wld6.C0 = CFrame.fromEulerAnglesXYZ(3.14,0,0) * CFrame.new(0,-1,0)
  409. local wld7 = Instance.new("Weld")
  410. wld7.Parent = prt7
  411. wld7.Part0 = prt7
  412. wld7.Part1 = prt6
  413. wld7.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.2,1.5,0)
  414. local wld8 = Instance.new("Weld")
  415. wld8.Parent = prt8
  416. wld8.Part0 = prt8
  417. wld8.Part1 = prt7
  418. wld8.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.5,-0.7,0)
  419. local wld9 = Instance.new("Weld")
  420. wld9.Parent = prt9
  421. wld9.Part0 = prt9
  422. wld9.Part1 = prt8
  423. wld9.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.15,0,0)
  424. local wld10 = Instance.new("Weld")
  425. wld10.Parent = prt10
  426. wld10.Part0 = prt10
  427. wld10.Part1 = prt7
  428. wld10.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.3,0.5,0)
  429. local wld11 = Instance.new("Weld")
  430. wld11.Parent = prt11
  431. wld11.Part0 = prt11
  432. wld11.Part1 = prt10
  433. wld11.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  434. local wld12 = Instance.new("Weld")
  435. wld12.Parent = prt12
  436. wld12.Part0 = prt12
  437. wld12.Part1 = prt7
  438. wld12.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,3,0)
  439. local wld13 = Instance.new("Weld")
  440. wld13.Parent = prt13
  441. wld13.Part0 = prt13
  442. wld13.Part1 = prt7
  443. wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,3,0)
  444. local wld14 = Instance.new("Weld")
  445. wld14.Parent = prt14
  446. wld14.Part0 = prt14
  447. wld14.Part1 = prt12
  448. wld14.C0 = CFrame.fromEulerAnglesXYZ(-0.86,1.57,0) * CFrame.new(0,1.8,0)
  449. local wld15 = Instance.new("Weld")
  450. wld15.Parent = prt15
  451. wld15.Part0 = prt15
  452. wld15.Part1 = prt12
  453. wld15.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1,0)
  454. local wld16 = Instance.new("Weld")
  455. wld16.Parent = prt16
  456. wld16.Part0 = prt16
  457. wld16.Part1 = prt7
  458. wld16.C0 = CFrame.fromEulerAnglesXYZ(0,0,-0.3) * CFrame.new(-0.6,0,0)
  459. local wld17 = Instance.new("Weld")
  460. wld17.Parent = prt17
  461. wld17.Part0 = prt17
  462. wld17.Part1 = prt16
  463. wld17.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.6,0)
  464. local wld18 = Instance.new("Weld")
  465. wld18.Parent = prt18
  466. wld18.Part0 = prt18
  467. wld18.Part1 = prt17
  468. wld18.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.5,0)
  469. local wld19 = Instance.new("Weld")
  470. wld19.Parent = prt19
  471. wld19.Part0 = prt19
  472. wld19.Part1 = prt18
  473. wld19.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  474. local wld20 = Instance.new("Weld")
  475. wld20.Parent = prt20
  476. wld20.Part0 = prt20
  477. wld20.Part1 = prt16
  478. wld20.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.3,1,0)
  479. local wld21 = Instance.new("Weld")
  480. wld21.Parent = prt21
  481. wld21.Part0 = prt21
  482. wld21.Part1 = prt16
  483. wld21.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.3,1,0)
  484. local wld22 = Instance.new("Weld")
  485. wld22.Parent = prt22
  486. wld22.Part0 = prt22
  487. wld22.Part1 = prt16
  488. wld22.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1,-0.3)
  489. local wld23 = Instance.new("Weld")
  490. wld23.Parent = prt23
  491. wld23.Part0 = prt23
  492. wld23.Part1 = prt16
  493. wld23.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1,0.3)
  494. --[[local wld24 = Instance.new("Weld")
  495. wld24.Parent = prt24
  496. wld24.Part0 = prt24
  497. wld24.Part1 = prt16
  498. wld24.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,20,0) ]]
  499.  
  500. local SlashSound = Instance.new("Sound") -- PRELOADING SOUNDS TROLOLOL
  501. --SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  502. SlashSound.SoundId = "http://roblox.com/asset/?id=10209645"
  503. SlashSound.Parent = modelzorz
  504. SlashSound.Volume = .7
  505. SlashSound.Pitch = 1
  506. local SlashSound = Instance.new("Sound")
  507. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2248511"
  508. SlashSound.Parent = modelzorz
  509. SlashSound.Volume = .5
  510. SlashSound.Pitch = 1
  511. local SlashSound = Instance.new("Sound")
  512. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2801263"
  513. SlashSound.Parent = modelzorz
  514. SlashSound.Volume = .7
  515. SlashSound.Pitch = 1
  516. local SlashSound = Instance.new("Sound")
  517. SlashSound.SoundId = "http://www.roblox.com/asset/?id=3264793"
  518. SlashSound.Parent = modelzorz
  519. SlashSound.Volume = .7
  520. SlashSound.Pitch = 1
  521.  
  522. local fengui = Instance.new("GuiMain")
  523. fengui.Parent = Player.PlayerGui
  524. fengui.Name = "manaGUI"
  525. local fenframe = Instance.new("Frame")
  526. fenframe.Parent = fengui
  527. fenframe.BackgroundColor3 = Color3.new(255,255,255)
  528. fenframe.BackgroundTransparency = 1
  529. fenframe.BorderColor3 = Color3.new(17,17,17)
  530. fenframe.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
  531. local fentext = Instance.new("TextLabel")
  532. fentext.Parent = fenframe
  533. fentext.Text = "Energy("..mana..")"
  534. fentext.BackgroundTransparency = 1
  535. fentext.SizeConstraint = "RelativeXY"
  536. fentext.TextXAlignment = "Center"
  537. fentext.TextYAlignment = "Center"
  538. fentext.Position = UDim2.new(0,80,1,200)
  539. local fentext2 = Instance.new("TextLabel")
  540. fentext2.Parent = fenframe
  541. fentext2.Text = " "
  542. fentext2.BackgroundTransparency = 0
  543. fentext2.BackgroundColor3 = Color3.new(0,0,0)
  544. fentext2.SizeConstraint = "RelativeXY"
  545. fentext2.TextXAlignment = "Center"
  546. fentext2.TextYAlignment = "Center"
  547. fentext2.Position = UDim2.new(0,10,1,170)
  548. fentext2.Size = UDim2.new(2.79999995,0,0.210000306,0)
  549. local fentext3 = Instance.new("TextLabel")
  550. fentext3.Parent = fenframe
  551. fentext3.Text = " "
  552. fentext3.BackgroundTransparency = 0
  553. fentext3.BackgroundColor3 = Color3.new(1,1,0)
  554. fentext3.SizeConstraint = "RelativeXY"
  555. fentext3.TextXAlignment = "Center"
  556. fentext3.TextYAlignment = "Center"
  557. fentext3.Position = UDim2.new(0,10,1,170)
  558. fentext3.Size = UDim2.new(mana*0.007,0,0.400000006,0)
  559. local fentext4 = Instance.new("TextLabel")
  560. fentext4.Parent = fenframe
  561. fentext4.Text = "Shot Equipped: "..shot..""
  562. fentext4.BackgroundTransparency = 1
  563. fentext4.SizeConstraint = "RelativeXY"
  564. fentext4.TextXAlignment = "Center"
  565. fentext4.TextYAlignment = "Center"
  566. fentext4.Position = UDim2.new(0,80,1,150)
  567. local fentext5 = Instance.new("TextLabel")
  568. fentext5.Parent = fenframe
  569. fentext5.Text = "Alternate Shot: "..alt..""
  570. fentext5.BackgroundTransparency = 1
  571. fentext5.SizeConstraint = "RelativeXY"
  572. fentext5.TextXAlignment = "Center"
  573. fentext5.TextYAlignment = "Center"
  574. fentext5.Position = UDim2.new(0,80,1,140)
  575.  
  576. --[[local GUIMain = Instance.new("GuiMain")
  577. GUIMain.Parent = PlayerGui
  578. GUIMain.Name = "Shot"
  579. local MainTray = Instance.new("Frame")
  580. MainTray.Parent = GUIMain
  581. MainTray.Name = "Arc Tray"
  582. MainTray.BackgroundTransparency = 1
  583. MainTray.Position = UDim2.new(0, 0, 0.180000022, 0)
  584. MainTray.Size = UDim2.new(0.0450000018, 0, 0.340000004, 0)
  585. local ItemFrame = Instance.new("Frame")
  586. ItemFrame.Parent = MainTray
  587. ItemFrame.Name = "Item Ammo Frame"
  588. ItemFrame.Position = UDim2.new(0.420000017, 800, 0, 0)
  589. ItemFrame.Size = UDim2.new(0, 180, 0.300000012, 0)
  590. ItemFrame.BorderColor3 = Color3.new(0,0,0)
  591. local ItemText1 = Instance.new("TextBox")
  592. ItemText1.Parent = ItemFrame
  593. ItemText1.Name = "Item Equipped"
  594. ItemText1.FontSize = "Size10"
  595. ItemText1.Position = UDim2.new(0.499999988, 0, 0.300000012, 0)
  596. ItemText1.Text = "Shot Equipped:"
  597. local ItemText2 = Instance.new("TextBox")
  598. ItemText2.Parent = ItemFrame
  599. ItemText2.Name = "Dah Item"
  600. ItemText2.FontSize = "Size10"
  601. ItemText2.Position = UDim2.new(0.499999988, 0, 0.700000012, 0)
  602. ItemText2.Text = "Normal" ]]
  603.  
  604. --2.9000001, 0}, {0.450000018, 0}
  605. local gairo = Instance.new("BodyGyro")
  606. gairo.Parent = nil
  607. gairo.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  608. gairo.P = 20e+003
  609.  
  610. if (script.Parent.className ~= "HopperBin") then
  611. Tool = Instance.new("HopperBin")
  612. Tool.Parent = Backpack
  613. Tool.Name = "GodArc"
  614. script.Parent = Tool
  615. end
  616. Bin = script.Parent
  617.  
  618. function hideanim()
  619. if mode == "Gun" then
  620. bg.Parent = nil
  621. point = false
  622. for i = 0,1,0.1 do
  623. wait()
  624. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2-1,1.57) * CFrame.new(0,1,0)
  625. wld1.C1 = CFrame.fromEulerAnglesXYZ(0.7*i,-1*i,0) * CFrame.new(0,0,0)
  626. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  627. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-2.57+3*i,-0.9+0.9*i,0)
  628. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  629. RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(-0.5+1.5-1*i,0,-0.5+0.5*i)
  630. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  631. --wt.C0 = CFrame.Angles(0, math.rad(-50)+math.rad(50*i), 0)
  632. end
  633. wld1.Part1 = Torso
  634. wld1.C0 = CFrame.fromEulerAnglesXYZ(0,3.14,2.2) * CFrame.new(1.5,-1.7,-0.8)
  635. wld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  636. for i = 0,1,0.1 do
  637. wait()
  638. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  639. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.5-3+1-1+3-3*i,0,0)
  640. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  641. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  642. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  643. end
  644. elseif mode == "Sword" then
  645. for i = 0,1,0.1 do
  646. wait()
  647. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+1*i,1.57) * CFrame.new(0,1,0)
  648. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  649. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.5-3+1-1*i,0,0)
  650. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  651. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  652. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  653. end
  654. for i = 0,1,0.1 do
  655. wait()
  656. wld1.C1 = CFrame.fromEulerAnglesXYZ(0.7*i,-1*i,0) * CFrame.new(0,0,0)
  657. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  658. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.5-3+1-1+3*i,0,0)
  659. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  660. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  661. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  662. end
  663. wld1.Part1 = Torso
  664. wld1.C0 = CFrame.fromEulerAnglesXYZ(0,3.14,2.2) * CFrame.new(1.5,-1.7,-0.8)
  665. wld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  666. for i = 0,1,0.1 do
  667. wait()
  668. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  669. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.5-3+1-1+3-3*i,0,0)
  670. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  671. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  672. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  673. end
  674. end
  675. end
  676.  
  677. function equipanim()
  678. if mode == "Sword" then
  679. for i = 0,1,0.1 do
  680. wait()
  681. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  682. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.5*i,0,0)
  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,0,0)
  685. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  686. end
  687. wld1.Part1 = LeftArm
  688. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,1,0)
  689. wld1.C1 = CFrame.fromEulerAnglesXYZ(0.7,-1,0) * CFrame.new(0,0,0)
  690. for i = 0,1,0.1 do
  691. wait()
  692. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  693. wld1.C1 = CFrame.fromEulerAnglesXYZ(0.7-0.7*i,-1+1*i,0) * CFrame.new(0,0,0)
  694. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.5-3*i,0,0)
  695. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  696. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  697. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  698. end
  699. for i = 0,1,0.1 do
  700. wait()
  701. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  702. wld1.C1 = CFrame.fromEulerAnglesXYZ(0.7-0.7,-1+1,0) * CFrame.new(0,0,0)
  703. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.5-3-0.2*i,0,0)
  704. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  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(0,0,0)
  707. end
  708. for i = 0,1,0.1 do
  709. wait()
  710. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1*i,1.57) * CFrame.new(0,1,0)
  711. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  712. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.5-3-0.2+1.2*i,0,0)
  713. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  714. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  715. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  716. end
  717. elseif mode == "Gun" then
  718. for i = 0,1,0.1 do
  719. wait()
  720. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  721. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.5*i,0,0)
  722. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  723. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  724. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  725. end
  726. wld1.Part1 = LeftArm
  727. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,1,0)
  728. wld1.C1 = CFrame.fromEulerAnglesXYZ(0.7,-1,0) * CFrame.new(0,0,0)
  729. point = true
  730. coroutine.resume(coroutine.create(function()
  731. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  732. bg.P = bg.P + 10000
  733. bg.Parent = Head
  734. while point == true do
  735. wait()
  736. local pos4 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  737. bg.cframe = CFrame.new(Head.Position,pos4) * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) --CFrame.new(Torso.Position,MMouse.Hit.p) *
  738.  
  739. CFrame.fromEulerAnglesXYZ(0,math.rad(90),0)
  740. offset=((Head.Position.y-MMouse.Hit.p.y)/60 )+0.02
  741. mag=(Head.Position-MMouse.Hit.p).magnitude/80
  742. offset=offset/mag
  743. --Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(offset,0,0)
  744.  
  745. end
  746. wait(0.25)
  747. bg.Parent = nil
  748. end))
  749. for i = 0,1,0.1 do
  750. wait()
  751. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,math.rad(-51.5*i))
  752. wld1.C1 = CFrame.fromEulerAnglesXYZ(0.7-0.7*i,-1+1*i,0) * CFrame.new(0,0,0)
  753. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.5-3.5*i,-0.9*i,0)
  754. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  755. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1*i,0,-0.5*i)
  756. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  757. end
  758. end
  759. end
  760.  
  761. function StanceMode()
  762. attack=true
  763. Stance="NotFighting"
  764. for i=0,1,0.1 do
  765. wait()
  766. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+(1+3.14)*i,1.57) * CFrame.new(0,1,0)
  767. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1*i,0,-1*i)
  768. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  769. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  770. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  771. end
  772. for i=0,1,0.1 do
  773. wait()
  774. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14+0.5*i,1.57) * CFrame.new(0,1+0.3*i,0.5*i)
  775. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-0.5*i,0*i,-1)
  776. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  777. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0.5*i)
  778. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  779. end
  780. attack=false
  781. end
  782.  
  783. function EndStance()
  784. attack=true
  785. Stance="Normal"
  786. for i=0,1,0.1 do
  787. wait()
  788. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.54-4.60*i,1.57) * CFrame.new(0,1+0.3-0.3*i,0.5-0.5*i)
  789. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-0.5-0.5*i,0,-1+1*i)
  790. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  791. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  792. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  793. end
  794. attack=false
  795. end
  796.  
  797. function SpinAround()
  798. attack=true
  799. for i=0,1,0.1 do
  800. wait()
  801. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14+0.5-0.5*i,1.57) * CFrame.new(0,1+0.3-0.3*i,0.5+0.5*i)
  802. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-0.5-0.5*i,0,-1+1*i)
  803. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  804. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  805. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  806. end
  807. local b = Instance.new("BodyGyro")
  808. b.P=18000
  809. b.D=600
  810. b.maxTorque=Vector3.new(80000,80000000,80000)*50000000000000000000000000
  811. b.Parent = prt12
  812. b.cframe=prt12.CFrame
  813. bodypos=Instance.new("BodyPosition")
  814. bodypos.P=3000
  815. bodypos.D=100
  816. bodypos.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  817. bodypos.position=prt12.Position
  818. bodypos.Parent=prt12
  819. for i=0,1,0.15 do
  820. wait()
  821. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14+0.5-0.5,1.57) * CFrame.new(0,1,0.2*i)
  822. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1+0.57*i,-1.57*i,-1+1)
  823. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  824. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,1*i)
  825. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  826. end
  827. con1=LeftLeg.Touched:connect(function(hit) Damagefunc2(hit,20,20) end)
  828. con2=RightLeg.Touched:connect(function(hit) Damagefunc2(hit,20,20) end)
  829. con3=Torso.Touched:connect(function(hit) Damagefunc2(hit,20,20) end)
  830. lightning = true
  831. Stun3(LeftLeg,0,-10,0,BrickColor.new("White"))
  832. while keyZ==true do
  833. wait()
  834. ss(0.8)
  835. for i=0,1,0.05 do
  836. wait()
  837. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14+0.5-0.5,1.57-math.rad(360)*i) * CFrame.new(0,1,0.2)
  838. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1+0.57,-1.57,-1+1)
  839. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  840. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,1)
  841. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  842. end
  843. end
  844. lightning=false
  845. con1:disconnect()
  846. con2:disconnect()
  847. con3:disconnect()
  848. for i=0,1,0.1 do
  849. wait()
  850. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14+0.5-0.5+0.5*i,1.57) * CFrame.new(0,1,0.2)
  851. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1+0.57-1*i,-1.57+1.57*i,-1+1)
  852. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  853. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,1-1*i)
  854. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  855. end
  856. wait(2)
  857. b:Remove()
  858. bodypos:Remove()
  859. attack=false
  860. end
  861.  
  862. function JumpStab()
  863. attack=true
  864. for i=0,1,0.1 do
  865. wait()
  866. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14+0.5,1.57) * CFrame.new(0,1+0.3,0.5)
  867. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-0.5-1*i,0,-1)
  868. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  869. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0.5)
  870. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  871. end
  872. for i=0,1,0.1 do
  873. wait()
  874. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14+0.5,1.57) * CFrame.new(0,1+0.3,0.5)
  875. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-0.5-1-0.1*i,0,-1)
  876. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  877. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0.5)
  878. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  879. end
  880. local b = Instance.new("BodyGyro")
  881. b.P=18000
  882. b.D=600
  883. b.maxTorque=Vector3.new(80000,80000000,80000)*50000000000000000000000000
  884. b.Parent = Head
  885. b.cframe=Head.CFrame
  886. bodypos=Instance.new("BodyPosition")
  887. bodypos.P=500
  888. bodypos.D=100
  889. bodypos.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  890. bodypos.position=Head.Position
  891. bodypos.Parent=Head
  892. d=Instance.new("Part")
  893. d.Parent=workspace
  894. d.Anchored=true
  895. d.CFrame=Torso.CFrame*CFrame.new(0,50,-50)
  896. d.CanCollide=false
  897. bodypos.position=d.Position
  898. for i=0,1,0.1 do
  899. wait()
  900. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14+0.5-0.5*i,1.57) * CFrame.new(0,1+0.3-0.3*i,0.5)
  901. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-0.5-1.1+2*i,0,-1+1*i)
  902. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  903. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1*i,0,0.5)
  904. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  905. end
  906. for i=0,1,0.1 do
  907. wait()
  908. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14+0.5-0.5,1.57) * CFrame.new(0,1,0.5)
  909. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-0.5-1.1+2+0.1*i,0,-1+1)
  910. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  911. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1,0,0.5)
  912. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  913. end
  914. d.CFrame=Torso.CFrame*CFrame.new(0,-48,0)
  915. bodypos.position=d.Position
  916. for i=0,1,0.1 do
  917. wait()
  918. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14+0.5-0.5+0.3*i,1.57) * CFrame.new(0,1+0.3*i,0.5)
  919. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-0.5-1.1+2.1-1.1*i,0,-1+1)
  920. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  921. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1,0,0.5)
  922. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  923. end
  924. wait(1)
  925. d.Parent=nil
  926. bodypos.Parent=nil
  927. b.Parent=nil
  928. attack=false
  929. end
  930.  
  931. function EatMuffin() -- "Muffins" ~Derpy Hooves
  932. if mode == "Sword" then
  933. print("Muffins")
  934. for i = 0,1,0.1 do
  935. wait()
  936. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3*i,3.14,0.3*i) * CFrame.new(0,0,-0.5)
  937. RW.C0 = CFrame.new(1.5-0.5*i,0.5,0.5*i) * CFrame.fromEulerAnglesXYZ(-0.3*i,0,-0.5*i)
  938. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  939. end
  940. local Muffin = Instance.new("Part")
  941. Muffin.formFactor = 1
  942. Muffin.CanCollide = false
  943. Muffin.Name = "Muffin"
  944. Muffin.Locked = true
  945. Muffin.Size = Vector3.new(1,1,1)
  946. Muffin.Parent = modelzorz
  947. local Muffinmesh = Instance.new("SpecialMesh")
  948. Muffinmesh.Parent = Muffin
  949. Muffinmesh.MeshId = "http://www.roblox.com/asset/?id=23261119"
  950. Muffinmesh.TextureId = "http://www.roblox.com/asset/?id=23261110"
  951. Muffinmesh.Scale = Vector3.new(0.5,0.5,0.5)
  952. local Muffinweld = Instance.new("Weld")
  953. Muffinweld.Parent = Muffin
  954. Muffinweld.Part0 = Muffin
  955. Muffinweld.Part1 = RightArm
  956. Muffinweld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,math.rad(180)) * CFrame.new(0, 1, 0.5)
  957. for i = 0,1,0.1 do
  958. wait()
  959. RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(-0.3+0.3*i,0,-0.5+0.5*i)
  960. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  961. end
  962. for i = 0,1,0.1 do
  963. wait()
  964. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3-0.3*i,3.14,0.3-0.3*i) * CFrame.new(0,0,-0.5)
  965. RW.C0 = CFrame.new(1.5+0.1*i,0.5+0.2*i,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.9*i,0,-1.3*i)
  966. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-0.5*i,0)
  967. end
  968. omnomnom(0.7)
  969. for i = 0,1,0.1 do
  970. wait(0.1)
  971. Character.Humanoid.Health = Character.Humanoid.Health + 2
  972. if mana < 400 then
  973. mana = mana + 1
  974. end
  975. end
  976. Muffin.Parent = nil
  977. wait()
  978. for i = 0,1,0.1 do
  979. wait()
  980. RW.C0 = CFrame.new(1.5+0.1-0.1*i,0.5+0.2-0.2*i,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.9-1.9*i,0,-1.3+1.3*i)
  981. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-0.5+0.5*i,0)
  982. end
  983. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5)
  984. end
  985. end
  986.  
  987. function onehit()
  988. attack = true
  989. for i = 0,1,0.1 do
  990. wait()
  991. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1,1.57) * CFrame.new(0,1,0)
  992. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  993. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1*i,0,0)
  994. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  995. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  996. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  997. end
  998. ss(1)
  999. con1=prt12.Touched:connect(function(hit) Damagefunc1(hit,10,15) end)
  1000. con2=prt13.Touched:connect(function(hit) Damagefunc1(hit,20,5) end)
  1001. con3=prt7.Touched:connect(function(hit) Damagefunc1(hit,10,5) end)
  1002. for i = 0,1,0.2 do
  1003. wait()
  1004. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2*i,1.57) * CFrame.new(0,1,0)
  1005. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1006. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-2*i,0,0)
  1007. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1008. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1*i,0,0)
  1009. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1010. end
  1011. con1:disconnect()
  1012. con2:disconnect()
  1013. con3:disconnect()
  1014. coroutine.resume(coroutine.create(function()
  1015. for i = 0,1,0.1 do
  1016. wait()
  1017. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2,1.57) * CFrame.new(0,1,0)
  1018. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1019. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-2-0.2*i,0,0)
  1020. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1021. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1,0,0)
  1022. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1023. end
  1024. end))
  1025. attack = false
  1026. end
  1027.  
  1028. function twohit()
  1029. attack = true
  1030. for i = 0,1,0.1 do
  1031. wait()
  1032. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2-1*i,1.57) * CFrame.new(0,1,0)
  1033. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1034. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-2,0,-1*i)
  1035. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-3*i,0)
  1036. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(-1+2.57*i,0,-1*i)
  1037. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1038. end
  1039. ss(1.1)
  1040. con1=prt12.Touched:connect(function(hit) Damagefunc1(hit,10,15) end)
  1041. con2=prt13.Touched:connect(function(hit) Damagefunc1(hit,20,5) end)
  1042. con3=prt7.Touched:connect(function(hit) Damagefunc1(hit,10,5) end)
  1043. for i = 0,1,0.1 do
  1044. wait()
  1045. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2-1+2*i,1.57) * CFrame.new(0,1,0)
  1046. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1047. LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.57+1-2+1*i,0,-1+2*i)
  1048. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-3+1.57*i,0)
  1049. RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(-1+2.57,0,-1+2*i)
  1050. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1051. end
  1052. con1:disconnect()
  1053. con2:disconnect()
  1054. con3:disconnect()
  1055. coroutine.resume(coroutine.create(function()
  1056. for i = 0,1,0.2 do
  1057. wait()
  1058. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2-1+2,1.57) * CFrame.new(0,1,0)
  1059. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1060. LW.C0 = CFrame.new(-1.5+0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(1.57+1-2+1,0,-1+2+0.2*i)
  1061. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-3+1.57,0)
  1062. RW.C0 = CFrame.new(1.5-0.5+0.5,0.5,-0.5+0.5) * CFrame.fromEulerAnglesXYZ(-1+2.57,0,-1+2+0.2*i)
  1063. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1064. end
  1065. end))
  1066. attack = false
  1067. end
  1068.  
  1069. function threehit()
  1070. attack = true
  1071. for i = 0,1,0.1 do
  1072. wait()
  1073. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2-1+2-1*i,1.57) * CFrame.new(0,1,0)
  1074. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1075. LW.C0 = CFrame.new(-1.5+0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(1.57+1-2+1,0,-1+2)
  1076. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-3+1.57+3.14*i,0)
  1077. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1+2.57,0,-1+2)
  1078. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1079. end
  1080. ss(0.9)
  1081. con1=prt12.Touched:connect(function(hit) Damagefunc1(hit,10,15) end)
  1082. con2=prt13.Touched:connect(function(hit) Damagefunc1(hit,20,5) end)
  1083. con3=prt7.Touched:connect(function(hit) Damagefunc1(hit,10,5) end)
  1084. for i = 0,1,0.2 do
  1085. wait()
  1086. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2-1+2-1,1.57) * CFrame.new(0,1,0)
  1087. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1088. LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.57+1-2+1,0,-1+2-2.5*i)
  1089. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-3+1.57+3.14,0)
  1090. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(-1+2.57,0,-1+2-2*i)
  1091. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1092. end
  1093. con1:disconnect()
  1094. con2:disconnect()
  1095. con3:disconnect()
  1096. coroutine.resume(coroutine.create(function()
  1097. for i = 0,1,0.1 do
  1098. wait()
  1099. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2-1+2-1,1.57) * CFrame.new(0,1,0)
  1100. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1101. LW.C0 = CFrame.new(-1.5+0.5-0.5,0.5,-0.5+0.5) * CFrame.fromEulerAnglesXYZ(1.57+1-2+1,0,-1+2-2.5-0.2*i)
  1102. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-3+1.57+3.14,0)
  1103. RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(-1+2.57,0,-1+2-2-0.2*i)
  1104. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1105. end
  1106. end))
  1107. attack = false
  1108. end
  1109.  
  1110. function fourhit()
  1111. attack = true
  1112. for i = 0,1,0.1 do
  1113. wait()
  1114. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2-1+2-1-1*i,1.57) * CFrame.new(0,1,0)
  1115. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1116. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-2+1+1*i,0,-1+2-2.5+1.5*i)
  1117. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-3+1.57+3.14-1.57*i,0)
  1118. RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(-1+2.57+0.5*i,0,-1+2-2)
  1119. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1120. end
  1121. ss(1.2)
  1122. con1=prt12.Touched:connect(function(hit) Damagefunc1(hit,10,15) end)
  1123. con2=prt13.Touched:connect(function(hit) Damagefunc1(hit,20,5) end)
  1124. con3=prt7.Touched:connect(function(hit) Damagefunc1(hit,10,5) end)
  1125. for i = 0,1,0.2 do
  1126. wait()
  1127. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2-1+2-1-1+1*i,1.57) * CFrame.new(0,1,0)
  1128. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-2+1+1-2*i,0,-1+2-2.5+1.5)
  1129. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-3+1.57+3.14-1.57,0)
  1130. RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(-1+2.57+0.5-2.07*i,0,-1+2-2+1*i)
  1131. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1132. end
  1133. con1:disconnect()
  1134. con2:disconnect()
  1135. con3:disconnect()
  1136. attack = false
  1137. end
  1138.  
  1139. function HeavySlashOne()
  1140. attack = true
  1141. for i = 0,1,0.1 do
  1142. wait()
  1143. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2*i,1.57) * CFrame.new(0,1,0)
  1144. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-1*i,0,0)
  1145. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1146. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1147. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1148. end
  1149. ss(0.9)
  1150. local vel = Instance.new("BodyGyro")
  1151. vel.Parent = Torso
  1152. vel.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  1153. vel.P = 20e+003
  1154. CF = Torso.CFrame
  1155. con1=prt12.Touched:connect(function(hit) Damagefunc1(hit,10,15) end)
  1156. con2=prt13.Touched:connect(function(hit) Damagefunc1(hit,20,5) end)
  1157. con3=prt7.Touched:connect(function(hit) Damagefunc1(hit,10,5) end)
  1158. for i = 0,1,0.1 do
  1159. wait()
  1160. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2+0.5*i,1.57) * CFrame.new(0,1,0)
  1161. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,1*i)
  1162. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-1+1*i,0,-1*i)
  1163. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1164. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0)
  1165. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1166. vel.cframe = CF * CFrame.fromEulerAnglesXYZ(0,-1*i,0)
  1167. end
  1168. vel.Parent = nil
  1169. wait(0.2)
  1170. con1:disconnect()
  1171. con2:disconnect()
  1172. con3:disconnect()
  1173. coroutine.resume(coroutine.create(function()
  1174. for i = 0,1,0.1 do
  1175. wait()
  1176. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2+0.5-0.5*i,1.57) * CFrame.new(0,1,0)
  1177. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,1)
  1178. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-1+1-0.5*i,0,-1+0.5*i)
  1179. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1180. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  1181. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1182. vel.cframe = CF * CFrame.fromEulerAnglesXYZ(0,-1,0)
  1183. end
  1184. wait(0.2)
  1185. if attack == false then
  1186. combo = 0
  1187. end
  1188. end))
  1189. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1,1.57) * CFrame.new(0,1,0)
  1190. attack = false
  1191. end
  1192.  
  1193. function HeavySlashTwo()
  1194. attack = true
  1195. for i = 0,1,0.1 do
  1196. wait()
  1197. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2+0.5,1.57) * CFrame.new(0,1,0)
  1198. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,1)
  1199. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-1+1,0,-1+1*i)
  1200. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1201. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  1202. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1203. end
  1204. wait(0.3)
  1205. attack = false
  1206. end
  1207.  
  1208. function SpinSlash()
  1209. attack = true
  1210. for i = 0,1,0.1 do
  1211. wait()
  1212. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2*i,1.57) * CFrame.new(0,1,0)
  1213. LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.57,-1.57*i,0)
  1214. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-1*i,0,0)
  1215. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,1*i)
  1216. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1217. end
  1218. con1=prt12.Touched:connect(function(hit) Damagefunc1(hit,10,15) end)
  1219. con2=prt13.Touched:connect(function(hit) Damagefunc1(hit,20,5) end)
  1220. con3=prt7.Touched:connect(function(hit) Damagefunc1(hit,10,5) end)
  1221. ss(1.1)
  1222. local vel = Instance.new("BodyGyro")
  1223. vel.Parent = Torso
  1224. vel.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  1225. vel.P = 20e+003
  1226. CF = Torso.CFrame
  1227. for i = 0,1,0.1 do
  1228. wait()
  1229. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2,1.57) * CFrame.new(0,1,0)
  1230. LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.57,-1.57,0)
  1231. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-1+2*i,0,0)
  1232. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.57,0,1-2*i)
  1233. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1234. vel.cframe = CF * CFrame.fromEulerAnglesXYZ(0,math.rad(360)*i,0)
  1235. end
  1236. wait(0.1)
  1237. coroutine.resume(coroutine.create(function()
  1238. wait(0.5)
  1239. if attack == false then
  1240. combo = 0
  1241. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1,1.57) * CFrame.new(0,1,0)
  1242. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,0)
  1243. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1244. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1245. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1246. end
  1247. end))
  1248. con1:disconnect()
  1249. con2:disconnect()
  1250. con3:disconnect()
  1251. vel.Parent = nil
  1252. attack = false
  1253. end
  1254.  
  1255. function WaveStab()
  1256. attack = true
  1257. local vel = Instance.new("BodyGyro")
  1258. vel.Parent = Torso
  1259. vel.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  1260. vel.P = 20e+003
  1261. CF = Torso.CFrame
  1262. for i = 0,1,0.1 do
  1263. wait()
  1264. vel.cframe = CF * CFrame.fromEulerAnglesXYZ(0,1*i,0)
  1265. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,-1*i)
  1266. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+1*i,1.57+3.14*i) * CFrame.new(0,1,0)
  1267. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1*i,-2.5*i,0)
  1268. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1269. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.57*i,0,-1*i)
  1270. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1271. end
  1272. ss(1)
  1273. for i = 0,1,0.2 do
  1274. wait()
  1275. --vel.cframe = CF * CFrame.fromEulerAnglesXYZ(0,1*i,0)
  1276. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,-1)
  1277. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+1,1.57+3.14) * CFrame.new(0,1,0)
  1278. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-1*i,-2.5+0.3*i,0)
  1279. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1280. RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(1.57-0.5*i,0,-1+0.3*i)
  1281. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1282. end
  1283. EVENMOARMAGIX(Head,2,7,2,0,-4,-6,0,0,0,BrickColor.new("White"))
  1284. boomsound(3)
  1285. local testbrick = Instance.new("Part")
  1286. testbrick.Parent = modelzorz
  1287. testbrick.Anchored = true
  1288. testbrick.Transparency = 1
  1289. testbrick.CFrame = Head.CFrame * CFrame.new(0,0,-6)
  1290. coroutine.resume(coroutine.create(function()
  1291. local c = game.Workspace:GetChildren();
  1292. for i = 1, #c do
  1293. local hum = c[i]:findFirstChild("Humanoid")
  1294. if hum ~= nil and hum.Health ~= 0 then
  1295. local head = c[i]:findFirstChild("Head");
  1296. if head ~= nil then
  1297. local targ = head.Position - testbrick.Position;
  1298. local mag = targ.magnitude;
  1299. if mag <= 4 and c[i].Name ~= Player.Name then
  1300. DBHit(head,testbrick,math.random(5,10))
  1301. end
  1302. end
  1303. end
  1304. end
  1305. end))
  1306. testbrick.Parent = nil
  1307. wait(0.1)
  1308. EVENMOARMAGIX(Head,2,7,2,4,-4,-8,0,0,0,BrickColor.new("White"))
  1309. boomsound(3)
  1310. local testbrick = Instance.new("Part")
  1311. testbrick.Parent = modelzorz
  1312. testbrick.Anchored = true
  1313. testbrick.Transparency = 1
  1314. testbrick.CFrame = Head.CFrame * CFrame.new(4,0,-8)
  1315. coroutine.resume(coroutine.create(function()
  1316. local c = game.Workspace:GetChildren();
  1317. for i = 1, #c do
  1318. local hum = c[i]:findFirstChild("Humanoid")
  1319. if hum ~= nil and hum.Health ~= 0 then
  1320. local head = c[i]:findFirstChild("Head");
  1321. if head ~= nil then
  1322. local targ = head.Position - testbrick.Position;
  1323. local mag = targ.magnitude;
  1324. if mag <= 4 and c[i].Name ~= Player.Name then
  1325. DBHit(head,testbrick,math.random(5,10))
  1326. end
  1327. end
  1328. end
  1329. end
  1330. end))
  1331. testbrick.Parent = nil
  1332. EVENMOARMAGIX(Head,2,7,2,-4,-4,-8,0,0,0,BrickColor.new("White"))
  1333. boomsound(3)
  1334. local testbrick = Instance.new("Part")
  1335. testbrick.Parent = modelzorz
  1336. testbrick.Anchored = true
  1337. testbrick.Transparency = 1
  1338. testbrick.CFrame = Head.CFrame * CFrame.new(-4,0,-8)
  1339. coroutine.resume(coroutine.create(function()
  1340. local c = game.Workspace:GetChildren();
  1341. for i = 1, #c do
  1342. local hum = c[i]:findFirstChild("Humanoid")
  1343. if hum ~= nil and hum.Health ~= 0 then
  1344. local head = c[i]:findFirstChild("Head");
  1345. if head ~= nil then
  1346. local targ = head.Position - testbrick.Position;
  1347. local mag = targ.magnitude;
  1348. if mag <= 4 and c[i].Name ~= Player.Name then
  1349. DBHit(head,testbrick,math.random(5,10))
  1350. end
  1351. end
  1352. end
  1353. end
  1354. end))
  1355. testbrick.Parent = nil
  1356. wait(0.2)
  1357. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1,1.57) * CFrame.new(0,1,0)
  1358. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1359. vel.Parent = nil
  1360. attack = false
  1361. end
  1362.  
  1363. function DarkSlash()
  1364. if mana >= 80 then
  1365. attack = true
  1366. for i = 0,1,0.1 do
  1367. wait()
  1368. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1369. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+1*i,1.57) * CFrame.new(0,1,0)
  1370. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,-1.57*i,0)
  1371. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1372. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,-1.57*i,0)
  1373. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1374. end
  1375. lightning = true
  1376. coroutine.resume(coroutine.create(function()
  1377. coroutine.resume(coroutine.create(function()
  1378. while lightning == true do
  1379. wait()
  1380. mana = mana - 2
  1381. end
  1382. end))
  1383. Stun2(prt12,20,40,20,BrickColor.new("Black"))
  1384. end))
  1385. wait(0.2)
  1386. for i = 0,1,0.1 do
  1387. wait()
  1388. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1389. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+1,1.57) * CFrame.new(0,1,0)
  1390. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,-1.57-0.5*i,0)
  1391. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1392. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,-1.57,0)
  1393. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1394. end
  1395. ss(0.8)
  1396. con1=prt12.Touched:connect(function(hit) Damagefunc1(hit,30,30) end)
  1397. con2=prt13.Touched:connect(function(hit) Damagefunc1(hit,60,15) end)
  1398. con3=prt7.Touched:connect(function(hit) Damagefunc1(hit,30,15) end)
  1399. local vel = Instance.new("BodyGyro")
  1400. vel.Parent = Torso
  1401. vel.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  1402. vel.P = 20e+003
  1403. CF = Torso.CFrame
  1404. for i = 0,1,0.05 do
  1405. wait()
  1406. vel.cframe = CF * CFrame.fromEulerAnglesXYZ(0,math.rad(360)*i,0)
  1407. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1408. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+1+3.14*i,1.57) * CFrame.new(0,1,0)
  1409. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,-1.57-0.5,0)
  1410. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2*i,0,0)
  1411. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.57,-1.57,0)
  1412. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1*i,0,0)
  1413. end
  1414. vel.Parent = nil
  1415. wait(0.2)
  1416. con1:disconnect()
  1417. con2:disconnect()
  1418. con3:disconnect()
  1419. wait(0.3)
  1420. lightning = false
  1421. attack = false
  1422. skillcombo=1
  1423. coroutine.resume(coroutine.create(function()
  1424. wait(0.5)
  1425. skillcombo=0
  1426. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1,1.57) * CFrame.new(0,1,0)
  1427. end))
  1428. end
  1429. end
  1430.  
  1431. function LightSlash()
  1432. if mana >= 50 then
  1433. attack = true
  1434. lightning = true
  1435. coroutine.resume(coroutine.create(function()
  1436. coroutine.resume(coroutine.create(function()
  1437. while lightning == true do
  1438. wait()
  1439. mana = mana - 1
  1440. end
  1441. end))
  1442. Stun2(prt12,20,40,20,BrickColor.new("White"))
  1443. end))
  1444. for i = 0,1,0.1 do
  1445. wait()
  1446. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+1+3.14,1.57) * CFrame.new(0,1,0)
  1447. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,-1.57-0.5,0)
  1448. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2+0.2*i,0,0)
  1449. RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(1.57,-1.57,0)
  1450. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1,0,0)
  1451. end
  1452. ss(0.8)
  1453. con1=prt12.Touched:connect(function(hit) Damagefunc1(hit,30,30) end)
  1454. con2=prt13.Touched:connect(function(hit) Damagefunc1(hit,60,15) end)
  1455. con3=prt7.Touched:connect(function(hit) Damagefunc1(hit,30,15) end)
  1456. for i = 0,1,0.05 do
  1457. wait()
  1458. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+1+3.14-3*i,1.57) * CFrame.new(0,1,0)
  1459. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,-1.57-0.5,0)
  1460. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.2-3.2*i,0,0)
  1461. RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(1.57,-1.57,0)
  1462. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1,0,0)
  1463. end
  1464. con1:disconnect()
  1465. con2:disconnect()
  1466. con3:disconnect()
  1467. wait(1)
  1468. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1,1.57) * CFrame.new(0,1,0)
  1469. lightning = false
  1470. attack = false
  1471. end
  1472. end
  1473.  
  1474. function Shoot(mouse)
  1475. spread2 = 0
  1476. range2 = 500
  1477. rangepower = 10
  1478. if shot=="Dark" then
  1479. if blackhole==true then
  1480. return
  1481. end
  1482. end
  1483. attack = true
  1484. if mana >= 10 then
  1485. lasersound(2)
  1486. coroutine.resume(coroutine.create(function()
  1487. if alt==0 then
  1488. if shot == "Normal" then
  1489. mana = mana - 10
  1490. elseif shot == "Explode" then
  1491. mana = mana - 40
  1492. elseif shot == "Bomb" then
  1493. mana = mana - 30
  1494. elseif shot == "Dark" then
  1495. mana = mana - 100
  1496. end
  1497. shoottrail2(mouse)
  1498. elseif alt==1 then
  1499. if shot == "Normal" then
  1500. mana = mana - 50
  1501. elseif shot == "Explode" then
  1502. mana = mana - 40
  1503. elseif shot == "Bomb" then
  1504. mana = mana - 30
  1505. elseif shot == "Dark" then
  1506. mana = mana - 100
  1507. end
  1508. if shot=="Normal" then
  1509. for i = 1,5 do
  1510. coroutine.resume(coroutine.create(function()
  1511. shoottrail2(mouse)
  1512. end))
  1513. end
  1514. else
  1515. shoottrail2(mouse)
  1516. end
  1517. end
  1518. end))
  1519. end
  1520. if aiming == true then
  1521. for i = 0,1,0.2 do
  1522. wait()
  1523. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2-1,1.57) * CFrame.new(0,1,0)
  1524. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,math.rad(-51.5))
  1525. Torso.Neck.C1=necko2*CFrame.fromEulerAnglesXYZ(-offset,0,0)
  1526. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-2.57+0.3*i,-0.9,0.2*i)
  1527. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(offset,0,0)
  1528. RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(-0.5+1.5+0.3*i,0,-0.5)
  1529. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(offset,0,0)
  1530. end
  1531. for i = 0,1,0.2 do
  1532. wait()
  1533. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2-1,1.57) * CFrame.new(0,1,0)
  1534. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,math.rad(-51.5))
  1535. Torso.Neck.C1=necko2*CFrame.fromEulerAnglesXYZ(-offset,0,0)
  1536. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-2.57+0.3-0.3*i,-0.9,0.2-0.2*i)
  1537. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(offset,0,0)
  1538. RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(-0.5+1.5+0.3-0.3*i,0,-0.5)
  1539. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(offset,0,0)
  1540. end
  1541. else
  1542. for i = 0,1,0.2 do
  1543. wait()
  1544. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2-1,1.57) * CFrame.new(0,1,0)
  1545. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,math.rad(-51.5))
  1546. Torso.Neck.C1=necko2*CFrame.fromEulerAnglesXYZ(0,0,0)
  1547. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-2.57+0.3*i,-0.9,0.2*i)
  1548. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1549. RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(-0.5+1.5+0.3*i,0,-0.5)
  1550. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1551. end
  1552. for i = 0,1,0.2 do
  1553. wait()
  1554. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2-1,1.57) * CFrame.new(0,1,0)
  1555. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,math.rad(-51.5))
  1556. Torso.Neck.C1=necko2*CFrame.fromEulerAnglesXYZ(0,0,0)
  1557. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-2.57+0.3-0.3*i,-0.9,0.2-0.2*i)
  1558. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1559. RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(-0.5+1.5+0.3-0.3*i,0,-0.5)
  1560. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1561. end
  1562. end
  1563. attack = false
  1564. end
  1565.  
  1566. function Aim(mouse)
  1567. if mode == "Gun" and point == true and aiming == false then
  1568. aiming = true
  1569. while aiming == true and point == true do
  1570. wait()
  1571. offset=(Torso.Position.y-mouse.Hit.p.y)/60
  1572. mag=(Torso.Position-mouse.Hit.p).magnitude/80
  1573. offset=offset/mag
  1574. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,math.rad(-51.5))
  1575. Torso.Neck.C1=necko2*CFrame.fromEulerAnglesXYZ(-offset,0,0)
  1576. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-2.57,-0.9,0)
  1577. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(offset,0,0)
  1578. RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(-0.5+1.5,0,-0.5)
  1579. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(offset,0,0)
  1580. end
  1581. else
  1582. aiming = false
  1583. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,math.rad(-51.5))
  1584. Torso.Neck.C1=necko2*CFrame.fromEulerAnglesXYZ(0,0,0)
  1585. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-2.57,-0.9,0)
  1586. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1587. RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(-0.5+1.5,0,-0.5)
  1588. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1589. while aiming == false do
  1590. wait()
  1591. offset = 0
  1592. end
  1593. end
  1594. end
  1595.  
  1596. function Switch(mouse)
  1597. attack = true
  1598. if mode == "Sword" then
  1599. point = true
  1600. equipsound(0.5)
  1601. mode = "Gun"
  1602. for i = 0,1,0.1 do
  1603. wait()
  1604.  
  1605. msh12.Scale = Vector3.new(0.8-0.5*i,1-0.5*i,0.3-0.1*i)
  1606. msh13.Scale = Vector3.new(1-0.5*i,1-0.5*i,0.1-0.05*i)
  1607. msh14.Scale = Vector3.new(0.3-0.1*i,0.5-0.3*i,0.5-0.3*i)
  1608. msh15.Scale = Vector3.new(0.5-0.25*i,0.8-0.5*i,0.5-0.25*i)
  1609. wld12.C0 = CFrame.fromEulerAnglesXYZ(0,0,-3.14*i) * CFrame.new(-0.8*i,3-3*i,0)
  1610. wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,-3.14*i) * CFrame.new(-0.8*i,3-3*i,0)
  1611. wld14.C0 = CFrame.fromEulerAnglesXYZ(-0.86,1.57,0) * CFrame.new(0,1.8-0.9*i,0)
  1612. wld15.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1+0.6*i,0)
  1613.  
  1614. msh16.Scale = Vector3.new(0.9+0.7*i,0.9+0.4*i,0.9+0.7*i)
  1615. msh17.Scale = Vector3.new(0.6+0.5*i,0.6+0.5*i,0.6+0.5*i)
  1616. msh18.Scale = Vector3.new(0.5+0.5*i,0.9+0.5*i,0.5+0.5*i)
  1617. msh19.Scale = Vector3.new(0.3+0.5*i,0.91+0.5*i,0.3+0.5*i)
  1618. msh20.Scale = Vector3.new(0.1+0.2*i,0.7+0.5*i,0.1+0.2*i)
  1619. msh21.Scale = Vector3.new(0.1+0.2*i,0.7+0.5*i,0.1+0.2*i)
  1620. msh22.Scale = Vector3.new(0.1+0.2*i,0.7+0.5*i,0.1+0.2*i)
  1621. msh23.Scale = Vector3.new(0.1+0.2*i,0.7+0.5*i,0.1+0.2*i)
  1622. wld16.C0 = CFrame.fromEulerAnglesXYZ(0,0,-0.3+0.3*i) * CFrame.new(-0.6+0.6*i,1.9*i,0)
  1623. wld17.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.6+0.3*i,0)
  1624. wld18.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.5+0.6*i,0)
  1625. wld19.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  1626. wld20.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.3-0.3*i,1+0.8*i,0)
  1627. wld21.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.3+0.3*i,1+0.8*i,0)
  1628. wld22.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1+0.8*i,-0.3-0.3*i)
  1629. wld23.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1+0.8*i,0.3+0.3*i)
  1630.  
  1631. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2*i,1.57) * CFrame.new(0,1,0)
  1632. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1633. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1*i,0,0)
  1634. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1635. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0)
  1636. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1637. end
  1638. for i = 0,1,0.1 do
  1639. wait()
  1640. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2-1*i,1.57) * CFrame.new(0,1,0)
  1641. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,math.rad(-60*i))
  1642. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-2.57*i,-0.9*i,0)
  1643. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1644. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(-0.5+1.5*i,0,-0.5*i)
  1645. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1646. --wt.C0 = CFrame.Angles(0, math.rad(-51.5*i), 0)
  1647. end
  1648. coroutine.resume(coroutine.create(function()
  1649. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  1650. bg.P = bg.P + 10000
  1651. bg.Parent = Torso
  1652. while point == true do
  1653. wait()
  1654. local pos4 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  1655. bg.cframe = CFrame.new(Torso.Position,pos4) * CFrame.fromEulerAnglesXYZ(0,1,0) * CFrame.new(0,0,0) --CFrame.new(Torso.Position,MMouse.Hit.p) *
  1656.  
  1657. CFrame.fromEulerAnglesXYZ(0,math.rad(90),0)
  1658. offset=((Head.Position.y-MMouse.Hit.p.y)/60 )+0.02
  1659. mag=(Head.Position-MMouse.Hit.p).magnitude/80
  1660. offset=offset/mag
  1661. if aiming == true then
  1662. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(-offset,0,math.rad(-51.5))
  1663. else
  1664. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,math.rad(-51.5))
  1665. end
  1666. end
  1667. wait(0.25)
  1668. bg.Parent = nil
  1669. end))
  1670. elseif mode == "Gun" then
  1671. point = false
  1672. equipsound(0.8)
  1673. mode = "Sword"
  1674. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1675. RW.Part0 = Torso
  1676. LW.Part0 = Torso
  1677. Torso.Transparency = 0
  1678. RHL.Part0 = Torso
  1679. LHL.Part0 = Torso
  1680. T.Parent = nil
  1681. for i = 0,1,0.1 do
  1682. wait()
  1683.  
  1684. msh12.Scale = Vector3.new(0.8-0.5+0.5*i,1-0.5+0.5*i,0.3-0.1+0.1*i)
  1685. msh13.Scale = Vector3.new(1-0.5+0.5*i,1-0.5+0.5*i,0.1-0.05+0.05*i)
  1686. msh14.Scale = Vector3.new(0.3-0.1+0.1*i,0.5-0.3+0.3*i,0.5-0.3+0.3*i)
  1687. msh15.Scale = Vector3.new(0.5-0.25+0.25*i,0.8-0.5+0.5*i,0.5-0.25+0.25*i)
  1688. wld12.C0 = CFrame.fromEulerAnglesXYZ(0,0,-3.14+3.14*i) * CFrame.new(-0.8+0.8*i,3-3+3*i,0)
  1689. wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,-3.14+3.14*i) * CFrame.new(-0.8+0.8*i,3-3+3*i,0)
  1690. wld14.C0 = CFrame.fromEulerAnglesXYZ(-0.86,1.57,0) * CFrame.new(0,1.8-0.9+0.9*i,0)
  1691. wld15.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1+0.6-0.6*i,0)
  1692.  
  1693. msh16.Scale = Vector3.new(0.9+0.7-0.7*i,0.9+0.4-0.4*i,0.9+0.7-0.7*i)
  1694. msh17.Scale = Vector3.new(0.6+0.5-0.5*i,0.6+0.5-0.5*i,0.6+0.5-0.5*i)
  1695. msh18.Scale = Vector3.new(0.5+0.5-0.5*i,0.9+0.5-0.5*i,0.5+0.5-0.5*i)
  1696. msh19.Scale = Vector3.new(0.3+0.5-0.5*i,0.91+0.5-0.5*i,0.3+0.5-0.5*i)
  1697. msh20.Scale = Vector3.new(0.1+0.2-0.2*i,0.7+0.5-0.5*i,0.1+0.2-0.2*i)
  1698. msh21.Scale = Vector3.new(0.1+0.2-0.2*i,0.7+0.5-0.5*i,0.1+0.2-0.2*i)
  1699. msh22.Scale = Vector3.new(0.1+0.2-0.2*i,0.7+0.5-0.5*i,0.1+0.2-0.2*i)
  1700. msh23.Scale = Vector3.new(0.1+0.2-0.2*i,0.7+0.5-0.5*i,0.1+0.2-0.2*i)
  1701. wld16.C0 = CFrame.fromEulerAnglesXYZ(0,0,-0.3+0.3-0.3*i) * CFrame.new(-0.6+0.6-0.6*i,1.9-1.9*i,0)
  1702. wld17.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.6+0.3-0.3*i,0)
  1703. wld18.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.5+0.6-0.6*i,0)
  1704. wld19.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  1705. wld20.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.3-0.3+0.3*i,1+0.8-0.8*i,0)
  1706. wld21.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.3+0.3-0.3*i,1+0.8-0.8*i,0)
  1707. wld22.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1+0.8-0.8*i,-0.3-0.3+0.3*i)
  1708. wld23.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1+0.8-0.8*i,0.3+0.3-0.3*i)
  1709.  
  1710. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2-1+1*i,1.57) * CFrame.new(0,1,0)
  1711. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1712. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-2.57+2.57*i,-0.9+0.9*i,0)
  1713. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1714. RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(-0.5+1.5-1.5*i,0,-0.5+0.5*i)
  1715. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1716. end
  1717. for i = 0,1,0.1 do
  1718. wait()
  1719. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2-1+1-2*i,1.57) * CFrame.new(0,1,0)
  1720. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1721. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-2.57+2.57-1*i,0,0)
  1722. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1723. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  1724. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1725. end
  1726. end
  1727. attack = false
  1728. for i=0,1,0.1 do
  1729. wait()
  1730. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1731. end
  1732. end
  1733.  
  1734. function changeitemleft()
  1735. if Number > 1 then
  1736. Number = Number - 1
  1737. shot = Item[Number]
  1738. end
  1739. end
  1740.  
  1741. function changeitemright()
  1742. if Number < #Item then
  1743. Number = Number + 1
  1744. shot = Item[Number]
  1745. end
  1746. end
  1747.  
  1748. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1749. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1750. end
  1751.  
  1752. Stun2=function(Feh,x,y,z,color)
  1753. coroutine.resume(coroutine.create(function(part)
  1754. --[[ if part.Parent:FindFirstChild("Torso")==nil then
  1755. return
  1756. end]]
  1757. Torsoh2=part
  1758. End2=Torsoh2.CFrame+Vector3.new(math.random(-20,20)/10,math.random(-30,30)/10,math.random(-20,20)/10)
  1759. ST2=Torsoh2.Position
  1760. --[[ p=Instance.new("BodyPosition")
  1761. p.P=3000
  1762. p.D=100
  1763. p.maxForce=Vector3.new(math.huge,0,math.huge)
  1764. p.position=Torsoh2.Position
  1765. p.Parent=Torsoh2]]
  1766. while part.Parent ~= nil and lightning == true do
  1767. -- f1:Play()
  1768. -- p.position=ST2+Vector3.new(math.random(-50,50)/50,0,math.random(-50,50)/50)
  1769. Start2=End2
  1770. End2=Torsoh2.CFrame*CFrame.new(math.random(-x,x)/10,math.random(-y,y)/10,math.random(-z,z)/10)
  1771. e=Instance.new("Part")
  1772. e.TopSurface=0
  1773. e.BottomSurface=0
  1774. e.CanCollide=false
  1775. e.Anchored=true
  1776. e.formFactor="Symmetric"
  1777. e.Size=Vector3.new(1,1,1)
  1778. Look2=(End2.p-Start2.p).unit
  1779. m=Instance.new("BlockMesh")
  1780. m.Scale=Vector3.new(.2,.2,(Start2.p-End2.p).magnitude)
  1781. m.Parent=e
  1782. e.CFrame=CFrame.new(Start2.p+Look2*(m.Scale.z/2),Start2.p+Look2*99)
  1783. e.Reflectance=.3
  1784. e.Name="Zap"
  1785. e.BrickColor=color
  1786. e.Parent=part.Parent
  1787. coroutine.resume(coroutine.create(function(PAR) for i=1, 25 do PAR.Transparency=i/25 wait() end PAR.Parent=nil end),e)
  1788. wait()
  1789. end
  1790. wait(.45)
  1791. -- p.Parent=nil
  1792. end),Feh)
  1793. end
  1794.  
  1795. Stun3=function(Feh,x,y,z,color)
  1796. coroutine.resume(coroutine.create(function(part)
  1797. --[[ if part.Parent:FindFirstChild("Torso")==nil then
  1798. return
  1799. end]]
  1800. Torsoh2=part
  1801. End2=Torsoh2.CFrame+Vector3.new(math.random(-20,20)/10,math.random(-30,30)/10,math.random(-20,20)/10)
  1802. ST2=Torsoh2.Position
  1803. --[[ p=Instance.new("BodyPosition")
  1804. p.P=3000
  1805. p.D=100
  1806. p.maxForce=Vector3.new(math.huge,0,math.huge)
  1807. p.position=Torsoh2.Position
  1808. p.Parent=Torsoh2]]
  1809. while part.Parent ~= nil and lightning == true do
  1810. -- f1:Play()
  1811. -- p.position=ST2+Vector3.new(math.random(-50,50)/50,0,math.random(-50,50)/50)
  1812. Start2=End2
  1813. End2=Torsoh2.CFrame*CFrame.new(math.random(-x,x)/10,y/10,math.random(-z,z)/10)
  1814. e=Instance.new("Part")
  1815. e.TopSurface=0
  1816. e.BottomSurface=0
  1817. e.CanCollide=false
  1818. e.Anchored=true
  1819. e.formFactor="Symmetric"
  1820. e.Size=Vector3.new(3,3,1)
  1821. Look2=(End2.p-Start2.p).unit
  1822. m=Instance.new("BlockMesh")
  1823. m.Scale=Vector3.new(.2,.2,(Start2.p-End2.p).magnitude)
  1824. m.Parent=e
  1825. e.CFrame=CFrame.new(Start2.p+Look2*(m.Scale.z/2),Start2.p+Look2*99)
  1826. e.Reflectance=.3
  1827. e.Name="Zap"
  1828. e.BrickColor=color
  1829. e.Parent=part.Parent
  1830. coroutine.resume(coroutine.create(function(PAR) for i=1, 25 do PAR.Transparency=i/25 wait() end PAR.Parent=nil end),e)
  1831. wait()
  1832. end
  1833. wait(.45)
  1834. -- p.Parent=nil
  1835. end),Feh)
  1836. end
  1837.  
  1838. function shoottrail2(mouse)
  1839. spread2 = 0
  1840. range2 = 500
  1841. rangepower = 10
  1842. if alt==1 then
  1843. if shot == "Normal" then
  1844. spread2 = 50
  1845. range2 = 100
  1846. end
  1847. end
  1848. local spreadvector = (Vector3.new(math.random(-spread2,spread2),math.random(-spread2,spread2),math.random(-spread2,spread2)) / 100) * (prt19.Position).magnitude/100
  1849. local dir = Head.CFrame.lookVector+spreadvector
  1850. local hit2,pos = rayCast(prt19.Position,dir,10,Character)
  1851. local rangepos = range2
  1852. local function drawtrail(From,To)
  1853. local effectsmsh = Instance.new("CylinderMesh")
  1854. effectsmsh.Scale = Vector3.new(1,1,1)
  1855. effectsmsh.Name = "Mesh"
  1856. local effectsg = Instance.new("Part")
  1857. effectsg.formFactor = 3
  1858. effectsg.CanCollide = false
  1859. effectsg.Name = "Eff"
  1860. effectsg.Locked = true
  1861. effectsg.Anchored = true
  1862. effectsg.Size = Vector3.new(1,0.2,1)
  1863. effectsg.Parent = Character
  1864. effectsmsh.Parent = effectsg
  1865. effectsg.BrickColor = BrickColor.new("white")
  1866. if shot == "Dark" then
  1867. effectsg.BrickColor = BrickColor.new("Black")
  1868. end
  1869. effectsg.Reflectance = 0.25
  1870. local LP = From
  1871. local point1 = To
  1872. local mg = (LP - point1).magnitude
  1873. effectsmsh.Scale = Vector3.new(1,mg*5,1)
  1874. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  1875. coroutine.resume(coroutine.create(function()
  1876. for i = 0 , 1 , 0.2 do
  1877. wait()
  1878. effectsg.Transparency = 1*i
  1879. effectsmsh.Scale = Vector3.new(1-1*i,mg*5,1-1*i)
  1880. end
  1881. effectsg.Parent = nil
  1882. end))
  1883. end
  1884. local newpos = prt19.Position
  1885. local inc = rangepower
  1886. repeat
  1887. wait()
  1888. rangepos = rangepos - 10
  1889. dir = dir
  1890. --[[if alt==1 then
  1891. dir = dir * CFrame.Angles(math.rad(-1),0,0)
  1892. end ]]
  1893. hit2,pos = rayCast(newpos,dir,inc,Character)
  1894. drawtrail(newpos,pos)
  1895. newpos = newpos + (dir * inc)
  1896. if alt==1 then
  1897. inc = 10
  1898. if inc >= 20 then
  1899. inc = inc - 10
  1900. end
  1901. end
  1902. if hit2 ~= nil then
  1903. rangepos = 0
  1904. end
  1905. until rangepos <= 0
  1906. if hit2 ~= nil then
  1907. local effectsmsh = Instance.new("SpecialMesh")
  1908. effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356"
  1909. --effectsmsh.Scale = Vector3.new(1,1,2.5)
  1910. effectsmsh.Scale = Vector3.new(3,3,3)
  1911. local effectsg = Instance.new("Part")
  1912. effectsg.formFactor = 3
  1913. effectsg.CanCollide = false
  1914. effectsg.Name = "Arrow"
  1915. effectsg.Locked = true
  1916. effectsg.Transparency = 1
  1917. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  1918. effectsg.Parent = modelzorz
  1919. effectsg.BrickColor = BrickColor.new("white")
  1920. if shot == "Dark" then
  1921. effectsg.BrickColor = BrickColor.new("Black")
  1922. end
  1923. effectsmsh.Parent = effectsg
  1924. effectsg.CFrame = CFrame.new(newpos,pos) + CFrame.new(newpos,pos).lookVector*2.5*2
  1925. local efwel = Instance.new("Weld")
  1926. efwel.Parent = effectsg
  1927. efwel.Part0 = effectsg
  1928. efwel.Part1 = hit2
  1929. coroutine.resume(coroutine.create(function()
  1930. if shot == "Explode" then
  1931. --mana = mana - 50
  1932. boomsound(1)
  1933. coroutine.resume(coroutine.create(function()
  1934. if workspace:findFirstChild("GridModel") ~= nil then
  1935. local c = game.Workspace.GridModel:GetChildren();
  1936. for i = 1, #c do
  1937. if c[i].className == "Part" then
  1938. local targ = c[i].Position - effectsg.Position;
  1939. local mag = targ.magnitude;
  1940. if mag <= 8 then
  1941. c[i].Parent = nil
  1942. end
  1943. end
  1944. end
  1945. end
  1946. local c = game.Workspace:GetChildren();
  1947. for i = 1, #c do
  1948. local hum = c[i]:findFirstChild("Humanoid")
  1949. if hum ~= nil and hum.Health ~= 0 then
  1950. local head = c[i]:findFirstChild("Head");
  1951. if head ~= nil then
  1952. local targ = head.Position - effectsg.Position;
  1953. local mag = targ.magnitude;
  1954. if mag <= 15 then
  1955. wait()
  1956. DBHit(head,effectsg,20)
  1957. end
  1958. end
  1959. end
  1960. --[[ local c = game.Workspace:GetChildren();
  1961. for i = 1, #c do
  1962. if c[i].className=="Part" then
  1963. local targ = c[i].Position - effectsg.Position;
  1964. local mag = targ.magnitude;
  1965. if mag <= 15 then
  1966. wait()
  1967. c[i]:BreakJoints()
  1968. end
  1969. end
  1970. if c[i]:findFirstChild("Part")~=nil then
  1971. local targ = c[i]:findFirstChild("Part").Position - effectsg.Position;
  1972. local mag = targ.magnitude;
  1973. if mag <= 15 then
  1974. wait()
  1975. c[i]:BreakJoints()
  1976. end
  1977. end
  1978. end ]]
  1979. end
  1980. end))
  1981. EVENMOARMAGIX(effectsg,10,8,10,0,0,0,0,0,0,BrickColor.new("White"))
  1982. for i = 0,5 do
  1983. wait()
  1984. MMMAGIC(effectsg,8,8,8,0,0,0,BrickColor.new("White"))
  1985. end
  1986. elseif shot=="Dark" then
  1987. --mana=mana-70
  1988. --1529460
  1989. coroutine.resume(coroutine.create(function(Part,Mesh)
  1990. local Mesh = Instance.new("SpecialMesh")
  1991. Mesh.Scale = Vector3.new(0.5,0.5,0.5)
  1992. Mesh.MeshType = "Sphere"
  1993. -- Mesh.TextureId="http://www.roblox.com/asset/?id=1529460"
  1994. Part=Instance.new("Part")
  1995. Part.Name="Effect"
  1996. Part.formFactor=0
  1997. Part.Size=Vector3.new(1,1,1)
  1998. Part.BrickColor=BrickColor.new("Black")
  1999. Part.Reflectance = 0
  2000. Part.TopSurface=0
  2001. Part.BottomSurface=0
  2002. Part.Transparency=0
  2003. Part.Anchored=true
  2004. Part.CanCollide=false
  2005. Part.CFrame=effectsg.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,0)
  2006. Part.Parent=Character
  2007. Mesh.Parent = Part
  2008. lol=true
  2009. coroutine.resume(coroutine.create(function()
  2010. DarkRiftF(Part)
  2011. end))
  2012. DemMags=1
  2013. for i=0,200 do
  2014. wait()
  2015. DerpMagic(Part,1,i/3,1,0,i/3,0,BrickColor.new("Black"))
  2016. blackhole=true
  2017. DemMags=DemMags+0.2
  2018. Mesh.Scale=Mesh.Scale-Vector3.new(0.2,0.2,0.2)
  2019. Part.CFrame=effectsg.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2020. end
  2021. fff=200
  2022. for i=0,100 do
  2023. wait()
  2024. DerpMagic(Part,1,fff/3,1,0,fff/3,0,BrickColor.new("Black"))
  2025. Part.CFrame=effectsg.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2026. end
  2027. for i=0,1,0.05 do
  2028. wait()
  2029. Part.Transparency=Part.Transparency+0.05
  2030. Mesh.Scale=Mesh.Scale+Vector3.new(1.5,1.5,1.5)
  2031. end
  2032. lol=false
  2033. Part.Parent=nil
  2034. blackhole=false
  2035. end),nil,nil)
  2036. elseif shot == "Bomb" then
  2037. --mana = mana - 20
  2038. coroutine.resume(coroutine.create(function(him)
  2039. coroutine.resume(coroutine.create(function()
  2040. for i=0,1,0.01 do
  2041. wait()
  2042. local c = game.Workspace:GetChildren();
  2043. for i = 1, #c do
  2044. local hum = c[i]:findFirstChild("Humanoid")
  2045. if hum ~= nil and hum.Health ~= 0 then
  2046. local head = c[i]:findFirstChild("Head");
  2047. if head ~= nil then
  2048. local targ = head.Position - effectsg.Position;
  2049. local mag = targ.magnitude;
  2050. if mag <= 15 then
  2051. wait()
  2052. him=true
  2053. end
  2054. end
  2055. end
  2056. end
  2057. end
  2058. him = true
  2059. end))
  2060. while him == false do
  2061. wait(0.1)
  2062. MMMAGIC(effectsg,4,4,4,0,0,0,BrickColor.new("White"))
  2063. end
  2064. boomsound(1)
  2065. coroutine.resume(coroutine.create(function()
  2066. if workspace:findFirstChild("GridModel") ~= nil then
  2067. local c = game.Workspace.GridModel:GetChildren();
  2068. for i = 1, #c do
  2069. if c[i].className == "Part" then
  2070. local targ = c[i].Position - effectsg.Position;
  2071. local mag = targ.magnitude;
  2072. if mag <= 8 then
  2073. c[i].Parent = nil
  2074. end
  2075. end
  2076. end
  2077. end
  2078. local c = game.Workspace:GetChildren();
  2079. for i = 1, #c do
  2080. local hum = c[i]:findFirstChild("Humanoid")
  2081. if hum ~= nil and hum.Health ~= 0 then
  2082. local head = c[i]:findFirstChild("Head");
  2083. if head ~= nil then
  2084. local targ = head.Position - effectsg.Position;
  2085. local mag = targ.magnitude;
  2086. if mag <= 15 then
  2087. wait()
  2088. DBHit(head,effectsg,5)
  2089. end
  2090. end
  2091. end
  2092. --[[ local c = game.Workspace:GetChildren();
  2093. for i = 1, #c do
  2094. if c[i].className=="Part" then
  2095. local targ = c[i].Position - effectsg.Position;
  2096. local mag = targ.magnitude;
  2097. if mag <= 15 then
  2098. wait()
  2099. c[i]:BreakJoints()
  2100. end
  2101. end
  2102. if c[i]:findFirstChild("Part")~=nil then
  2103. local targ = c[i]:findFirstChild("Part").Position - effectsg.Position;
  2104. local mag = targ.magnitude;
  2105. if mag <= 15 then
  2106. wait()
  2107. c[i]:BreakJoints()
  2108. end
  2109. end
  2110. end ]]
  2111. end
  2112. end))
  2113. EVENMOARMAGIX(effectsg,10,8,10,0,0,0,0,0,0,BrickColor.new("White"))
  2114. for i = 0,5 do
  2115. wait()
  2116. MMMAGIC(effectsg,8,8,8,0,0,0,BrickColor.new("White"))
  2117. end
  2118. end),false)
  2119. end
  2120. end))
  2121. efwel.Parent = nil
  2122. effectsg.Anchored = true
  2123. local HitPos = effectsg.Position + CFrame.new(newpos,pos).lookVector*0.75
  2124. --local HitPos = prt1.Position + CFrame.new(newpos,pos).lookVector*0.75
  2125. --local HitPos = prt1.Position + (prt1.CFrame.lookVector * .5)
  2126. local CJ = CFrame.new(HitPos)
  2127. local C0 = effectsg.CFrame:inverse() * CJ
  2128. local C1 = hit2.CFrame:inverse() * CJ
  2129. --efwel.C0 = C0
  2130. --efwel.C1 = C1
  2131. --efwel.Parent = effectsg
  2132. Damg = 10
  2133. coroutine.resume(coroutine.create(function()
  2134. wait(3)
  2135. effectsg.Parent = nil
  2136. end))
  2137. if hit2.Parent:FindFirstChild("Humanoid") ~= nil then
  2138. hum = hit2.Parent.Humanoid
  2139. attackdebounce = false
  2140. Damagefunc1(hit2,Damg,5)
  2141. elseif hit2.Parent.Parent ~= nil and hit2.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  2142. hum = hit2.Parent.Parent.Humanoid
  2143. attackdebounce = false
  2144. Damagefunc1(hit2,Damg,5)
  2145. end
  2146. end
  2147. end
  2148.  
  2149.  
  2150. function faketors()
  2151. M.Parent = workspace
  2152. S.Parent = M
  2153. H.Parent = M
  2154. T.formFactor = 0
  2155. T.CanCollide = false
  2156. T.Name = "FTorso"
  2157. T.Locked = true
  2158. T.Parent = M
  2159. T.Transparency = 1
  2160. T.BrickColor = Torso.BrickColor
  2161. for i,z in pairs(Character:GetChildren()) do
  2162. if z.className == "CharacterMesh" then
  2163. if z.BodyPart == Enum.BodyPart.Torso then
  2164. local SM = Instance.new("SpecialMesh",T)
  2165. SM.MeshId = "http://www.roblox.com/asset/?id=" .. z.MeshId
  2166. if z.BaseTextureId ~= 0 then
  2167. SM.TextureId = z.BaseTextureId
  2168. elseif z.OverlayTextureId ~= 0 then
  2169. SM.TextureId = z.OverlayTextureId
  2170. else
  2171. SM.TextureId = ""
  2172. end
  2173. end
  2174. end
  2175. end
  2176. local wt = Instance.new("Weld")
  2177. wt.Parent = T
  2178. wt.Part0 = T
  2179. wt.Part1 = Torso
  2180. RW.Part0 = T
  2181. LW.Part0 = T
  2182. T.Transparency = 0
  2183. Torso.Transparency = 1
  2184. RHL.Part0 = T
  2185. LHL.Part0 = T
  2186. return wt,T
  2187. end
  2188.  
  2189. function MMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  2190. local msh1 = Instance.new("BlockMesh")
  2191. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  2192. S=Instance.new("Part")
  2193. S.Name="Effect"
  2194. S.formFactor=0
  2195. S.Size=Vector3.new(x1,y1,z1)
  2196. S.BrickColor=color
  2197. S.Reflectance = 0
  2198. S.TopSurface=0
  2199. S.BottomSurface=0
  2200. S.Transparency=0
  2201. S.Anchored=true
  2202. S.CanCollide=false
  2203. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2204. S.Parent=workspace
  2205. msh1.Parent = S
  2206. 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)
  2207. end
  2208.  
  2209. function UltimaMMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  2210. local msh1 = Instance.new("BlockMesh")
  2211. msh1.Scale = Vector3.new(x1,y1,z1)
  2212. S=Instance.new("Part")
  2213. S.Name="Effect"
  2214. S.formFactor=0
  2215. S.Size=Vector3.new(1,1,1)
  2216. S.BrickColor=color
  2217. S.Reflectance = 0
  2218. S.TopSurface=0
  2219. S.BottomSurface=0
  2220. S.Transparency=0
  2221. S.Anchored=true
  2222. S.CanCollide=false
  2223. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2224. S.Parent=workspace
  2225. msh1.Parent = S
  2226. 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)
  2227. end
  2228.  
  2229. function MOREMAGIX(part,cframe,x,y,z,color)
  2230. p2=Instance.new("Part")
  2231. p2.Name="Blast"
  2232. p2.TopSurface=0
  2233. p2.BottomSurface=0
  2234. p2.CanCollide=false
  2235. p2.Anchored=true
  2236. p2.BrickColor=color
  2237. p2.Size=Vector3.new(x,y,z)
  2238. p2.formFactor="Symmetric"
  2239. p2.CFrame=part.CFrame*CFrame.new(0,cframe,0)
  2240. p2.Parent=workspace
  2241. m=Instance.new("BlockMesh")
  2242. m.Parent=p2
  2243. m.Name="BlastMesh"
  2244. 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))
  2245. end
  2246.  
  2247. function EVENMOARMAGIX(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  2248. local msh1 = Instance.new("SpecialMesh")
  2249. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  2250. msh1.MeshType = "Sphere"
  2251. S=Instance.new("Part")
  2252. S.Name="Effect"
  2253. S.formFactor=0
  2254. S.Size=Vector3.new(x1,y1,z1)
  2255. S.BrickColor=color
  2256. S.Reflectance = 0
  2257. S.TopSurface=0
  2258. S.BottomSurface=0
  2259. S.Transparency=0
  2260. S.Anchored=true
  2261. S.CanCollide=false
  2262. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
  2263. S.Parent=workspace
  2264. msh1.Parent = S
  2265. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.15,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  2266. end
  2267.  
  2268. print("Y U NU GIVE CREDIT.")
  2269.  
  2270. function WaveEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  2271. local msh1 = Instance.new("SpecialMesh")
  2272. msh1.Scale = Vector3.new(x1,y1,z1)
  2273. msh1.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2274. S=Instance.new("Part")
  2275. S.Name="Effect"
  2276. S.formFactor=0
  2277. S.Size=Vector3.new(1,1,1)
  2278. S.BrickColor=color
  2279. S.Reflectance = 0
  2280. S.TopSurface=0
  2281. S.BottomSurface=0
  2282. S.Transparency=0
  2283. S.Anchored=true
  2284. S.CanCollide=false
  2285. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
  2286. S.Parent=workspace
  2287. msh1.Parent = S
  2288. 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)
  2289. end
  2290.  
  2291. function BlastEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  2292. local msh1 = Instance.new("SpecialMesh")
  2293. msh1.Scale = Vector3.new(x1,y1,z1)
  2294. msh1.MeshId = "http://www.roblox.com/asset/?id=1323306"
  2295. S=Instance.new("Part")
  2296. S.Name="Effect"
  2297. S.formFactor=0
  2298. S.Size=Vector3.new(1,1,1)
  2299. S.BrickColor=color
  2300. S.Reflectance = 0
  2301. S.TopSurface=0
  2302. S.BottomSurface=0
  2303. S.Transparency=0
  2304. S.Anchored=true
  2305. S.CanCollide=false
  2306. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
  2307. S.Parent=workspace
  2308. msh1.Parent = S
  2309. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.15,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  2310. end
  2311.  
  2312. function DerpMagic(part,x1,y1,z1,x2,y2,z2,color)
  2313. local msh1 = Instance.new("BlockMesh")
  2314. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  2315. S=Instance.new("Part")
  2316. S.Name="Effect"
  2317. S.formFactor=0
  2318. S.Size=Vector3.new(x1,y1,z1)
  2319. S.BrickColor=color
  2320. S.Reflectance = 0
  2321. S.TopSurface=0
  2322. S.BottomSurface=0
  2323. S.Transparency=0
  2324. S.Anchored=false
  2325. S.CanCollide=false
  2326. S.CFrame=part.CFrame
  2327. S.Parent=workspace
  2328. msh1.Parent = S
  2329. W=Instance.new("Weld")
  2330. W.Parent=S
  2331. W.Part0=S
  2332. W.Part1=part
  2333. W.C0=CFrame.new(x2,y2,z2) * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2334. W.Parent=nil
  2335. S.Anchored=true
  2336. coroutine.resume(coroutine.create(function(Part,Weld) 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 Weld.Parent=nil end),S,W)
  2337. end
  2338.  
  2339. DarkRiftF=function(par) --Thank you turdulator for this :D
  2340. while lol == true do
  2341. wait()
  2342. PWN={}
  2343. for _,v in pairs(workspace:children()) do
  2344. if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then
  2345. if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then
  2346. if v~=Character and (v.Torso.Position-par.Position).magnitude<=DemMags then
  2347. table.insert(PWN,v.Torso)
  2348. end
  2349. end
  2350. end
  2351. end
  2352. for _,t in pairs(PWN) do
  2353. Mag=(par.Position-t.Position).magnitude/2
  2354. t.Parent.Humanoid:TakeDamage(1)
  2355. rl=Instance.new("BodyAngularVelocity")
  2356. rl.P=3000
  2357. rl.maxTorque=Vector3.new(500000,500000,500000)*5000
  2358. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))/10
  2359. rl.Parent=t
  2360. game:GetService("Debris"):AddItem(rl,.1)
  2361. if Mag<=2 then
  2362. t.Parent.Humanoid:TakeDamage(.5)
  2363. else
  2364. vl=Instance.new("BodyVelocity")
  2365. vl.P=3000
  2366. vl.maxForce=Vector3.new(50000000000,50000000000,50000000000)
  2367. vl.velocity=(t.Position-par.Position).unit*-(70/(Mag))
  2368. vl.Parent=t
  2369. game:GetService("Debris"):AddItem(vl,.1)
  2370. end
  2371. end
  2372. wait(.08)
  2373. end
  2374. end
  2375.  
  2376. function ss(pitch)
  2377.  
  2378. local SlashSound = Instance.new("Sound")
  2379. --SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  2380. SlashSound.SoundId = "http://roblox.com/asset/?id=10209645"
  2381. SlashSound.Parent = workspace
  2382. SlashSound.Volume = .7
  2383. SlashSound.Pitch = pitch
  2384. SlashSound.PlayOnRemove = true
  2385. coroutine.resume(coroutine.create(function()
  2386. wait(0)
  2387. SlashSound.Parent = nil
  2388. end))
  2389. end
  2390. function equipsound(pitch)
  2391.  
  2392. local SlashSound = Instance.new("Sound")
  2393. SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  2394. SlashSound.Parent = workspace
  2395. SlashSound.Volume = .5
  2396. SlashSound.Pitch = pitch
  2397. SlashSound.PlayOnRemove = true
  2398. coroutine.resume(coroutine.create(function()
  2399. wait(0)
  2400. SlashSound.Parent = nil
  2401. end))
  2402. end
  2403. function magicsound(pitch)
  2404.  
  2405. local SlashSound = Instance.new("Sound")
  2406. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2248511"
  2407. SlashSound.Parent = workspace
  2408. SlashSound.Volume = .5
  2409. SlashSound.Pitch = pitch
  2410. SlashSound.PlayOnRemove = true
  2411. coroutine.resume(coroutine.create(function()
  2412. wait(0)
  2413. SlashSound.Parent = nil
  2414. end))
  2415. end
  2416. function critsound(pitch)
  2417.  
  2418. local SlashSound = Instance.new("Sound")
  2419. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2801263"
  2420. SlashSound.Parent = workspace
  2421. SlashSound.Volume = .7
  2422. SlashSound.Pitch = pitch
  2423. SlashSound.PlayOnRemove = true
  2424. coroutine.resume(coroutine.create(function()
  2425. wait(0)
  2426. SlashSound.Parent = nil
  2427. end))
  2428. end
  2429. function spikesound(pitch)
  2430.  
  2431. local SlashSound = Instance.new("Sound")
  2432. SlashSound.SoundId = "http://www.roblox.com/asset/?id=3264793"
  2433. SlashSound.Parent = workspace
  2434. SlashSound.Volume = .7
  2435. SlashSound.Pitch = pitch
  2436. SlashSound.PlayOnRemove = true
  2437. coroutine.resume(coroutine.create(function()
  2438. wait(0)
  2439. SlashSound.Parent = nil
  2440. end))
  2441. end
  2442. function boomsound(pitch)
  2443.  
  2444. local SlashSound = Instance.new("Sound")
  2445. SlashSound.SoundId = "http://www.roblox.com/asset?id=2101148"
  2446. SlashSound.Parent = workspace
  2447. SlashSound.Volume = .7
  2448. SlashSound.Pitch = pitch
  2449. SlashSound.PlayOnRemove = true
  2450. coroutine.resume(coroutine.create(function()
  2451. wait(0)
  2452. SlashSound.Parent = nil
  2453. end))
  2454. end
  2455. function lasersound(pitch)
  2456.  
  2457. local SlashSound = Instance.new("Sound")
  2458. SlashSound.SoundId = "rbxasset://sounds/Launching rocket.wav"
  2459. SlashSound.Parent = workspace
  2460. SlashSound.Volume = .5
  2461. SlashSound.Pitch = pitch
  2462. SlashSound.PlayOnRemove = true
  2463. coroutine.resume(coroutine.create(function()
  2464. wait(0)
  2465. SlashSound.Parent = nil
  2466. end))
  2467. end
  2468. function omnomnom(pitch)
  2469.  
  2470. local SlashSound = Instance.new("Sound")
  2471. SlashSound.SoundId = "http://www.roblox.com/asset/?id=12544690"
  2472. SlashSound.Parent = workspace
  2473. SlashSound.Volume = .5
  2474. SlashSound.Pitch = pitch
  2475. SlashSound.PlayOnRemove = true
  2476. coroutine.resume(coroutine.create(function()
  2477. wait(0)
  2478. SlashSound.Parent = nil
  2479. end))
  2480. end
  2481.  
  2482. Damagefunc1=function(hit,Damage,Knockback)
  2483. if hit.Parent==nil then
  2484. return
  2485. end
  2486. CPlayer=Bin
  2487. h=hit.Parent:FindFirstChild("Humanoid")
  2488. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  2489. if attackdebounce == false then
  2490. attackdebounce = true
  2491. coroutine.resume(coroutine.create(function()
  2492. wait(0.1)
  2493. attackdebounce = false
  2494. end))
  2495. if mana < 400 and mode == "Sword" then
  2496. mana = mana + math.random(30,50)
  2497. end
  2498. if mana > 400 then
  2499. mana = 400
  2500. end
  2501. Damage=Damage
  2502. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2503. return
  2504. end]]
  2505. c=Instance.new("ObjectValue")
  2506. c.Name="creator"
  2507. c.Value=game.Players.LocalPlayer
  2508. c.Parent=h
  2509. game:GetService("Debris"):AddItem(c,.5)
  2510. -- print(c.Value)
  2511. if math.random(0,99)+math.random()<=5 then
  2512. CRIT=true
  2513. Damage=Damage*1.5
  2514. --[[ Knockback=Knockback*2
  2515. r=Instance.new("BodyAngularVelocity")
  2516. r.P=3000
  2517. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  2518. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2519. r.Parent=hit.Parent.Torso]]
  2520. critsound(2)
  2521.  
  2522. end
  2523. Damage=Damage+math.random(0,10)
  2524. -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  2525. h:TakeDamage(Damage)
  2526. showDamage(hit.Parent,Damage,.5)
  2527. vp=Instance.new("BodyVelocity")
  2528. vp.P=500
  2529. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2530. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  2531. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  2532. if Knockback>0 then
  2533. vp.Parent=hit.Parent.Torso
  2534. end
  2535. game:GetService("Debris"):AddItem(vp,.25)
  2536. --[[ r=Instance.new("BodyAngularVelocity")
  2537. r.P=3000
  2538. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  2539. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2540. r.Parent=hit.Parent.Torso]]
  2541. game:GetService("Debris"):AddItem(r,.5)
  2542. c=Instance.new("ObjectValue")
  2543. c.Name="creator"
  2544. c.Value=Player
  2545. c.Parent=h
  2546. game:GetService("Debris"):AddItem(c,.5)
  2547. CRIT=false
  2548. hitDeb=true
  2549. AttackPos=6
  2550. end
  2551. end
  2552. end
  2553.  
  2554. Damagefunc2=function(hit,Damage,Knockback)
  2555. if hit.Parent==nil then
  2556. return
  2557. end
  2558. CPlayer=Bin
  2559. h=hit.Parent:FindFirstChild("Humanoid")
  2560. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  2561. if attackdebounce == false then
  2562. attackdebounce = true
  2563. coroutine.resume(coroutine.create(function()
  2564. wait(0.1)
  2565. attackdebounce = false
  2566. end))
  2567. if mana < 400 and mode == "Sword" then
  2568. mana = mana + math.random(30,50)
  2569. end
  2570. if mana > 400 then
  2571. mana = 400
  2572. end
  2573. Damage=Damage
  2574. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2575. return
  2576. end]]
  2577. c=Instance.new("ObjectValue")
  2578. c.Name="creator"
  2579. c.Value=game.Players.LocalPlayer
  2580. c.Parent=h
  2581. game:GetService("Debris"):AddItem(c,.5)
  2582. -- print(c.Value)
  2583. CRIT=true
  2584. if CRIT==true then
  2585. CRIT=true
  2586. Damage=Damage*1.5
  2587. Knockback=Knockback*2
  2588. for i=1,3 do
  2589. EVENMOARMAGIX(hit.Parent.Torso,5,5,5,0,0,0,0,0,0,BrickColor.new("White"))
  2590. end
  2591. r=Instance.new("BodyAngularVelocity")
  2592. r.P=3000
  2593. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  2594. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2595. r.Parent=hit.Parent.Torso
  2596. critsound(2)
  2597.  
  2598. end
  2599. Damage=Damage+math.random(0,10)
  2600. -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  2601. h:TakeDamage(Damage)
  2602. showDamage(hit.Parent,Damage,.5)
  2603. vp=Instance.new("BodyVelocity")
  2604. vp.P=500
  2605. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2606. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  2607. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  2608. if Knockback>0 then
  2609. vp.Parent=hit.Parent.Torso
  2610. end
  2611. game:GetService("Debris"):AddItem(vp,.25)
  2612. --[[ r=Instance.new("BodyAngularVelocity")
  2613. r.P=3000
  2614. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  2615. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2616. r.Parent=hit.Parent.Torso]]
  2617. game:GetService("Debris"):AddItem(r,.5)
  2618. c=Instance.new("ObjectValue")
  2619. c.Name="creator"
  2620. c.Value=Player
  2621. c.Parent=h
  2622. game:GetService("Debris"):AddItem(c,.5)
  2623. CRIT=false
  2624. hitDeb=true
  2625. AttackPos=6
  2626. end
  2627. end
  2628. end
  2629.  
  2630. DBHit=function(hit,DB,Dmg) --credits to turdulator for making this function :D
  2631. if hit.Parent==nil then
  2632. return
  2633. end
  2634. h=hit.Parent:FindFirstChild("Humanoid")
  2635. if h==nil then
  2636. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  2637. end
  2638. t=hit.Parent:FindFirstChild("Torso")
  2639. if h~=nil and t~=nil then
  2640. --[[ if h.Parent==Character then
  2641. return
  2642. end]]
  2643. coroutine.resume(coroutine.create(function()
  2644. if h.Parent==Character then
  2645. local vel = Instance.new("BodyVelocity")
  2646. vel.maxForce = Vector3.new(0,math.huge,0)
  2647. vel.P = vel.P * 2
  2648. vel.velocity = Vector3.new(0,100,0)
  2649. vel.Parent = Torso
  2650. wait(0.2)
  2651. vel.Parent = nil
  2652. end
  2653. end))
  2654. Damage=Dmg+math.random(2,10)
  2655. h:TakeDamage(Damage)
  2656. c=Instance.new("ObjectValue")
  2657. c.Name="creator"
  2658. c.Value=game.Players.LocalPlayer
  2659. c.Parent=h
  2660. game:GetService("Debris"):AddItem(c,.5)
  2661. showDamage(hit.Parent,Damage,.5)
  2662. vl=Instance.new("BodyVelocity")
  2663. vl.P=4500
  2664. vl.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2665. vl.velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+Vector3.new(0,3,0)
  2666. vl.Parent=t
  2667. game:GetService("Debris"):AddItem(vl,.2)
  2668. rl=Instance.new("BodyAngularVelocity")
  2669. rl.P=3000
  2670. rl.maxTorque=Vector3.new(5000,5000,5000)*500000000
  2671. rl.angularvelocity=Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  2672. rl.Parent=t
  2673. game:GetService("Debris"):AddItem(rl,.2)
  2674. else
  2675. if hit.CanCollide==false then
  2676. return
  2677. end
  2678. MagicCom:disconnect()
  2679. -- DBExplode(DB)
  2680. end
  2681. end
  2682.  
  2683. showDamage=function(Char,Dealt,du)
  2684. m=Instance.new("Model")
  2685. m.Name=tostring(Dealt)
  2686. h=Instance.new("Humanoid")
  2687. h.Health=0
  2688. h.MaxHealth=0
  2689. h.Parent=m
  2690. c=Instance.new("Part")
  2691. c.Transparency=0
  2692. c.BrickColor=BrickColor:Red()
  2693. if CRIT==true then
  2694. c.BrickColor=BrickColor.new("Really red")
  2695. end
  2696. c.Name="Head"
  2697. c.TopSurface=0
  2698. c.BottomSurface=0
  2699. c.formFactor="Plate"
  2700. c.Size=Vector3.new(1,.4,1)
  2701. ms=Instance.new("CylinderMesh")
  2702. ms.Bevel=.1
  2703. ms.Scale=Vector3.new(.8,.8,.8)
  2704. if CRIT==true then
  2705. ms.Scale=Vector3.new(1.25,1.5,1.25)
  2706. ms.Bevel=.2
  2707. end
  2708. ms.Parent=c
  2709. c.Reflectance=0
  2710. Instance.new("BodyGyro").Parent=c
  2711. c.Parent=m
  2712. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2713. f=Instance.new("BodyPosition")
  2714. f.P=2000
  2715. f.D=100
  2716. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2717. f.position=c.Position+Vector3.new(0,3,0)
  2718. f.Parent=c
  2719. game:GetService("Debris"):AddItem(m,.5+du)
  2720. c.CanCollide=false
  2721. m.Parent=workspace
  2722. c.CanCollide=false
  2723. end
  2724.  
  2725. hold = false
  2726.  
  2727.  
  2728. function ob1d(mouse)
  2729. if attack == true then return end
  2730. if stancing == true then return end
  2731. hold = true
  2732. if Stance=="Normal" then
  2733. if mode == "Sword" then
  2734. if combo == 0 then
  2735. combo = 1
  2736. onehit()
  2737. coroutine.resume(coroutine.create(function()
  2738. wait(0.5)
  2739. if attack == false then
  2740. combo = 0
  2741. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1,1.57) * CFrame.new(0,1,0)
  2742. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  2743. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,0)
  2744. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2745. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2746. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2747. end
  2748. end))
  2749. elseif combo == 1 then
  2750. combo = 2
  2751. twohit()
  2752. coroutine.resume(coroutine.create(function()
  2753. wait(0.5)
  2754. if attack == false then
  2755. combo = 0
  2756. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1,1.57) * CFrame.new(0,1,0)
  2757. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  2758. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,0)
  2759. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2760. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2761. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2762. end
  2763. end))
  2764. elseif combo == 2 then
  2765. combo = 3
  2766. threehit()
  2767. coroutine.resume(coroutine.create(function()
  2768. wait(0.5)
  2769. if attack == false then
  2770. combo = 0
  2771. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1,1.57) * CFrame.new(0,1,0)
  2772. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  2773. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,0)
  2774. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2775. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2776. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2777. end
  2778. end))
  2779. elseif combo == 3 then
  2780. combo = 4
  2781. fourhit()
  2782. wait(0.5)
  2783. combo = 0
  2784. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1,1.57) * CFrame.new(0,1,0)
  2785. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  2786. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,0)
  2787. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2788. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2789. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2790. end
  2791. elseif mode == "Gun" then
  2792. Shoot(mouse)
  2793. end
  2794. end
  2795. end
  2796.  
  2797. function ob1u(mouse)
  2798. hold = false
  2799. end
  2800.  
  2801. buttonhold = false
  2802.  
  2803. function Key(key,mouse)
  2804. if key == "g" then
  2805. EatMuffin()
  2806. end
  2807. if attack == true then return end
  2808. if key == "z" and Stance=="NotFighting" then
  2809. keyZ=true
  2810. SpinAround()
  2811. end
  2812. if key == "x" and Stance=="NotFighting" then
  2813. JumpStab()
  2814. end
  2815. if key == "c" and Stance=="NotFighting" then
  2816. EndStance()
  2817. Stance="Normal"
  2818. attack=false
  2819. return
  2820. end
  2821. if Stance=="Normal" then
  2822. if key == "c" then
  2823. StanceMode()
  2824. end
  2825. if key == "h" then
  2826. if mana2=="Normal" then
  2827. mana2="Max"
  2828. elseif mana2=="Max" then
  2829. mana2="Normal"
  2830. end
  2831. end
  2832. if key == "q" then
  2833. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  2834. Switch()
  2835. end
  2836. if mode == "Gun" then
  2837. if key == "e" then
  2838. Aim(mouse)
  2839. end
  2840. if key == "r" then
  2841. changeitemleft()
  2842. end
  2843. if key == "t" then
  2844. changeitemright()
  2845. end
  2846. if key == "z" then
  2847. if alt==0 then
  2848. elseif alt==1 then
  2849. alt=0
  2850. elseif alt==2 then
  2851. alt=1
  2852. end
  2853. end
  2854. if key == "x" then
  2855. if alt==0 then
  2856. alt=1
  2857. elseif alt==1 then
  2858. alt=2
  2859. elseif alt==2 then
  2860. end
  2861. end
  2862. elseif mode == "Sword" then
  2863. if key == "e" then
  2864. SpinSlash()
  2865. end
  2866. if key == "r" then
  2867. WaveStab()
  2868. end
  2869. if key == "t" then
  2870. if skillcombo == 0 then
  2871. DarkSlash()
  2872. elseif skillcombo == 1 then
  2873. LightSlash()
  2874. end
  2875. end
  2876. end
  2877. end
  2878. end
  2879.  
  2880. function Key2(key,mouse)
  2881. if key == "z" then
  2882. keyZ=false
  2883. end
  2884. end
  2885.  
  2886. function s(mouse)
  2887. mouse.Button1Down:connect(function() ob1d(mouse) end)
  2888. mouse.Button1Up:connect(function() ob1u(mouse) end)
  2889. mouse.KeyDown:connect(function(key) Key(key,mouse) end)
  2890. mouse.KeyUp:connect(function(key) Key2(key,mouse) end)
  2891. --mouse.KeyDown:connect(key,mouse)
  2892. --mouse.KeyUp:connect(key2,mouse)
  2893. MMouse = mouse
  2894. player = Player
  2895. ch = Character
  2896. RSH = ch.Torso["Right Shoulder"]
  2897. LSH = ch.Torso["Left Shoulder"]
  2898. --
  2899. RW.Part0 = ch.Torso
  2900. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  2901. RW.C1 = CFrame.new(0, 0.5, 0)
  2902. RW.Part1 = ch["Right Arm"]
  2903. RW.Parent = ch.Torso
  2904. --_G.R = RW
  2905. --
  2906. LW.Part0 = ch.Torso
  2907. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  2908. LW.C1 = CFrame.new(0, 0.5, 0)
  2909. LW.Part1 = ch["Left Arm"]
  2910. LW.Parent = ch.Torso
  2911. --_G.L = LW
  2912. --
  2913. equipanim()
  2914. end
  2915.  
  2916. function ds(mouse)
  2917. hideanim()
  2918. RW.Parent = nil
  2919. LW.Parent = nil
  2920. RSH.Parent = player.Character.Torso
  2921. LSH.Parent = player.Character.Torso
  2922. end
  2923.  
  2924. Bin.Selected:connect(s)
  2925. Bin.Deselected:connect(ds)
  2926.  
  2927. function onRunning(speed)
  2928. --[[ if speed>0 then
  2929. if Stance=="NotFighting" then
  2930. for i=0,1,0.1 do
  2931. wait()
  2932. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14+0.5-0.7*i,1.57) * CFrame.new(0,1+0.3-0.3*i,0.5)
  2933. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-0.5-2*i,0,-1+1*i)
  2934. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2935. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0)
  2936. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2937. end
  2938. end
  2939. else
  2940. if Stance=="NotFighting" then
  2941. for i=0,1,0.1 do
  2942. wait()
  2943. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14+0.5-0.7+0.7*i,1.57) * CFrame.new(0,1+0.3-0.3+0.3*i,0.5)
  2944. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-0.5-2+2*i,0,-1+1-1*i)
  2945. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2946. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  2947. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2948. end
  2949. end
  2950. end]]
  2951. if attack == true then return end
  2952. if speed>0 then
  2953. walking = true
  2954. if mode == "Sword" and Stance=="Normal" then
  2955. for i = 0,1,0.1 do
  2956. wait()
  2957. if attack == false then
  2958. --Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  2959. --Torso.Neck.C1=necko2*CFrame.fromEulerAnglesXYZ(0,0,0)
  2960. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,0)
  2961. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2962. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0)
  2963. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2964. end
  2965. end
  2966. end
  2967. if Stance=="NotFighting" then
  2968. for i=0,1,0.1 do
  2969. wait()
  2970. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14+0.5-0.7*i,1.57) * CFrame.new(0,1+0.3-0.3*i,0.5)
  2971. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-0.5-2*i,0,-1+1*i)
  2972. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2973. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0.5)
  2974. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2975. end
  2976. end
  2977. else
  2978. walking = false
  2979. if mode == "Sword" and Stance=="Normal" then
  2980. for i = 0,1,0.1 do
  2981. wait()
  2982. if attack == false then
  2983. --Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  2984. --Torso.Neck.C1=necko2*CFrame.fromEulerAnglesXYZ(0,0,0)
  2985. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,0)
  2986. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2987. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  2988. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2989. end
  2990. end
  2991. end
  2992. if Stance=="NotFighting" then
  2993. for i=0,1,0.1 do
  2994. wait()
  2995. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14+0.5-0.7+0.7*i,1.57) * CFrame.new(0,1+0.3-0.3+0.3*i,0.5)
  2996. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-0.5-2+2*i,0,-1+1-1*i)
  2997. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2998. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0.5)
  2999. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3000. end
  3001. end
  3002. end
  3003. end
  3004. Character.Humanoid.Running:connect(onRunning)
  3005.  
  3006. increase = 0
  3007. while true do
  3008. wait(0)
  3009. --[[coroutine.resume(coroutine.create(function()
  3010. if attack==true and Stance~="NotFighting" then
  3011. if EtheralMode==false then
  3012. EtheralMode=true
  3013. prt13.Transparency=0.9
  3014. local maxNumClones = 10
  3015. local numClones = maxNumClones
  3016. local mySwords = {}
  3017. local swordConnections = {}
  3018. local waitTime = 0.000000000001
  3019.  
  3020. for i = 1, numClones do
  3021. local newSword = prt13:Clone()
  3022. newSword.Transparency = (numClones-i+1)/(numClones+1)
  3023. -- newSword.Mesh.VertexColor = Vector3.new((i+numClones)/(2*numClones+1), (i+numClones)/(2*numClones+1), 1)
  3024. -- newSword.Mesh.VertexColor = Vector3.new((i+numClones)/(2*numClones+1), (i+2*numClones)/(3*numClones+1), 1)
  3025. newSword.Anchored = false
  3026. newSword.CanCollide = false
  3027.  
  3028. local newBodyPos = Instance.new("BodyPosition")
  3029. newBodyPos.Name = "SwordPos"
  3030. newBodyPos.P = 10000
  3031. newBodyPos.maxForce = Vector3.new(newBodyPos.P, newBodyPos.P, newBodyPos.P)
  3032. newBodyPos.Parent = newSword
  3033.  
  3034. local newBodyGyro = Instance.new("BodyGyro")
  3035. newBodyGyro.Name = "SwordGyro"
  3036. newBodyGyro.P = 10000
  3037. newBodyGyro.maxTorque = Vector3.new(newBodyGyro.P, newBodyGyro.P, newBodyGyro.P)
  3038. newBodyGyro.Parent = newSword
  3039.  
  3040. table.insert(mySwords, newSword)
  3041. end
  3042.  
  3043. local index = 1
  3044.  
  3045. -- start out at current sword's CFrame
  3046. local swordFrames = {}
  3047. for i = 1, numClones do
  3048. table.insert(swordFrames, prt13.CFrame)
  3049. mySwords[i].CFrame = prt13.CFrame
  3050. --mySwords[i].Parent = game.Workspace
  3051. mySwords[i].Parent = workspace
  3052. end
  3053.  
  3054. local numSteps = 5 / waitTime
  3055. for i = 1, 100 do -- 5 seconds of sword ghosting/strobing
  3056. for j = 1, numClones do
  3057. --mySwords[j].CFrame = swordFrames[index]
  3058. if swordFrames[index] ~= nil then
  3059. mySwords[j].SwordGyro.cframe = swordFrames[index]
  3060. mySwords[j].SwordPos.position = swordFrames[index].p
  3061. end
  3062. index = index + 1
  3063. if index > numClones then index = 1 end
  3064. end
  3065. swordFrames[index] = prt13.CFrame
  3066. index = index + 1
  3067. if index > numClones then index = 1 end
  3068. wait(waitTime)
  3069.  
  3070. end
  3071.  
  3072. for i = 1, numClones do
  3073. mySwords[i].Parent = nil
  3074. end
  3075.  
  3076. if numClones > 0 then numClones = numClones - 1 end
  3077. prt13.Transparency=0
  3078. EtheralMode=false
  3079. end
  3080. end
  3081. end))]]
  3082. --print(blackhole)
  3083. if mana2=="Max" then
  3084. mana = 400
  3085. end
  3086. if mana < 0 then
  3087. mana = 0
  3088. end
  3089. increase = increase + 1
  3090. if increase == 5 then
  3091. if mana < 400 then
  3092. mana = mana + 1
  3093. end
  3094. increase = 0
  3095. end
  3096. fentext3.Size = UDim2.new(mana*0.007,0,0.200000006,0)
  3097. fentext.Text = "Energy("..mana..")"
  3098. fentext3.BackgroundColor3 = Color3.new(1,1,1)
  3099. fentext4.Text = "Shot Equipped: "..shot..""
  3100. fentext5.Text = "Alternate Shot: "..alt..""
  3101. end
  3102. ---mediafire
Add Comment
Please, Sign In to add comment