Advertisement
wowzers

OPLIVION

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