McRoblox132

God Arc

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