Hebablazin

GunArc

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