Advertisement
mathmasterphil

Godarc

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