Advertisement
vibrantsinger423

claw test

Mar 31st, 2018
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 180.84 KB | None | 0 0
  1. Player = game:GetService("Players").LocalPlayer
  2. local unlocks = Instance.new("StringValue")
  3. unlocks.Name = "Unlocks"
  4. unlocks.Parent = Player
  5. unlocks.Value = "Yumigari Ammo+"
  6. Character = Player.Character
  7. PlayerGui = Player.PlayerGui
  8. Backpack = Player.Backpack
  9. Torso = Character.Torso
  10. Head = Character.Head
  11. LeftArm = Character["Left Arm"]
  12. LeftLeg = Character["Left Leg"]
  13. RightArm = Character["Right Arm"]
  14. RightLeg = Character["Right Leg"]
  15. LS = Torso["Left Shoulder"]
  16. LH = Torso["Left Hip"]
  17. RS = Torso["Right Shoulder"]
  18. RH = Torso["Right Hip"]
  19. ModelName = "Weapon"
  20. attack = false
  21. attacktype = 1
  22. Hitdeb = 0
  23. Neck = Torso.Neck
  24. local neckcf0 = Neck.C0
  25. ----------------------------
  26. --Customize
  27. Ammo = 10
  28. if (string.match(Player.Unlocks.Value,"Yumigari Ammo+") ~= nil) then
  29. MaxAmmo = 10
  30. else
  31. MaxAmmo = 10
  32. end
  33. mindamage = 1000
  34. maxdamage = 100000
  35. crtmaxdamage = 99999999
  36. omindamage = mindamage
  37. omaxdamage = maxdamage
  38. ocrtmaxdamage = crtmaxdamage
  39. crtrate = 100/20
  40. --100%/critpercentage
  41. oblkbrkr = 0
  42. blockbreaker = oblkbrkr
  43. spread = 1.2
  44. spread = spread*100
  45. Ammoregen = 10
  46. if (string.match(Player.Unlocks.Value,"Yumigari Range+") ~= nil) then
  47. range = 500
  48. else
  49. range = 500
  50. end
  51. rangepower = 100
  52. CurrentArrow = "Fire"
  53. handlecolor = BrickColor.new("Brown")
  54. bcolor = BrickColor.new("Lime green")
  55. gemcolor = BrickColor.new("Black")
  56. arrowtrail = BrickColor.new("Lime green")
  57. ToolName = "Bow test"
  58. BowMeterial = "Neon"
  59. ---------------------------------------------------------------------------------------------------------------------------------------
  60. if Character:findFirstChild("EquippedVal",true) ~= nil then
  61. Character:findFirstChild("EquippedVal",true).Parent = nil
  62. end
  63. ev = Instance.new("BoolValue",Character)
  64. ev.Name = "EquippedVal"
  65. ev.Value = false
  66. if Character:findFirstChild("Block",true) ~= nil then
  67. Character:findFirstChild("Block",true).Parent = nil
  68. end
  69. --player
  70. player = nil
  71. --welds
  72. RW, LW , RWL, LWL = Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld")
  73. --what anim
  74. anim = "none"
  75. --other var
  76. player = Player
  77. ch = Character
  78. --save shoulders
  79. AoETrue = {}
  80. RSH, LSH , RHL, LHL = ch.Torso["Right Shoulder"], ch.Torso["Left Shoulder"] , ch.Torso["Right Hip"] , ch.Torso["Left Hip"]
  81. function RWFunc()
  82. RW.Part1 = ch["Right Arm"]
  83. RSH.Part1 = nil
  84. end
  85. function LWFunc()
  86. LW.Part1 = ch["Left Arm"]
  87. LSH.Part1 = nil
  88. end
  89. function RWLFunc()
  90. RWL.Part1 = ch["Right Leg"]
  91. RHL.Part1 = nil
  92. ch["Right Leg"].Name = "RightLeg"
  93. RightLeg.CanCollide = false
  94. end
  95. function LWLFunc()
  96. LWL.Part1 = ch["Left Leg"]
  97. LHL.Part1 = nil
  98. ch["Left Leg"].Name = "LeftLeg"
  99. LeftLeg.CanCollide = true
  100. end
  101. function RWLRem()
  102. RightLeg.Name = "Right Leg"
  103. RWL.Part1 = nil
  104. RHL.Part1 = ch["Right Leg"]
  105. RightLeg.CanCollide = false
  106. end
  107. function LWLRem()
  108. LeftLeg.Name = "Left Leg"
  109. LWL.Part1 = nil
  110. LHL.Part1 = ch["Left Leg"]
  111. LeftLeg.CanCollide = false
  112. end
  113. function RWRem()
  114. RW.Part1 = nil
  115. RSH.Part1 = ch["Right Arm"]
  116. end
  117. function LWRem()
  118. LW.Part1 = nil
  119. LSH.Part1 = ch["Left Arm"]
  120. end
  121. if Character:findFirstChild(ModelName,true) ~= nil then
  122. Character:findFirstChild(ModelName,true).Parent = nil
  123. RHL.Part1 = ch["Right Leg"]
  124. LHL.Part1 = ch["Left Leg"]
  125. RSH.Part1 = ch["Right Arm"]
  126. LSH.Part1 = ch["Left Arm"]
  127. end
  128. local swordholder = Instance.new("Model")
  129. swordholder.Name = ModelName
  130. swordholder.Parent = Character
  131. --derp
  132. RW.Part0 = ch.Torso
  133. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  134. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  135. RW.Parent = swordholder
  136. --
  137. LW.Part0 = ch.Torso
  138. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  139. LW.C1 = CFrame.new(0, 0.5, 0)
  140. LW.Parent = swordholder
  141. --
  142. RWL.Part0 = ch.Torso
  143. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 0, 0)
  144. RWL.C1 = CFrame.new(0.5, 1, 0)
  145. RWL.Parent = swordholder
  146. --
  147. LWL.Part0 = ch.Torso
  148. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, 0, 0)
  149. LWL.C1 = CFrame.new(-0.5, 1, 0)
  150. LWL.Parent = swordholder
  151. local msh1 = Instance.new("CylinderMesh")
  152. msh1.Scale = Vector3.new(1,1,1)
  153. local msh2 = Instance.new("CylinderMesh")
  154. msh2.Scale = Vector3.new(1,1,1)
  155. local msh3 = Instance.new("CylinderMesh")
  156. msh3.Scale = Vector3.new(1,1,1)
  157. local msh4 = Instance.new("BlockMesh")
  158. msh4.Scale = Vector3.new(2.5,1.2,1.2)
  159. local msh5 = Instance.new("BlockMesh")
  160. msh5.Scale = Vector3.new(2.5,1.2,1.2)
  161. local msh6 = Instance.new("BlockMesh")
  162. msh6.Scale = Vector3.new(1,1,1)
  163. local msh7 = Instance.new("BlockMesh")
  164. msh7.Scale = Vector3.new(1,1,1)
  165. local msh8 = Instance.new("SpecialMesh")
  166. msh8.MeshId = "http://www.roblox.com/asset/?id=3270017"
  167. msh8.Scale = Vector3.new(1,1,30)
  168. local msh9 = Instance.new("BlockMesh")
  169. local torsc = false
  170. for i,z in pairs(Character:GetChildren()) do
  171. if z.className == "CharacterMesh" then
  172. if z.BodyPart == Enum.BodyPart.Torso then
  173. torsc = true
  174. end
  175. end
  176. end
  177. if torsc then
  178. msh9 = Instance.new("SpecialMesh")
  179. msh9.MeshId = "http://www.roblox.com/asset/?id=3270017"
  180. msh9.Scale = Vector3.new(2.01,1,1.01)
  181. else
  182. msh9 = Instance.new("BlockMesh")
  183. msh9.Scale = Vector3.new(2.01,0.1,1.01)
  184. end
  185. local msh10 = Instance.new("CylinderMesh")
  186. msh10.Scale = Vector3.new(1,1,1)
  187. local prt1 = Instance.new("Part")
  188. prt1.formFactor = 3
  189. prt1.CanCollide = false
  190. prt1.Name = "Handle"
  191. prt1.Locked = true
  192. prt1.Size = Vector3.new(0.3,3,0.3)
  193. prt1.Parent = swordholder
  194. msh1.Parent = prt1
  195. prt1.BrickColor = handlecolor
  196. prt1.Material = BowMeterial
  197. local prt2 = Instance.new("Part")
  198. prt2.formFactor = 3
  199. prt2.CanCollide = false
  200. prt2.Name = "Handle2"
  201. prt2.Locked = true
  202. prt2.Size = Vector3.new(0.3,1,0.3)
  203. prt2.Parent = swordholder
  204. msh2.Parent = prt2
  205. prt2.BrickColor = handlecolor
  206. prt2.Material = BowMeterial
  207. local prt3 = Instance.new("Part")
  208. prt3.formFactor = 3
  209. prt3.CanCollide = false
  210. prt3.Name = "Handle3"
  211. prt3.Locked = true
  212. prt3.Size = Vector3.new(0.3,1,0.3)
  213. prt3.Parent = swordholder
  214. msh3.Parent = prt3
  215. prt3.BrickColor = handlecolor
  216. prt3.Material = BowMeterial
  217. local prt4 = Instance.new("Part")
  218. prt4.formFactor = 3
  219. prt4.CanCollide = false
  220. prt4.Name = "Handle4"
  221. prt4.Locked = true
  222. prt4.Size = Vector3.new(0.3,2,0.3)
  223. prt4.Parent = swordholder
  224. msh4.Parent = prt4
  225. prt4.BrickColor = bcolor
  226. prt4.Material = BowMeterial
  227. local prt5 = Instance.new("Part")
  228. prt5.formFactor = 3
  229. prt5.CanCollide = false
  230. prt5.Name = "Handle5"
  231. prt5.Locked = true
  232. prt5.Size = Vector3.new(0.3,2,0.3)
  233. prt5.Parent = swordholder
  234. msh5.Parent = prt5
  235. prt5.BrickColor = bcolor
  236. prt5.Material = BowMeterial
  237. local prt6 = Instance.new("Part")
  238. prt6.formFactor = 3
  239. prt6.CanCollide = false
  240. prt6.Name = "Handle6"
  241. prt6.Locked = true
  242. prt6.Size = Vector3.new(1,2,0.3)
  243. prt6.Parent = swordholder
  244. msh6.Parent = prt6
  245. prt6.BrickColor = bcolor
  246. prt6.Material = BowMeterial
  247. local prt7 = Instance.new("Part")
  248. prt7.formFactor = 3
  249. prt7.CanCollide = false
  250. prt7.Name = "Handle7"
  251. prt7.Locked = true
  252. prt7.Size = Vector3.new(1,2,0.3)
  253. prt7.Parent = swordholder
  254. msh7.Parent = prt7
  255. prt7.BrickColor = bcolor
  256. prt7.Material = BowMeterial
  257. local prt8 = Instance.new("Part")
  258. prt8.formFactor = 3
  259. prt8.CanCollide = false
  260. prt8.Name = "Quiver"
  261. prt8.Locked = true
  262. prt8.Size = Vector3.new(1.25,2.25,1.25)
  263. prt8.Parent = swordholder
  264. msh8.Parent = prt8
  265. prt8.BrickColor = handlecolor
  266. prt8.Material = BowMeterial
  267. local prt9 = Instance.new("Part")
  268. prt9.formFactor = 3
  269. prt9.CanCollide = false
  270. prt9.Name = "QuiverStrap"
  271. prt9.Locked = true
  272. prt9.Size = Vector3.new(1,1,1)
  273. prt9.Parent = swordholder
  274. msh9.Parent = prt9
  275. prt9.BrickColor = handlecolor
  276. prt9.Material = BowMeterial
  277. local prt10 = Instance.new("Part")
  278. prt10.formFactor = 3
  279. prt10.CanCollide = false
  280. prt10.Name = "QuiverCover"
  281. prt10.Locked = true
  282. prt10.Size = Vector3.new(1,0.2,1)
  283. prt10.Parent = swordholder
  284. msh10.Parent = prt10
  285. prt10.BrickColor = handlecolor
  286. prt10.Material = BowMeterial
  287. local msh11 = Instance.new("SpecialMesh")
  288. msh11.MeshId = "http://www.roblox.com/asset/?id=15887356"
  289. msh11.TextureId = "http://www.roblox.com/asset/?id=15886781"
  290. msh11.Scale = Vector3.new(1,1,2.5)
  291. local prt11 = Instance.new("Part")
  292. prt11.formFactor = 3
  293. prt11.CanCollide = false
  294. prt11.Name = "Arrow"
  295. prt11.Locked = true
  296. prt11.Size = Vector3.new(0.2,0.2,2.5)
  297. prt11.Parent = swordholder
  298. msh11.Parent = prt11
  299. prt11.Material = BowMeterial
  300. local w11 = Instance.new("Weld")
  301. w11.Parent = prt11
  302. w11.Part0 = prt11
  303. w11.Part1 = LeftArm
  304. w11.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  305. w11.C0 = CFrame.Angles(0,0,math.rad(90)) * CFrame.new(0,1,0)
  306. coroutine.resume(coroutine.create(function()
  307. repeat
  308. wait(0.25)
  309. if Ammo > 0 then
  310. prt11.Transparency = 0
  311. else
  312. prt11.Transparency = 1
  313. end
  314. until false
  315. end))
  316. for i = 1,10 do
  317. local msh0 = Instance.new("SpecialMesh")
  318. msh0.MeshId = "http://www.roblox.com/asset/?id=15887356"
  319. msh0.TextureId = "http://www.roblox.com/asset/?id=15886781"
  320. msh0.Scale = Vector3.new(1,1,2.5)
  321. local prt0 = Instance.new("Part")
  322. prt0.formFactor = 3
  323. prt0.CanCollide = false
  324. prt0.Name = "Arrow"..i
  325. prt0.Locked = true
  326. prt0.Size = Vector3.new(0.2,0.2,2.5)
  327. prt0.Parent = swordholder
  328. msh0.Parent = prt0
  329. local w0 = Instance.new("Weld")
  330. w0.Parent = prt0
  331. w0.Part0 = prt0
  332. w0.Part1 = prt8
  333. w0.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  334. w0.C0 = CFrame.Angles(math.rad(180), 0,math.rad(360*math.random())) * CFrame.new(math.random(-25,25)/100, math.random(-25,25)/100,-0.315)
  335. end
  336. ---
  337. local String1 = Instance.new("Part")
  338. String1.formFactor = 3
  339. String1.CanCollide = false
  340. String1.Name = "String1"
  341. String1.Locked = true
  342. String1.Anchored = true
  343. String1.Size = Vector3.new(0.2,4,0.2)
  344. String1.Parent = swordholder
  345. String1.BrickColor = BrickColor.new("White")
  346. local strmsh1 = Instance.new("BlockMesh",String1)
  347. strmsh1.Scale = Vector3.new(0.25,1,0.25)
  348. local String2 = Instance.new("Part")
  349. String2.formFactor = 3
  350. String2.CanCollide = false
  351. String2.Name = "String2"
  352. String2.Locked = true
  353. String2.Anchored = true
  354. String2.Size = Vector3.new(0.2,4,0.2)
  355. String2.Parent = swordholder
  356. String2.BrickColor = BrickColor.new("White")
  357. local strmsh2 = Instance.new("BlockMesh",String2)
  358. strmsh2.Scale = Vector3.new(0.25,1,0.25)
  359. local strmdl = "Bow"
  360. coroutine.resume(coroutine.create(function()
  361. repeat
  362. wait(0.1)
  363. local top = prt4.CFrame*CFrame.new(0,prt4.Size.y/-2,0)
  364. local bottom = prt5.CFrame*CFrame.new(0,prt5.Size.y/2,0)
  365. local oristrpos
  366. if strmdl == "Bow" then
  367. oristrpos = CFrame.new((top.p+bottom.p)/2)
  368. elseif strmdl == "TopArm" then
  369. oristrpos = RightArm.CFrame * CFrame.new(0,RightArm.Size.y/2,0)
  370. elseif strmdl == "LeftArm" then
  371. oristrpos = LeftArm.CFrame * CFrame.new(0,RightArm.Size.y/-2,0)
  372. end
  373. local mg1 = (top.p - oristrpos.p).magnitude
  374. local mg2 = (bottom.p - oristrpos.p).magnitude
  375. String1.Size = Vector3.new(0.2,mg1,0.2)
  376. String1.CFrame = CFrame.new((top.p+oristrpos.p)/2,oristrpos.p) * CFrame.Angles(math.rad(90),0,0)
  377. String2.Size = Vector3.new(0.2,mg2,0.2)
  378. String2.CFrame = CFrame.new((bottom.p+oristrpos.p)/2,oristrpos.p) * CFrame.Angles(math.rad(90),0,0)
  379. until false
  380. end))
  381. local w1 = Instance.new("Weld")
  382. w1.Parent = prt1
  383. w1.Part0 = prt1
  384. local w2 = Instance.new("Weld")
  385. w2.Parent = prt2
  386. w2.Part0 = prt2
  387. w2.Part1 = prt1
  388. w2.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  389. w2.C0 = CFrame.Angles(math.rad(20), 0, 0) * CFrame.new(0, 1.9,-0.15)
  390. local w3 = Instance.new("Weld")
  391. w3.Parent = prt3
  392. w3.Part0 = prt3
  393. w3.Part1 = prt1
  394. w3.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  395. w3.C0 = CFrame.Angles(math.rad(-20), 0, 0) * CFrame.new(0, -1.9,-0.15)
  396. local w4 = Instance.new("Weld")
  397. w4.Parent = prt4
  398. w4.Part0 = prt4
  399. w4.Part1 = prt1
  400. w4.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  401. w4.C0 = CFrame.Angles(math.rad(-55), 0, 0) * CFrame.new(0, 2.85,0.4)
  402. local w5 = Instance.new("Weld")
  403. w5.Parent = prt5
  404. w5.Part0 = prt5
  405. w5.Part1 = prt1
  406. w5.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  407. w5.C0 = CFrame.Angles(math.rad(55), 0, 0) * CFrame.new(0, -2.85,0.4)
  408. local w6 = Instance.new("Weld")
  409. w6.Parent = prt6
  410. w6.Part0 = prt6
  411. w6.Part1 = prt1
  412. w6.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  413. w6.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.6,0)
  414. local w7 = Instance.new("Weld")
  415. w7.Parent = prt7
  416. w7.Part0 = prt7
  417. w7.Part1 = prt1
  418. w7.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  419. w7.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, -0.6,0)
  420. local w8 = Instance.new("Weld")
  421. w8.Parent = prt8
  422. w8.Part0 = prt8
  423. w8.Part1 = Torso
  424. w8.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  425. w8.C0 = CFrame.Angles(math.rad(90), 0, math.rad(-80)) * CFrame.new(0, 0.9,-1)
  426. local w9 = Instance.new("Weld")
  427. w9.Parent = prt9
  428. w9.Part0 = prt9
  429. w9.Part1 = Torso
  430. w9.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  431. if torsc then
  432. w9.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 1,0)
  433. else
  434. w9.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(0, 1,0)
  435. end
  436. local w10 = Instance.new("Weld")
  437. w10.Parent = prt10
  438. w10.Part0 = prt10
  439. w10.Part1 = prt8
  440. w10.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  441. w10.C0 = CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) * CFrame.new(0, 0,2.3)
  442.  
  443. local RAP = Instance.new("Part")
  444. RAP.formFactor = 0
  445. RAP.CanCollide = false
  446. RAP.Name = "RAPart"
  447. RAP.Locked = true
  448. RAP.Size = Vector3.new(1,1,1)
  449. RAP.Parent = swordholder
  450. RAP.Transparency = 1
  451. local w = Instance.new("Weld")
  452. w.Parent = RAP
  453. w.Part0 = RAP
  454. w.Part1 = RightArm
  455. w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  456. w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 1, 0)
  457. function unequipweld()
  458. w1.Part1 = Torso
  459. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), math.rad(0)) * CFrame.new(0, 0,0)
  460. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180),math.rad(180), math.rad(0)) * CFrame.new(-1.15, -0.5, -0.6)
  461. end
  462. unequipweld()
  463. function equipweld()
  464. w1.Part0 = prt1
  465. w1.Part1 = RAP
  466. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  467. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  468. end
  469. function ss(parent,p) --Slash
  470. local SlashSound = Instance.new("Sound")
  471. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  472. SlashSound.Parent = parent
  473. SlashSound.Volume = .7
  474. SlashSound.Pitch = p
  475. SlashSound.PlayOnRemove = true
  476. coroutine.resume(coroutine.create(function()
  477. wait()
  478. SlashSound.Parent = nil
  479. end))
  480. end
  481. function uss(parent,p) --unsheath
  482. local SlashSound = Instance.new("Sound")
  483. SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  484. SlashSound.Parent = parent
  485. SlashSound.Volume = .7
  486. SlashSound.Pitch = p
  487. SlashSound.PlayOnRemove = true
  488. coroutine.resume(coroutine.create(function()
  489. wait()
  490. SlashSound.Parent = nil
  491. end))
  492. end
  493. function cs(parent,p) --Magic Charge
  494. local SlashSound = Instance.new("Sound")
  495. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2101137"
  496. SlashSound.Parent = parent
  497. SlashSound.Volume = .7
  498. SlashSound.Pitch = p
  499. SlashSound.PlayOnRemove = true
  500. coroutine.resume(coroutine.create(function()
  501. wait()
  502. SlashSound.Parent = nil
  503. end))
  504. end
  505. function ls(parent,p) --Lazer Sound
  506. local SlashSound = Instance.new("Sound")
  507. SlashSound.SoundId = "http://www.roblox.com/asset?id=1369158"
  508. SlashSound.Parent = parent
  509. SlashSound.Volume = .7
  510. SlashSound.Pitch = p
  511. SlashSound.PlayOnRemove = true
  512. coroutine.resume(coroutine.create(function()
  513. wait()
  514. SlashSound.Parent = nil
  515. end))
  516. end
  517. function ts(parent,p)
  518. local SlashSound = Instance.new("Sound")
  519. SlashSound.SoundId = "http://www.roblox.com/asset/?id=12222030"
  520. SlashSound.Parent = parent
  521. SlashSound.Volume = .7
  522. SlashSound.Pitch = p
  523. SlashSound.PlayOnRemove = true
  524. coroutine.resume(coroutine.create(function()
  525. wait()
  526. SlashSound.Parent = nil
  527. end))
  528. end
  529. function fs(parent,p) --Fire Sound
  530. local SlashSound = Instance.new("Sound")
  531. SlashSound.SoundId = "http://www.roblox.com/asset/?id=31758982"
  532. SlashSound.Parent = parent
  533. SlashSound.Volume = .7
  534. SlashSound.Pitch = p
  535. SlashSound.PlayOnRemove = true
  536. coroutine.resume(coroutine.create(function()
  537. wait()
  538. SlashSound.Parent = nil
  539. end))
  540. end
  541. function ms(parent,p) --Metal Cling Sound
  542. local SlashSound = Instance.new("Sound")
  543. SlashSound.SoundId = "rbxasset://sounds\\metal.ogg"
  544. SlashSound.Parent = parent
  545. SlashSound.Volume = 1
  546. SlashSound.Pitch = p
  547. SlashSound.PlayOnRemove = true
  548. coroutine.resume(coroutine.create(function()
  549. wait()
  550. SlashSound.Parent = nil
  551. end))
  552. end
  553. function bs(parent,p) --Berserk Sound
  554. local SlashSound = Instance.new("Sound")
  555. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2676305"
  556. SlashSound.Parent = parent
  557. SlashSound.Volume = 1
  558. SlashSound.Pitch = p
  559. SlashSound.PlayOnRemove = true
  560. coroutine.resume(coroutine.create(function()
  561. wait()
  562. SlashSound.Parent = nil
  563. end))
  564. end
  565. function hs(parent,p) --Arrow Hit Sound
  566. local SlashSound = Instance.new("Sound")
  567. SlashSound.SoundId = "http://www.roblox.com/asset/?id=16211030"
  568. SlashSound.Parent = parent
  569. SlashSound.Volume = 1
  570. SlashSound.Pitch = p
  571. SlashSound.PlayOnRemove = true
  572. coroutine.resume(coroutine.create(function()
  573. wait()
  574. SlashSound.Parent = nil
  575. end))
  576. end
  577. function as(parent,p) --Arrow Shoot Sound
  578. local SlashSound = Instance.new("Sound")
  579. SlashSound.SoundId = "http://www.roblox.com/asset/?id=16211041"
  580. SlashSound.Parent = parent
  581. SlashSound.Volume = 1
  582. SlashSound.Pitch = p
  583. SlashSound.PlayOnRemove = true
  584. coroutine.resume(coroutine.create(function()
  585. wait()
  586. SlashSound.Parent = nil
  587. end))
  588. end
  589. function ars(parent,p) --Arrow Reload Sound
  590. local SlashSound = Instance.new("Sound")
  591. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2697295"
  592. SlashSound.Parent = parent
  593. SlashSound.Volume = 1
  594. SlashSound.Pitch = p
  595. SlashSound.PlayOnRemove = true
  596. coroutine.resume(coroutine.create(function()
  597. wait()
  598. SlashSound.Parent = nil
  599. end))
  600. end
  601. --
  602. --
  603. function returndmg()
  604. mindamage = omindamage
  605. maxdamage = omaxdamage
  606. crtmaxdamage = ocrtmaxdamage
  607. end
  608. function subdmg(sub)
  609. mindamage = omindamage - sub
  610. maxdamage = omaxdamage - sub
  611. crtmaxdamage = ocrtmaxdamage - sub
  612. end
  613. function prcntdmg(sub)
  614. mindamage = math.floor(omindamage - (omindamage*(sub/100)))
  615. maxdamage = math.floor(omaxdamage - (omaxdamage*(sub/100)))
  616. crtmaxdamage = math.floor(ocrtmaxdamage - (ocrtmaxdamage*(sub/100)))
  617. end
  618. function tagHumanoid(humanoid, player)
  619. local creator_tag = Instance.new("ObjectValue")
  620. creator_tag.Value = player
  621. creator_tag.Name = "creator"
  622. creator_tag.Parent = humanoid
  623. end
  624. function untagHumanoid(humanoid)
  625. if humanoid ~= nil then
  626. local tag = humanoid:findFirstChild("creator")
  627. if tag ~= nil then
  628. tag.Parent = nil
  629. end
  630. end
  631. end
  632. local function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  633. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  634. end
  635. function hideanim()
  636. attack = true
  637. w1.Part0 = prt3
  638. w1.Part1 = RAP
  639. w1.C0 = CFrame.new(0,-1.75, 0.6) * CFrame.Angles(math.rad(-110), math.rad(0), math.rad(0))
  640. for i = 0 , 1 , 0.075 do
  641. wait()
  642. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(10+190*i),math.rad(0),math.rad(20-20*i))
  643. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  644. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(10),math.rad(0),math.rad(-20))
  645. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  646. w1.C0 = CFrame.new(0,-1.75+1.75*i, 0.6-0.6*i) * CFrame.Angles(math.rad(-110-70*i), math.rad(0), math.rad(0))
  647. end
  648. strmdl = "Bow"
  649. w1.Part0 = prt1
  650. unequipweld()
  651. for i = 0 , 1 , 0.1 do
  652. wait()
  653. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(200-200*i),math.rad(0),math.rad(0))
  654. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  655. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(10-10*i),math.rad(0),math.rad(-20+20*i))
  656. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  657. end
  658. RWRem()
  659. LWRem()
  660. attack = false
  661. end
  662. function equipanim()
  663. attack = true
  664. RWFunc()
  665. LWFunc()
  666. for i = 0 , 1 , 0.1 do
  667. wait()
  668. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(200*i),math.rad(0),math.rad(0))
  669. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  670. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10*i))
  671. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  672. end
  673. w1.Part0 = prt3
  674. w1.Part1 = RAP
  675. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  676. w1.C0 = CFrame.Angles(math.rad(-180), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  677. for i = 0 , 1 , 0.05 do
  678. wait()
  679. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(200-190*i),math.rad(0),math.rad(20*i))
  680. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  681. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(10*i),math.rad(0),math.rad(-10-10*i))
  682. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  683. w1.C0 = CFrame.new(0,-1.75*i, 0.6*i) * CFrame.Angles(math.rad(-180+70*i), math.rad(0), math.rad(0))
  684. if i > 0.5 then
  685. strmdl = "TopArm"
  686. end
  687. end
  688. equipweld()
  689. returnwelds()
  690. attack = false
  691. end
  692. function faketors()
  693. local T = Instance.new("Part")
  694. T.formFactor = 0
  695. T.CanCollide = false
  696. T.Name = "FakeTorso"
  697. T.Locked = true
  698. T.Size = Torso.Size
  699. T.Parent = swordholder
  700. T.Transparency = 1
  701. T.BrickColor = Torso.BrickColor
  702. for i,z in pairs(Character:GetChildren()) do
  703. if z.className == "CharacterMesh" then
  704. if z.BodyPart == Enum.BodyPart.Torso then
  705. local SM = Instance.new("SpecialMesh",T)
  706. SM.MeshId = "http://www.roblox.com/asset/?id=" .. z.MeshId
  707. if z.BaseTextureId ~= 0 then
  708. SM.TextureId = z.BaseTextureId
  709. elseif z.OverlayTextureId ~= 0 then
  710. SM.TextureId = z.OverlayTextureId
  711. else
  712. SM.TextureId = ""
  713. end
  714. end
  715. end
  716. end
  717. local wt = Instance.new("Weld")
  718. wt.Parent = T
  719. wt.Part0 = T
  720. wt.Part1 = Torso
  721. RW.Part0 = T
  722. LW.Part0 = T
  723. T.Transparency = 0
  724. Torso.Transparency = 1
  725. RHL.Part0 = T
  726. LHL.Part0 = T
  727. return wt,T
  728. end
  729. if (script.Parent.className ~= "HopperBin") then
  730. Tool = Instance.new("HopperBin")
  731. Tool.Parent = Backpack
  732. Tool.Name = ToolName
  733. script.Parent = Tool
  734. end
  735. Bin = script.Parent
  736. function damagesplat(dmg,hit,crit,blocked)
  737. local mo = Instance.new("Model")
  738. mo.Name = dmg
  739. local pa = Instance.new("Part",mo)
  740. pa.formFactor = 3
  741. pa.Size = Vector3.new(0.8,0.3,0.8)
  742. if crit then
  743. pa.BrickColor = BrickColor.new("Bright yellow")
  744. elseif not crit then
  745. pa.BrickColor = BrickColor.new("Bright red")
  746. end
  747. if blocked then pa.BrickColor = BrickColor.new("Bright blue") end
  748. pa.CFrame = CFrame.new(hit.Position) * CFrame.new(0, 3, 0)
  749. pa.Name = "Head"
  750. local hah = Instance.new("Humanoid")
  751. hah.Parent = mo
  752. hah.MaxHealth = 0
  753. hah.Health = 0
  754. local bp = Instance.new("BodyPosition")
  755. bp.P = 14000
  756. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  757. bp.position = hit.Position + Vector3.new(0, 5, 0)
  758. coroutine.resume(coroutine.create(function()
  759. wait()
  760. mo.Parent = workspace
  761. bp.Parent = pa
  762. wait(1.4)
  763. mo:remove()
  764. end))
  765. return pa
  766. end
  767. function damage(hum,dmg,critornot)
  768. local pa = damagesplat(dmg,hum.Torso,critornot)
  769. hum:TakeDamage(dmg)
  770. coroutine.resume(coroutine.create(function()
  771. tagHumanoid(hum,Player)
  772. wait(1)
  773. untagHumanoid(hum)
  774. end))
  775. return pa
  776. end
  777. function AddAmmo(add)
  778. Ammo = Ammo + add
  779. if Ammo > MaxAmmo then
  780. Ammo = MaxAmmo
  781. end
  782. end
  783. function ADmg(humm,hit)
  784. if CurrentArrow == "Normal" then
  785. if humm.Parent:findFirstChild("Block") ~= nil then
  786. if humm.Parent.Block.Value then
  787. damagesplat(0,humm.Torso,false,true)
  788. return
  789. end
  790. end
  791. prcntdmg(50)
  792. if critrandomizer ~= 1 then
  793. local rndmdamage = math.random(mindamage,maxdamage)
  794. damage(humm,rndmdamage,false)
  795. elseif critrandomizer == 1 then
  796. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  797. damage(humm,rndmdamage,true)
  798. end
  799. elseif CurrentArrow == "Poison" then
  800. if humm.Parent:findFirstChild("Block") ~= nil then
  801. if humm.Parent.Block.Value then
  802. damagesplat(0,humm.Torso,false,true)
  803. return
  804. end
  805. end
  806. prcntdmg(75)
  807. if critrandomizer ~= 1 then
  808. local rndmdamage = math.random(mindamage,maxdamage)
  809. damage(humm,rndmdamage,false)
  810. elseif critrandomizer == 1 then
  811. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  812. damage(humm,rndmdamage,true)
  813. end
  814. if math.random(1,5) == 1 then
  815. local poisoncount = math.random(2,10)
  816. coroutine.resume(coroutine.create(function()
  817. repeat
  818. wait(1.5)
  819. poisoncount = poisoncount - 1
  820. local rndmdamage = math.floor(math.random(mindamage,maxdamage)/2)
  821. local pa = damage(humm,rndmdamage,false)
  822. pa.BrickColor = BrickColor.new("Alder")
  823. until poisoncount <= 0
  824. end))
  825. end
  826. elseif CurrentArrow == "Fire" then
  827. if humm.Parent:findFirstChild("Block") ~= nil then
  828. if humm.Parent.Block.Value then
  829. damagesplat(0,humm.Torso,false,true)
  830. return
  831. end
  832. end
  833. prcntdmg(65)
  834. if critrandomizer ~= 1 then
  835. local rndmdamage = math.random(mindamage,maxdamage)
  836. damage(humm,rndmdamage,false)
  837. elseif critrandomizer == 1 then
  838. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  839. damage(humm,rndmdamage,true)
  840. end
  841. local firecount = math.random(5,15)
  842. if humm.Parent:findFirstChild("Fire") ~= nil then
  843. humm.Parent.Fire.Parent = nil
  844. end
  845. coroutine.resume(coroutine.create(function()
  846. local firemod = Instance.new("Model",humm.Parent)
  847. firemod.Name = "Fire"
  848. repeat
  849. wait(0.5+0.5*math.random())
  850. firecount = firecount - 1
  851. local rndmdamage = math.floor(math.random(0,maxdamage/5))
  852. local pa = damage(humm,rndmdamage,false)
  853. for i = 1 , 3 do
  854. wait()
  855. coroutine.resume(coroutine.create(function()
  856. local meshb1 = Instance.new("BlockMesh")
  857. meshb1.Scale = Vector3.new(1,1,1)
  858. local shellb1 = Instance.new("Part")
  859. meshb1.Parent = shellb1
  860. shellb1.Anchored = true
  861. shellb1.formFactor = 3
  862. shellb1.Size = Vector3.new(0.3,0.3,0.3) * (math.random(10,50)/10)
  863. shellb1.CFrame = CFrame.new(humm.Torso.CFrame.p) * CFrame.Angles(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
  864. shellb1.Parent = firemod
  865. shellb1.Transparency = 0
  866. if math.random(1,2) == 1 then
  867. shellb1.BrickColor = BrickColor.new("Bright red")
  868. else
  869. shellb1.BrickColor = BrickColor.new("Bright orange")
  870. end
  871. shellb1.CanCollide = false
  872. local incre = math.random(100,500)/1000
  873. for i = 0 , 1 , 0.1 do
  874. wait()
  875. shellb1.CFrame = shellb1.CFrame + Vector3.new(0,0.15+incre,0)
  876. shellb1.Transparency = 1*i
  877. meshb1.Scale = Vector3.new(1+1*i,1+1*i,1+1*i)
  878. end
  879. shellb1.Parent=nil
  880. end))
  881. end
  882. until firecount <= 0 or firemod.Parent == nil
  883. firemod.Parent = nil
  884. end))
  885. returndmg()
  886. end
  887. end
  888. function OT(hit) --Normal Damage
  889. if Hitdeb == 1 then return end
  890. if hit.Parent == nil then return end
  891. local hum = hit.Parent:findFirstChild("Humanoid") if hum ~= nil and hum ~= Character.Humanoid then
  892. if hum.Health <= 0 then return end
  893. if hit.Parent:findFirstChild("Block") ~= nil then
  894. if hit.Parent.Block.Value then
  895. damagesplat(0,hum.Torso,false,true)
  896. Hitdeb = 1
  897. if hit.Parent.Block:findFirstChild("BlockPower") ~= nil then
  898. if hit.Parent.Block.BlockPower.Value <= 1 then
  899. hit.Parent.Block.Value = false
  900. elseif hit.Parent.Block.BlockPower.Value > 1 then
  901. local critrandomizer = math.random(crtrate)
  902. if critrandomizer ~= 1 then
  903. hit.Parent.Block.BlockPower.Value = hit.Parent.Block.BlockPower.Value - blockbreaker
  904. elseif critrandomizer == 1 then
  905. hit.Parent.Block.BlockPower.Value = hit.Parent.Block.BlockPower.Value - blockbreaker + 2
  906. end
  907. end
  908. end
  909. return end end
  910. local critrandomizer = math.random(crtrate)
  911. if critrandomizer ~= 1 then
  912. local rndmdamage = math.random(mindamage,maxdamage)
  913. damage(hum,rndmdamage,false)
  914. elseif critrandomizer == 1 then
  915. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  916. damage(hum,rndmdamage,true)
  917. end
  918. --
  919. if CurrentArrow == "Poison" then
  920. if math.random(1,5) == 1 then
  921. local poisoncount = math.random(1,5)
  922. coroutine.resume(coroutine.create(function()
  923. repeat
  924. wait(1.5)
  925. poisoncount = poisoncount - 1
  926. local rndmdamage = math.floor(math.random(mindamage,maxdamage)/2)
  927. local pa = damage(hum,rndmdamage,false)
  928. pa.BrickColor = BrickColor.new("Alder")
  929. until poisoncount <= 0
  930. end))
  931. end
  932. elseif CurrentArrow == "Fire" then
  933. local firecount = math.random(3,7)
  934. if hum.Parent:findFirstChild("Fire") ~= nil then
  935. hum.Parent.Fire.Parent = nil
  936. end
  937. coroutine.resume(coroutine.create(function()
  938. local firemod = Instance.new("Model",hum.Parent)
  939. firemod.Name = "Fire"
  940. repeat
  941. wait(0.5+0.5*math.random())
  942. firecount = firecount - 1
  943. local rndmdamage = math.floor(math.random(0,maxdamage/5))
  944. local pa = damage(hum,rndmdamage,false)
  945. for i = 1 , 3 do
  946. wait()
  947. coroutine.resume(coroutine.create(function()
  948. local meshb1 = Instance.new("BlockMesh")
  949. meshb1.Scale = Vector3.new(1,1,1)
  950. local shellb1 = Instance.new("Part")
  951. meshb1.Parent = shellb1
  952. shellb1.Anchored = true
  953. shellb1.formFactor = 3
  954. shellb1.Size = Vector3.new(0.3,0.3,0.3) * (math.random(10,50)/10)
  955. shellb1.CFrame = CFrame.new(hum.Torso.CFrame.p) * CFrame.Angles(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
  956. shellb1.Parent = firemod
  957. shellb1.Transparency = 0
  958. if math.random(1,2) == 1 then
  959. shellb1.BrickColor = BrickColor.new("Bright red")
  960. else
  961. shellb1.BrickColor = BrickColor.new("Bright orange")
  962. end
  963. shellb1.CanCollide = false
  964. local incre = math.random(100,500)/1000
  965. for i = 0 , 1 , 0.1 do
  966. wait()
  967. shellb1.CFrame = shellb1.CFrame + Vector3.new(0,0.15+incre,0)
  968. shellb1.Transparency = 1*i
  969. meshb1.Scale = Vector3.new(1+1*i,1+1*i,1+1*i)
  970. end
  971. shellb1.Parent=nil
  972. end))
  973. end
  974. until firecount <= 0 or firemod.Parent == nil
  975. firemod.Parent = nil
  976. end))
  977. end
  978. --
  979. Hitdeb = 1
  980. end
  981. end
  982. function AoE(p,magnitude)
  983. local c = game.Workspace:GetChildren();
  984. for i = 1, #c do
  985. local hum = c[i]:findFirstChild("Humanoid")
  986. if hum ~= nil and hum.Health ~= 0 then
  987. local head = c[i]:findFirstChild("Head");
  988. if head ~= nil then
  989. local mag = (head.Position - p).magnitude;
  990. if mag <= magnitude and c[i].Name ~= Character.Name then
  991. local foundd = false
  992. for ii = 1 , #AoETrue do
  993. if AoETrue[ii] == c[i].Name then
  994. foundd = true
  995. end
  996. end
  997. if foundd then
  998. end
  999. --
  1000. if not foundd then
  1001. local critrandomizer = math.random(crtrate)
  1002. if critrandomizer ~= 1 then
  1003. local rndmdamage = math.random(mindamage,maxdamage)
  1004. damage(hum,rndmdamage,false)
  1005. elseif critrandomizer == 1 then
  1006. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  1007. damage(hum,rndmdamage,true)
  1008. end
  1009. table.insert(AoETrue,c[i].Name)
  1010. end
  1011. end
  1012. end
  1013. end
  1014. end
  1015. for ii = 1 , #AoETrue do
  1016. table.remove(AoETrue,#AoETrue)
  1017. end
  1018. end
  1019. --
  1020. --
  1021. function effect(Color,Ref,LP,P1)
  1022. local effectsmsh = Instance.new("BlockMesh")
  1023. effectsmsh.Scale = Vector3.new(1,1,1)
  1024. effectsmsh.Name = "Mesh"
  1025. local effectsg = Instance.new("Part")
  1026. effectsg.formFactor = 3
  1027. effectsg.CanCollide = false
  1028. effectsg.Name = "Eff"
  1029. effectsg.Locked = true
  1030. effectsg.Anchored = true
  1031. effectsg.Size = Vector3.new(0.2,1,0.2)
  1032. effectsg.Parent = swordholder
  1033. effectsmsh.Parent = effectsg
  1034. effectsg.BrickColor = BrickColor.new(Color)
  1035. effectsg.Reflectance = Ref
  1036. local point1 = P1
  1037. local mg = (LP.p - point1.p).magnitude
  1038. effectsg.Size = Vector3.new(0.2,mg,0.2)
  1039. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  1040. coroutine.resume(coroutine.create(function()
  1041. for i = 0 , 1 , 0.1 do
  1042. wait()
  1043. effectsg.Transparency = 1*i
  1044. effectsmsh.Scale = Vector3.new(1-1*i,1,1-1*i)
  1045. end
  1046. wait()
  1047. effectsg.Parent = nil
  1048. end))
  1049. end
  1050. --
  1051. con = nil
  1052. function dmgcnnct()
  1053. if con ~= nil then
  1054. con:disconnect()
  1055. Hitdeb = 0
  1056. end
  1057. con = prt11.Touched:connect(OT)
  1058. end
  1059. function dmgdc()
  1060. if con ~= nil then
  1061. con:disconnect()
  1062. Hitdeb = 0
  1063. end
  1064. end
  1065. function rptddmg(value,des,inc)
  1066. coroutine.resume(coroutine.create(function()
  1067. repeat
  1068. wait(inc)
  1069. Hitdeb = 0
  1070. until value == des
  1071. end))
  1072. end
  1073. function atktype(s,e)
  1074. coroutine.resume(coroutine.create(function ()
  1075. attacktype = e
  1076. wait(0.25)
  1077. attacktype = s
  1078. end))
  1079. end
  1080. function shoottrail(mouse) -- here
  1081. local spreadvector = (Vector3.new(math.random(-spread,spread),math.random(-spread,spread),math.random(-spread,spread)) / 100) * (prt1.Position-mouse.Hit.p).magnitude/100
  1082. local dir = CFrame.new((prt1.Position+mouse.Hit.p)/2,mouse.Hit.p+spreadvector) -- to here
  1083. local hit,pos = rayCast(prt1.Position,dir.lookVector,10,Character) -- here
  1084. local rangepos = range
  1085. local function drawtrail(From,To)
  1086. local effectsmsh = Instance.new("CylinderMesh")
  1087. effectsmsh.Scale = Vector3.new(1,1,1)
  1088. effectsmsh.Name = "Mesh"
  1089. local effectsg = Instance.new("Part")
  1090. effectsg.formFactor = 3
  1091. effectsg.CanCollide = false
  1092. effectsg.Name = "Eff"
  1093. effectsg.Locked = true
  1094. effectsg.Anchored = true
  1095. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  1096. effectsg.Parent = swordholder
  1097. effectsmsh.Parent = effectsg
  1098. effectsg.BrickColor = arrowtrail
  1099. effectsg.Reflectance = 0.25
  1100. local LP = From
  1101. local point1 = To
  1102. local mg = (LP - point1).magnitude
  1103. effectsmsh.Scale = Vector3.new(1,mg*5,1)
  1104. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  1105. coroutine.resume(coroutine.create(function()
  1106. for i = 0 , 1 , 0.1 do
  1107. wait()
  1108. effectsg.Transparency = 1*i
  1109. effectsmsh.Scale = Vector3.new(1-1*i,mg*5,1-1*i)
  1110. end
  1111. effectsg.Parent = nil
  1112. end))
  1113. end
  1114. local newpos = prt1.Position
  1115. local inc = rangepower
  1116. repeat
  1117. wait() wait()
  1118. rangepos = rangepos - 10
  1119. dir = dir * CFrame.Angles(math.rad(-1),0,0)
  1120. hit,pos = rayCast(newpos,dir.lookVector,inc,Character)
  1121. drawtrail(newpos,pos)
  1122. newpos = newpos + (dir.lookVector * inc)
  1123. if inc >= 20 then
  1124. inc = inc - 10
  1125. end
  1126. if hit ~= nil then
  1127. rangepos = 0
  1128. end
  1129. until rangepos <= 0
  1130. if hit ~= nil then
  1131. hs(Head,1)
  1132. local effectsmsh = Instance.new("SpecialMesh")
  1133. effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356"
  1134. effectsmsh.TextureId = "http://www.roblox.com/asset/?id=15886781"
  1135. effectsmsh.Scale = Vector3.new(1,1,2.5)
  1136. local effectsg = Instance.new("Part")
  1137. effectsg.formFactor = 3
  1138. effectsg.CanCollide = false
  1139. effectsg.Name = "Arrow"
  1140. effectsg.Locked = true
  1141. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  1142. effectsg.Parent = swordholder
  1143. effectsmsh.Parent = effectsg
  1144. effectsg.CFrame = CFrame.new(newpos,pos) + CFrame.new(newpos,pos).lookVector*2.5*2
  1145. local weld = Instance.new("Weld")
  1146. weld.Part0 = effectsg
  1147. weld.Part1 = hit
  1148. local HitPos = effectsg.Position + CFrame.new(newpos,pos).lookVector*0.75
  1149. local CJ = CFrame.new(HitPos)
  1150. local C0 = effectsg.CFrame:inverse() * CJ
  1151. local C1 = hit.CFrame:inverse() * CJ
  1152. weld.C0 = C0
  1153. weld.C1 = C1
  1154. weld.Parent = effectsg
  1155. coroutine.resume(coroutine.create(function()
  1156. wait(15)
  1157. effectsg.Parent = nil
  1158. end))
  1159. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1160. hum = hit.Parent.Humanoid
  1161. ADmg(hum,hit)
  1162. elseif hit.Parent.Parent ~= nil and hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  1163. hum = hit.Parent.Parent.Humanoid
  1164. ADmg(hum,hit)
  1165. end
  1166. end
  1167. end
  1168. function Ready(z)
  1169. if Ammo <= 0 then Reload() return end
  1170. attack = true
  1171. local wt,t = faketors()
  1172. w9.Part1 = t
  1173. w8.Part1 = t
  1174. Character.Humanoid.WalkSpeed = 5
  1175. for i = 0 , 1 , 0.2 do
  1176. wait()
  1177. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(10+80*i),math.rad(0),math.rad(20+60*i))
  1178. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1179. LW.C0 = CFrame.new(-1.5+1.5*i, 0.5, -1*i) * CFrame.Angles(math.rad(10+80*i),math.rad(0),math.rad(-20+110*i))
  1180. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1181. w1.C0 = CFrame.Angles(math.rad(-90), 0, math.rad(0)) * CFrame.new(0.25*i, 0, 0)
  1182. wt.C0 = CFrame.Angles(0, math.rad(-80*i), 0)
  1183. w11.C0 = CFrame.Angles(math.rad(-90*i),0,math.rad(90-95*i)) * CFrame.new(0,1+1.5*i,0)
  1184. end
  1185. strmdl = "LeftArm"
  1186. for i = 0 , 1 , 0.25 do
  1187. wait()
  1188. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(80))
  1189. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1190. LW.C0 = CFrame.new(-1.5*i, 0.5, -1) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(90))
  1191. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1192. w1.C0 = CFrame.Angles(math.rad(-90), 0, math.rad(0)) * CFrame.new(0.25, 0, 0)
  1193. wt.C0 = CFrame.Angles(0, math.rad(-80), 0)
  1194. end
  1195. repeat
  1196. wait()
  1197. until not keyhold
  1198. strmdl = "Bow"
  1199. as(Head,1)
  1200. --ss(Head,2)
  1201. for i = 1 , Ammo do
  1202. coroutine.resume(coroutine.create(function()
  1203. shoottrail(z)
  1204. end))
  1205. end
  1206. Ammo = 0
  1207. for i = 0 , 1 , 0.2 do
  1208. wait()
  1209. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90+10*i),math.rad(0),math.rad(80))
  1210. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1211. LW.C0 = CFrame.new(-1.5, 0.5, -1) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(90-45*i))
  1212. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-45*i), 0, 0)
  1213. w1.C0 = CFrame.Angles(math.rad(-90), 0, math.rad(0)) * CFrame.new(0.25, 0, 0)
  1214. wt.C0 = CFrame.Angles(0, math.rad(-80+40*i), 0)
  1215. end
  1216. for i = 0 , 1 , 0.2 do
  1217. wait()
  1218. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(100+10*i),math.rad(0),math.rad(80))
  1219. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1220. LW.C0 = CFrame.new(-1.5, 0.5, -1) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(45))
  1221. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-45-10*i), 0, 0)
  1222. w1.C0 = CFrame.Angles(math.rad(-90), 0, math.rad(0)) * CFrame.new(0.25, 0, 0)
  1223. wt.C0 = CFrame.Angles(0, math.rad(-40+40*i), 0)
  1224. end
  1225. strmdl = "TopArm"
  1226. w11.C0 = CFrame.Angles(0,0,math.rad(90)) * CFrame.new(0,1,0)
  1227. w9.Part1 = Torso
  1228. w8.Part1 = Torso
  1229. RW.Part0 = Torso
  1230. LW.Part0 = Torso
  1231. Torso.Transparency = 0
  1232. RHL.Part0 = Torso
  1233. LHL.Part0 = Torso
  1234. t.Parent = nil
  1235. Character.Humanoid.WalkSpeed = 14
  1236. for i = 0 , 1 , 0.2 do
  1237. wait()
  1238. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(110-100*i),math.rad(0),math.rad(80-60*i))
  1239. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1240. LW.C0 = CFrame.new(-1.5, 0.5, -1+1*i) * CFrame.Angles(math.rad(90-80*i),math.rad(0),math.rad(45-65*i))
  1241. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-55+45*i), 0, 0)
  1242. w1.C0 = CFrame.Angles(math.rad(-90), 0, math.rad(0)) * CFrame.new(0.25-0.25*i, 0, 0)
  1243. end
  1244. attack = false
  1245. end
  1246. function Reload()
  1247. attack = true
  1248. for i = 0 , 1 , 0.2 do
  1249. wait()
  1250. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(10-20*i),math.rad(0),math.rad(20))
  1251. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1252. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(10-55*i),math.rad(0),math.rad(-20-10*i))
  1253. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1254. w11.C0 = CFrame.Angles(math.rad(90*i),0,math.rad(90-15*i)) * CFrame.new(0,1,0)
  1255. end
  1256. AddAmmo(Ammoregen)
  1257. for i = 0 , 1 , 0.2 do
  1258. wait()
  1259. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-10),math.rad(0),math.rad(20))
  1260. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1261. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-45),math.rad(0),math.rad(-30-10*i))
  1262. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1263. w11.C0 = CFrame.Angles(math.rad(90-90*i),math.rad(-90*i),math.rad(75)) * CFrame.new(0,1,0)
  1264. end
  1265. for i = 0 , 1 , 0.2 do
  1266. wait()
  1267. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-10+20*i),math.rad(0),math.rad(20))
  1268. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1269. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-45+55*i),math.rad(0),math.rad(-40+20*i))
  1270. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1271. w11.C0 = CFrame.Angles(math.rad(0),math.rad(-90+90*i),math.rad(75+15*i)) * CFrame.new(0,1,0)
  1272. end
  1273. attack = false
  1274. end
  1275. function NormalArrows()
  1276. attack = true
  1277. strmdl = "Bow"
  1278. for i = 0 , 1 , 0.1 do
  1279. wait()
  1280. RW.C0 = CFrame.new(1.5-0.5*i, 0.5, -1*i) * CFrame.Angles(math.rad(10+80*i),math.rad(0),math.rad(20-65*i))
  1281. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1282. LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, -1*i) * CFrame.Angles(math.rad(10+80*i),math.rad(0),math.rad(-20+65*i))
  1283. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-25*i), 0, 0)
  1284. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(-45*i)) * CFrame.new(0, 0, 0)
  1285. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-10*i),0,0)
  1286. end
  1287. ars(Head,0.5)
  1288. for i = 0 , 1 , 0.2 do
  1289. wait()
  1290. RW.C0 = CFrame.new(1, 0.5, -1) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-45))
  1291. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(5*i), 0, 0)
  1292. LW.C0 = CFrame.new(-1, 0.5, -1) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(45))
  1293. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-25+30*i), 0, 0)
  1294. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(-45)) * CFrame.new(0, 0, 0)
  1295. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-10+15*i),0,0)
  1296. end
  1297. for i = 0 , 1 , 0.1 do
  1298. wait()
  1299. RW.C0 = CFrame.new(1+0.5*i, 0.5, -1+1*i) * CFrame.Angles(math.rad(90-80*i),math.rad(0),math.rad(-45+65*i))
  1300. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(5-5*i), 0, 0)
  1301. LW.C0 = CFrame.new(-1-0.5*i, 0.5, -1+1*i) * CFrame.Angles(math.rad(90-80*i),math.rad(0),math.rad(45-65*i))
  1302. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(5-5*i), 0, 0)
  1303. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(-45+45*i)) * CFrame.new(0, 0, 0)
  1304. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5-5*i),0,0)
  1305. end
  1306. CurrentArrow = "Normal"
  1307. arrowtrail = BrickColor.new("White")
  1308. strmdl = "TopArm"
  1309. attack = false
  1310. end
  1311. function PoisonArrows()
  1312. attack = true
  1313. strmdl = "Bow"
  1314. for i = 0 , 1 , 0.1 do
  1315. wait()
  1316. RW.C0 = CFrame.new(1.5-0.5*i, 0.5, -1*i) * CFrame.Angles(math.rad(10+80*i),math.rad(0),math.rad(20-65*i))
  1317. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1318. LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, -1*i) * CFrame.Angles(math.rad(10+80*i),math.rad(0),math.rad(-20+65*i))
  1319. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-25*i), 0, 0)
  1320. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(-45*i)) * CFrame.new(0, 0, 0)
  1321. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-10*i),0,0)
  1322. end
  1323. ars(Head,0.5)
  1324. for i = 0 , 1 , 0.2 do
  1325. wait()
  1326. RW.C0 = CFrame.new(1, 0.5, -1) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-45))
  1327. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(5*i), 0, 0)
  1328. LW.C0 = CFrame.new(-1, 0.5, -1) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(45))
  1329. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-25+30*i), 0, 0)
  1330. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(-45)) * CFrame.new(0, 0, 0)
  1331. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-10+15*i),0,0)
  1332. end
  1333. for i = 0 , 1 , 0.1 do
  1334. wait()
  1335. RW.C0 = CFrame.new(1+0.5*i, 0.5, -1+1*i) * CFrame.Angles(math.rad(90-80*i),math.rad(0),math.rad(-45+65*i))
  1336. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(5-5*i), 0, 0)
  1337. LW.C0 = CFrame.new(-1-0.5*i, 0.5, -1+1*i) * CFrame.Angles(math.rad(90-80*i),math.rad(0),math.rad(45-65*i))
  1338. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(5-5*i), 0, 0)
  1339. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(-45+45*i)) * CFrame.new(0, 0, 0)
  1340. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5-5*i),0,0)
  1341. end
  1342. CurrentArrow = "Poison"
  1343. arrowtrail = BrickColor.new("Bright violet")
  1344. strmdl = "TopArm"
  1345. attack = false
  1346. coroutine.resume(coroutine.create(function()
  1347. repeat
  1348. wait(0.25+0.75*math.random())
  1349. if Ammo ~= 0 then
  1350. local meshb1 = Instance.new("SpecialMesh")
  1351. meshb1.Scale = Vector3.new(1,1,1)
  1352. meshb1.MeshType = "Sphere"
  1353. local shellb1 = Instance.new("Part")
  1354. meshb1.Parent = shellb1
  1355. shellb1.Anchored = true
  1356. shellb1.formFactor = 3
  1357. shellb1.Size = Vector3.new(0.3,0.3,0.3)
  1358. shellb1.CFrame = CFrame.new((prt11.CFrame * CFrame.new(0,0,2)).p)
  1359. shellb1.Parent = swordholder
  1360. shellb1.Transparency = 0
  1361. shellb1.BrickColor = BrickColor.new("Alder")
  1362. shellb1.CanCollide = false
  1363. for i = 0 , 1 , 0.1 do
  1364. wait()
  1365. shellb1.CFrame = shellb1.CFrame + Vector3.new(0,-0.15,0)
  1366. shellb1.Transparency = 1*i
  1367. meshb1.Scale = Vector3.new(1,1+3*i,1)
  1368. end
  1369. shellb1.Parent=nil
  1370. end
  1371. until CurrentArrow ~= "Poison"
  1372. end))
  1373. end
  1374. function FireArrows()
  1375. attack = true
  1376. strmdl = "Bow"
  1377. for i = 0 , 1 , 0.1 do
  1378. wait()
  1379. RW.C0 = CFrame.new(1.5-0.5*i, 0.5, -1*i) * CFrame.Angles(math.rad(10+80*i),math.rad(0),math.rad(20-65*i))
  1380. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1381. LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, -1*i) * CFrame.Angles(math.rad(10+80*i),math.rad(0),math.rad(-20+65*i))
  1382. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-25*i), 0, 0)
  1383. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(-45*i)) * CFrame.new(0, 0, 0)
  1384. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-10*i),0,0)
  1385. end
  1386. ars(Head,0.5)
  1387. for i = 0 , 1 , 0.2 do
  1388. wait()
  1389. RW.C0 = CFrame.new(1, 0.5, -1) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-45))
  1390. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(5*i), 0, 0)
  1391. LW.C0 = CFrame.new(-1, 0.5, -1) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(45))
  1392. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-25+30*i), 0, 0)
  1393. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(-45)) * CFrame.new(0, 0, 0)
  1394. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-10+15*i),0,0)
  1395. end
  1396. for i = 0 , 1 , 0.1 do
  1397. wait()
  1398. RW.C0 = CFrame.new(1+0.5*i, 0.5, -1+1*i) * CFrame.Angles(math.rad(90-80*i),math.rad(0),math.rad(-45+65*i))
  1399. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(5-5*i), 0, 0)
  1400. LW.C0 = CFrame.new(-1-0.5*i, 0.5, -1+1*i) * CFrame.Angles(math.rad(90-80*i),math.rad(0),math.rad(45-65*i))
  1401. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(5-5*i), 0, 0)
  1402. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(-45+45*i)) * CFrame.new(0, 0, 0)
  1403. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5-5*i),0,0)
  1404. end
  1405. CurrentArrow = "Fire"
  1406. arrowtrail = BrickColor.new("Bright red")
  1407. strmdl = "TopArm"
  1408. attack = false
  1409. coroutine.resume(coroutine.create(function()
  1410. repeat
  1411. wait(0.1+0.15*math.random())
  1412. if Ammo ~= 0 then
  1413. coroutine.resume(coroutine.create(function()
  1414. local meshb1 = Instance.new("BlockMesh")
  1415. meshb1.Scale = Vector3.new(1,1,1)
  1416. local shellb1 = Instance.new("Part")
  1417. meshb1.Parent = shellb1
  1418. shellb1.Anchored = true
  1419. shellb1.formFactor = 3
  1420. shellb1.Size = Vector3.new(0.3,0.3,0.3) * (math.random(10,50)/10)
  1421. shellb1.CFrame = CFrame.new((prt11.CFrame * CFrame.new(0,0,2)).p) * CFrame.Angles(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
  1422. shellb1.Parent = swordholder
  1423. shellb1.Transparency = 0
  1424. if math.random(1,2) == 1 then
  1425. shellb1.BrickColor = BrickColor.new("Bright red")
  1426. else
  1427. shellb1.BrickColor = BrickColor.new("Bright orange")
  1428. end
  1429. shellb1.CanCollide = false
  1430. local incre = math.random(100,500)/1000
  1431. for i = 0 , 1 , 0.1 do
  1432. wait()
  1433. shellb1.CFrame = shellb1.CFrame + Vector3.new(0,0.15+incre,0)
  1434. shellb1.Transparency = 1*i
  1435. meshb1.Scale = Vector3.new(1+1*i,1+1*i,1+1*i)
  1436. end
  1437. shellb1.Parent=nil
  1438. end))
  1439. end
  1440. until CurrentArrow ~= "Fire"
  1441. end))
  1442. end
  1443. function MeleeArrow()
  1444. if Ammo == 0 then return end
  1445. attack = true
  1446. ss(Head,1)
  1447. for i = 0 , 1 , 0.2 do
  1448. wait()
  1449. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(10+35*i),math.rad(0),math.rad(20+50*i))
  1450. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1451. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(10+80*i),math.rad(0),math.rad(-20-90*i))
  1452. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(90*i), 0)
  1453. w11.C0 = CFrame.Angles(math.rad(0),0,math.rad(90)) * CFrame.new(0,1,-1*i)
  1454. w11.C1 = CFrame.Angles(math.rad(0),0,math.rad(0))
  1455. end
  1456. prcntdmg(25)
  1457. dmgcnnct()
  1458. local lp = prt11.CFrame * CFrame.new(0,0,2)
  1459. for i = 0 , 1 , 0.25 do
  1460. wait()
  1461. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(45),math.rad(0),math.rad(70+40*i))
  1462. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1463. LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, -1*i) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110+155*i))
  1464. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), 0)
  1465. w11.C0 = CFrame.Angles(math.rad(0),0,math.rad(90)) * CFrame.new(0,1,-1)
  1466. w11.C1 = CFrame.Angles(math.rad(0),0,math.rad(0))
  1467. local Point = prt11.CFrame * CFrame.new(0,0,2)
  1468. effect("White",0.5,lp,Point)
  1469. lp = Point
  1470. end
  1471. for i = 0 , 1 , 0.2 do
  1472. wait()
  1473. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(45),math.rad(0),math.rad(110+30*i))
  1474. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1475. LW.C0 = CFrame.new(-1+0.5*i, 0.5, -1) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(45+45*i))
  1476. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), 0)
  1477. w11.C0 = CFrame.Angles(math.rad(0),0,math.rad(90)) * CFrame.new(0,1,-1+1*i)
  1478. w11.C1 = CFrame.Angles(math.rad(90*i),0,math.rad(0)) * CFrame.new(0,1*i,2*i)
  1479. local Point = prt11.CFrame * CFrame.new(0,0,2)
  1480. effect("White",0.5,lp,Point)
  1481. lp = Point
  1482. end
  1483. for i = 0 , 1 , 0.1 do
  1484. wait()
  1485. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(45-35*i),math.rad(0),math.rad(140-120*i))
  1486. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1487. LW.C0 = CFrame.new(-0.5-1*i, 0.5, -1+1*i) * CFrame.Angles(math.rad(90-80*i),math.rad(0),math.rad(90-110*i))
  1488. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(90-90*i), 0)
  1489. w11.C0 = CFrame.Angles(math.rad(0),0,math.rad(90)) * CFrame.new(0,1,0)
  1490. w11.C1 = CFrame.Angles(math.rad(90-90*i),0,math.rad(0)) * CFrame.new(0,1-1*i,2-2*i)
  1491. end
  1492. dmgdc()
  1493. returndmg()
  1494. attack = false
  1495. end
  1496. function returnwelds()
  1497. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(10),math.rad(0),math.rad(20))
  1498. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1499. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(10),math.rad(0),math.rad(-20))
  1500. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1501. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  1502. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 0, 0)
  1503. RWL.C1 = CFrame.new(0.5, 1, 0)
  1504. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, 0, 0)
  1505. LWL.C1 = CFrame.new(-0.5, 1, 0)
  1506. Neck.C0 = neckcf0
  1507. end
  1508. if key == "z" then
  1509. MeleeArrow()
  1510. end
  1511. keyhold = false
  1512. function ob1d(mouse)
  1513. hold = true
  1514. if attack then return end
  1515. keyhold = true
  1516. Ready(mouse)
  1517. end
  1518. function ob1u(mouse)
  1519. keyhold = false
  1520. end
  1521. buttonhold = false
  1522. function key(key,z)
  1523. if attack then return end
  1524. if key == "x" then -- f original key
  1525. Reload()
  1526. end
  1527. if key == "q" then
  1528. MeleeArrow()
  1529. end
  1530. if key == "e" then
  1531. NormalArrows()
  1532. end
  1533. if key == "r" then
  1534. PoisonArrows()
  1535. end
  1536. if key == "t" then
  1537. FireArrows()
  1538. end
  1539. end
  1540. function key2(key)
  1541. if key == "x" then
  1542. buttonhold = false
  1543. end
  1544. end
  1545. function s(mouse)
  1546. repeat wait() until not attack
  1547. repeat wait() until not ev.Value -- here
  1548. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1549. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1550. mouse.KeyDown:connect(function(ke) key(ke,mouse) end)
  1551. mouse.KeyUp:connect(key2)
  1552. equipanim()
  1553. ev.Value = true
  1554. end
  1555. function ds(z)
  1556. keyhold = false
  1557. repeat wait() until not attack
  1558. repeat wait() until ev.Value
  1559. hideanim()
  1560. wait(0.1)
  1561. ev.Value = false
  1562. end
  1563. Bin.Selected:connect(s)
  1564. Bin.Deselected:connect(ds)
  1565. if PlayerGui:findFirstChild("AmmoMeter") ~= nil then
  1566. PlayerGui:findFirstChild("AmmoMeter").Parent = nil
  1567. end
  1568. coroutine.resume(coroutine.create(function()
  1569. local SG = Instance.new("ScreenGui",PlayerGui)
  1570. SG.Name = "AmmoMeter"
  1571. local frame = Instance.new("Frame",SG)
  1572. frame.Size = UDim2.new(0.2,0,0.1,0)
  1573. frame.Position = UDim2.new(0.5-0.1,0,0.05,0)
  1574. frame.BackgroundColor3 = BrickColor.new("Brown").Color
  1575. local Ammotext = Instance.new("TextLabel",frame)
  1576. Ammotext.Size = UDim2.new(1,0,0.35,0)
  1577. Ammotext.BackgroundTransparency = 1
  1578. Ammotext.Text = "Ammo"
  1579. Ammotext.FontSize = "Size18"
  1580. Ammotext.TextColor3 = BrickColor.new("White").Color
  1581. local backing = Instance.new("ImageLabel",frame)
  1582. backing.Size = UDim2.new(0.8,0,0.45,0)
  1583. backing.Image = "http://www.roblox.com/asset/?id=48965808"
  1584. backing.Position = UDim2.new(0.1,0,0.45,0)
  1585. backing.BackgroundColor3 = BrickColor.new("Black").Color
  1586. local img = Instance.new("ImageLabel",backing)
  1587. img.Size = UDim2.new(1,0,1,0)
  1588. img.Image = "http://www.roblox.com/asset/?id=48965808"
  1589. img.Position = UDim2.new(0,0,0,0)
  1590. img.BackgroundColor3 = BrickColor.new("Brown").Color
  1591. local percent = Instance.new("TextLabel",backing)
  1592. percent.Size = UDim2.new(1,0,1,0)
  1593. percent.BackgroundTransparency = 1
  1594. percent.TextColor3 = BrickColor.new("White").Color
  1595. percent.Text = Ammo.."/".. MaxAmmo
  1596. percent.FontSize = "Size18"
  1597. local currentam = Instance.new("TextLabel",frame)
  1598. currentam.Size = UDim2.new(0.5,0,0.25,0)
  1599. currentam.Position = UDim2.new(0,0,1,0)
  1600. currentam.BackgroundTransparency = 0
  1601. currentam.BackgroundColor3 = BrickColor.new("Brown").Color
  1602. currentam.TextColor3 = BrickColor.new("White").Color
  1603. currentam.Text = CurrentArrow
  1604. currentam.FontSize = "Size18"
  1605. repeat
  1606. wait()
  1607. pcall(function()
  1608. img.Size = UDim2.new(1*(Ammo/MaxAmmo),0,1,0)
  1609. percent.Text = Ammo.."/".. MaxAmmo
  1610. currentam.Text = CurrentArrow
  1611. end)
  1612. until SG.Parent == nil
  1613. end))
  1614.  
  1615.  
  1616.  
  1617.  
  1618.  
  1619.  
  1620.  
  1621.  
  1622.  
  1623. -- the claws
  1624.  
  1625.  
  1626.  
  1627.  
  1628.  
  1629.  
  1630.  
  1631.  
  1632. Player=game:GetService("Players").LocalPlayer
  1633. Character=Player.Character
  1634. PlayerGui=Player.PlayerGui
  1635. Backpack=Player.Backpack
  1636. Torso=Character.Torso
  1637. Head=Character.Head
  1638. Humanoid=Character.Humanoid
  1639. m=Instance.new('Model',Character)
  1640. LeftArm=Character["Left Arm"]
  1641. LeftLeg=Character["Left Leg"]
  1642. RightArm=Character["Right Arm"]
  1643. RightLeg=Character["Right Leg"]
  1644. LS=Torso["Left Shoulder"]
  1645. LH=Torso["Left Hip"]
  1646. RS=Torso["Right Shoulder"]
  1647. RH=Torso["Right Hip"]
  1648. Face = Head.face
  1649. Neck=Torso.Neck
  1650. it=Instance.new
  1651. attacktype=1
  1652. vt=Vector3.new
  1653. cf=CFrame.new
  1654. euler=CFrame.fromEulerAnglesXYZ
  1655. angles=CFrame.Angles
  1656. cloaked=false
  1657. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1658. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1659. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1660. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1661. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1662. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1663. RootPart=Character.HumanoidRootPart
  1664. RootJoint=RootPart.RootJoint
  1665. RootCF=euler(-1.57,0,3.14)
  1666. attack = false
  1667. attackdebounce = false
  1668. deb=false
  1669. equipped=true
  1670. hand=false
  1671. MMouse=nil
  1672. combo=0
  1673. mana=0
  1674. trispeed=1
  1675. pathtrans=.7
  1676. attackmode='none'
  1677. local idle=0
  1678. local Anim="Idle"
  1679. local Effects={}
  1680. local gun=false
  1681. local shoot=false
  1682. player=nil
  1683. cloak=false
  1684.  
  1685. --this part bellow delet maybe
  1686.  
  1687. local HBill = Instance.new("BillboardGui",game.Players.LocalPlayer.Character.Head)
  1688. local HMain, HBarBack, HBar = Instance.new("Frame", HBill), Instance.new("Frame"), Instance.new("Frame")
  1689. local HHealth, HName = Instance.new("TextLabel", HBarBack), Instance.new("TextLabel")
  1690. HBill.Size = UDim2.new(15,0,2.2,0)
  1691. HBill.Name = "Health Display"
  1692. HBill.StudsOffset = Vector3.new(0,7,0)
  1693. HBill.AlwaysOnTop = true
  1694. HBill.Enabled = true
  1695. HMain.BackgroundColor3 = Color3.new(0, 0, 0)
  1696. HMain.BackgroundTransparency = 1
  1697. HMain.Size = UDim2.new(1,0,1,0)
  1698. HBarBack.Parent = HMain
  1699. HBarBack.BackgroundColor3 = Color3.new(0,0,0)
  1700. HBarBack.BorderColor3 = Color3.new(0,0,0)
  1701. HBarBack.BorderSizePixel = 2
  1702. HBarBack.Position = UDim2.new(.025, 0, .55, 0)
  1703. HBarBack.Size = UDim2.new(.95, 0, .3, 0)
  1704. HBar.Parent = HBarBack
  1705. HBar.BackgroundColor3 = Color3.new(0, 255, 0)
  1706. HBar.BorderColor3 = Color3.new(0,255,0)
  1707. HBar.Size = UDim2.new(.5,0,1,0)
  1708. HHealth.BackgroundTransparency = 1
  1709. HHealth.Size = UDim2.new(1,0,1,0)
  1710. HHealth.Font = "SourceSans"
  1711. HHealth.Text = " "
  1712. HHealth.TextScaled = true
  1713. HHealth.TextColor3 = Color3.new(1)
  1714. HHealth.TextStrokeColor3 = BrickColor.new("Forest green").Color
  1715. HHealth.TextStrokeTransparency = 0
  1716. HName.Parent = HMain
  1717. HName.BackgroundTransparency = 1
  1718. HName.Size = UDim2.new(1,0,.5,0)
  1719. HName.Font = "Legacy"
  1720. HName.Text = "Toxic Corruption"
  1721. HName.TextScaled = true
  1722. HName.TextColor3 = BrickColor.new("Forest green").Color
  1723. HName.TextStrokeColor3 = Color3.new(0,0,0)
  1724. HName.TextStrokeTransparency = 0
  1725. HName.TextYAlignment = "Top"
  1726. wait(.5)
  1727.  
  1728. wait(0.1)
  1729.  
  1730. local runServ = game:GetService("RunService").RenderStepped
  1731.  
  1732. runServ:connect(function()
  1733. HHealth.Text = "["..math.floor(game.Players.LocalPlayer.Character.Humanoid.Health).."]"
  1734. HBar:TweenSize(UDim2.new((game.Players.LocalPlayer.Character.Humanoid.Health/game.Players.LocalPlayer.Character.Humanoid.MaxHealth),0,1,0), _, "Linear", .4)
  1735. end)
  1736. spawn(function()
  1737. while wait() do
  1738. if Humanoid.MaxHealth ~= 100000 then
  1739. Humanoid.MaxHealth = 100000
  1740. Humanoid.Health = Humanoid.MaxHealth
  1741. end
  1742. end
  1743. end)
  1744.  
  1745. local runServ = game:GetService("RunService").RenderStepped
  1746.  
  1747. local Player=game.Players.LocalPlayer
  1748. repeat wait() until Player
  1749. local Character=Player.Character
  1750. repeat wait() until Character
  1751. PlayerGui=Player.PlayerGui
  1752. Backpack=Player.Backpack
  1753. Torso=Character.Torso
  1754. Head=Character.Head
  1755. Humanoid=Character.Humanoid
  1756. if Humanoid.Health ~= Humanoid.MaxHealth then
  1757. Humanoid.MaxHealth = 21e+08
  1758. end
  1759. -- here was spmething
  1760.  
  1761. -- Part Color --
  1762.  
  1763. OutlineColor = ("Forest green")
  1764. Claw1OutlineColor = ("Lime green")
  1765. Claw2OutlineColor = ("Lime green")
  1766.  
  1767. EyeColor = Torso.BrickColor
  1768. Claw1Color = Claw1Color
  1769. Claw2Color = Claw2Color -- they were all Torso.BrickColor
  1770.  
  1771. -- Basic Particle Settings --
  1772.  
  1773. Claw1ParticleColor = ColorSequence.new(Color3.new(125, 247, 0), Color3.new(0, 239, 0))
  1774. Claw2ParticleColor = ColorSequence.new(Color3.new(125, 247, 0), Color3.new(0, 239, 0))
  1775. EyeParticleColor = ColorSequence.new(Color3.new(125, 247, 0), Color3.new(0, 239, 0))
  1776.  
  1777. FireDeathColor = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0))
  1778.  
  1779. Claw1ParticleTexture = "http://www.roblox.com/asset/?id=242209918"
  1780. Claw2ParticleTexture = "http://www.roblox.com/asset/?id=242209918"
  1781. EyeParticleTexture = "http://www.roblox.com/asset/?id=242209918"
  1782.  
  1783. -- Advanced Particle Settings --
  1784.  
  1785. Claw1ParticleSize = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5.563)})
  1786. Claw2ParticleSize = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5.563)})
  1787. EyeParticleSize = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 7.563)})
  1788.  
  1789. Claw1ParticleRate = 10
  1790. Claw2ParticleRate = 10
  1791. EyeParticleRate = 10
  1792.  
  1793. Claw1ParticleSpeed = NumberRange.new(2)
  1794. Claw2ParticleSpeed = NumberRange.new(2)
  1795. EyeParticleSpeed = NumberRange.new(2)
  1796.  
  1797. Claw1ParticleVelocitySpread = 500
  1798. Claw2ParticleVelocitySpread = 500
  1799. EyeParticleVelocitySpread = 500
  1800.  
  1801. Claw1ParticleRotationSpeed = NumberRange.new(-45, 45)
  1802. Claw2ParticleRotationSpeed = NumberRange.new(-45, 45)
  1803. EyeParticleRotationSpeed = NumberRange.new(-45, 45)
  1804.  
  1805. Claw1ParticleRotation = NumberRange.new(-45, 45)
  1806. Claw2ParticleRotation = NumberRange.new(-45, 45)
  1807. EyeParticleRotation = NumberRange.new(-45, 45)
  1808.  
  1809. Claw1ParticleTransparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  1810. Claw2ParticleTransparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  1811. EyeParticleTransparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  1812.  
  1813. Claw1ParticleLightEmission = 0
  1814. Claw2ParticleLightEmission = 0
  1815. EyeParticleLightEmission = 0
  1816.  
  1817. Claw1ParticleLifetime = NumberRange.new(1.0)
  1818. Claw2ParticleLifetime = NumberRange.new(1.0)
  1819. EyeParticleLifetime = NumberRange.new(1.0)
  1820.  
  1821. Claw1ParticleLockToPart = false
  1822. Claw2ParticleLockToPart = false
  1823. EyeParticleLockToPart = false
  1824.  
  1825. -- Character Light Settings --
  1826.  
  1827. LightColor = Color3.new(0,255,0)
  1828. LightBrightness = 5
  1829. LightRange = 15
  1830.  
  1831. --^-- Settings --^--
  1832.  
  1833. local fengui=it("GuiMain")
  1834. fengui.Parent=Player.PlayerGui
  1835. fengui.Name="WeaponGUI"
  1836. local fenframe=it("Frame")
  1837. fenframe.Parent=fengui
  1838. fenframe.BackgroundColor3=Color3.new(255,255,255)
  1839. fenframe.BackgroundTransparency=1
  1840. fenframe.BorderColor3=Color3.new(17,17,17)
  1841. fenframe.Size=UDim2.new(0.0500000007, 0, 0.100000001, 0)
  1842. fenframe.Position=UDim2.new(0.4,0,0.1,0)
  1843. local fenbarmana1=it("TextLabel")
  1844. fenbarmana1.Parent=fenframe
  1845. fenbarmana1.Text=" "
  1846. fenbarmana1.BackgroundTransparency=0
  1847. fenbarmana1.BackgroundColor3=Color3.new(0,0,0)
  1848. fenbarmana1.SizeConstraint="RelativeXY"
  1849. fenbarmana1.TextXAlignment="Center"
  1850. fenbarmana1.TextYAlignment="Center"
  1851. fenbarmana1.Position=UDim2.new(0,0,0,0)
  1852. fenbarmana1.Size=UDim2.new(4,0,0.2,0)
  1853. local fenbarmana2=it("TextLabel")
  1854. fenbarmana2.Parent=fenframe
  1855. fenbarmana2.Text=" "
  1856. fenbarmana2.BackgroundTransparency=0
  1857. fenbarmana2.BackgroundColor3=EyeColor.Color
  1858. fenbarmana2.SizeConstraint="RelativeXY"
  1859. fenbarmana2.TextXAlignment="Center"
  1860. fenbarmana2.TextYAlignment="Center"
  1861. fenbarmana2.Position=UDim2.new(0,0,0,0)
  1862. fenbarmana2.Size=UDim2.new(4*mana/100,0,0.2,0)
  1863. local fenbarmana3=it("TextLabel")
  1864. fenbarmana3.Parent=fenframe
  1865. fenbarmana3.Text=" "
  1866. fenbarmana3.BackgroundTransparency=0
  1867. fenbarmana3.BackgroundColor3=Color3.new(Col1,Col2,Col3)
  1868. fenbarmana3.SizeConstraint="RelativeXY"
  1869. fenbarmana3.TextXAlignment="Center"
  1870. fenbarmana3.TextYAlignment="Center"
  1871. fenbarmana3.Position=UDim2.new(0,0,0,0)
  1872. fenbarmana3.Size=UDim2.new(0,0,0.2,0)
  1873. local fenbarmana4=it("TextLabel")
  1874. fenbarmana4.Parent=fenframe
  1875. fenbarmana4.Text="Energy("..mana..")"
  1876. fenbarmana4.BackgroundTransparency=1
  1877. fenbarmana4.BackgroundColor3=Color3.new(0,0,0)
  1878. fenbarmana4.SizeConstraint="RelativeXY"
  1879. fenbarmana4.TextXAlignment="Center"
  1880. fenbarmana4.TextYAlignment="Center"
  1881. fenbarmana4.Position=UDim2.new(0,0,-0.3,0)
  1882. fenbarmana4.Size=UDim2.new(4,0,0.2,0)
  1883. fenbarmana4.FontSize="Size9"
  1884. fenbarmana4.TextStrokeTransparency=0
  1885. fenbarmana4.TextColor=BrickColor.new("White")
  1886.  
  1887. mouse=Player:GetMouse()
  1888. --save shoulders
  1889. RSH, LSH=nil, nil
  1890. --welds
  1891. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1892. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1893. LH=Torso["Left Hip"]
  1894. RH=Torso["Right Hip"]
  1895. function NoOutline(Part)
  1896. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1897. end
  1898. player=Player
  1899. ch=Character
  1900. RSH=ch.Torso["Right Shoulder"]
  1901. LSH=ch.Torso["Left Shoulder"]
  1902. --
  1903. RSH.Parent=nil
  1904. LSH.Parent=nil
  1905. --
  1906. RW.Name="Right Shoulder"
  1907. RW.Part0=ch.Torso
  1908. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1909. RW.C1=cf(0, 0.5, 0)
  1910. RW.Part1=ch["Right Arm"]
  1911. RW.Parent=ch.Torso
  1912. --
  1913. LW.Name="Left Shoulder"
  1914. LW.Part0=ch.Torso
  1915. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1916. LW.C1=cf(0, 0.5, 0)
  1917. LW.Part1=ch["Left Arm"]
  1918. LW.Parent=ch.Torso
  1919.  
  1920. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1921. local fp=it("Part")
  1922. fp.formFactor=formfactor
  1923. fp.Parent=parent
  1924. fp.Reflectance=reflectance
  1925. fp.Transparency=transparency
  1926. fp.CanCollide=false
  1927. fp.Locked=true
  1928. fp.BrickColor=brickcolor
  1929. fp.Name=name
  1930. fp.Size=size
  1931. fp.Position=Torso.Position
  1932. NoOutline(fp)
  1933. fp.Material="Neon"
  1934. fp:BreakJoints()
  1935. return fp
  1936. end
  1937.  
  1938. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1939. local mesh=it(Mesh)
  1940. mesh.Parent=part
  1941. if Mesh=="SpecialMesh" then
  1942. mesh.MeshType=meshtype
  1943. if meshid~="nil" then
  1944. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1945. end
  1946. end
  1947. mesh.Offset=offset
  1948. mesh.Scale=scale
  1949. return mesh
  1950. end
  1951.  
  1952. function weld(parent,part0,part1,c0)
  1953. local weld=it("Weld")
  1954. weld.Parent=parent
  1955. weld.Part0=part0
  1956. weld.Part1=part1
  1957. weld.C0=c0
  1958. return weld
  1959. end
  1960.  
  1961. local bodvel=Instance.new("BodyVelocity")
  1962. local bg=Instance.new("BodyGyro")
  1963.  
  1964. function swait(num)
  1965. if num==0 or num==nil then
  1966. game:service'RunService'.Stepped:wait(0)
  1967. else
  1968. for i=0,num do
  1969. game:service'RunService'.Stepped:wait(0)
  1970. end
  1971. end
  1972. end
  1973.  
  1974.  
  1975. so = function(id,par,vol,pit)
  1976. coroutine.resume(coroutine.create(function()
  1977. local sou = Instance.new("Sound",par or workspace)
  1978. sou.Volume=vol
  1979. sou.Pitch=pit or 1
  1980. sou.SoundId=id
  1981. swait()
  1982. sou:play()
  1983. game:GetService("Debris"):AddItem(sou,6)
  1984. end))
  1985. end
  1986.  
  1987. function clerp(a,b,t)
  1988. local qa = {QuaternionFromCFrame(a)}
  1989. local qb = {QuaternionFromCFrame(b)}
  1990. local ax, ay, az = a.x, a.y, a.z
  1991. local bx, by, bz = b.x, b.y, b.z
  1992. local _t = 1-t
  1993. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1994. end
  1995.  
  1996. function QuaternionFromCFrame(cf)
  1997. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1998. local trace = m00 + m11 + m22
  1999. if trace > 0 then
  2000. local s = math.sqrt(1 + trace)
  2001. local recip = 0.5/s
  2002. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  2003. else
  2004. local i = 0
  2005. if m11 > m00 then
  2006. i = 1
  2007. end
  2008. if m22 > (i == 0 and m00 or m11) then
  2009. i = 2
  2010. end
  2011. if i == 0 then
  2012. local s = math.sqrt(m00-m11-m22+1)
  2013. local recip = 0.5/s
  2014. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  2015. elseif i == 1 then
  2016. local s = math.sqrt(m11-m22-m00+1)
  2017. local recip = 0.5/s
  2018. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  2019. elseif i == 2 then
  2020. local s = math.sqrt(m22-m00-m11+1)
  2021. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  2022. end
  2023. end
  2024. end
  2025.  
  2026. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  2027. local xs, ys, zs = x + x, y + y, z + z
  2028. local wx, wy, wz = w*xs, w*ys, w*zs
  2029. local xx = x*xs
  2030. local xy = x*ys
  2031. local xz = x*zs
  2032. local yy = y*ys
  2033. local yz = y*zs
  2034. local zz = z*zs
  2035. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  2036. end
  2037.  
  2038. function QuaternionSlerp(a, b, t)
  2039. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  2040. local startInterp, finishInterp;
  2041. if cosTheta >= 0.0001 then
  2042. if (1 - cosTheta) > 0.0001 then
  2043. local theta = math.acos(cosTheta)
  2044. local invSinTheta = 1/math.sin(theta)
  2045. startInterp = math.sin((1-t)*theta)*invSinTheta
  2046. finishInterp = math.sin(t*theta)*invSinTheta
  2047. else
  2048. startInterp = 1-t
  2049. finishInterp = t
  2050. end
  2051. else
  2052. if (1+cosTheta) > 0.0001 then
  2053. local theta = math.acos(-cosTheta)
  2054. local invSinTheta = 1/math.sin(theta)
  2055. startInterp = math.sin((t-1)*theta)*invSinTheta
  2056. finishInterp = math.sin(t*theta)*invSinTheta
  2057. else
  2058. startInterp = t-1
  2059. finishInterp = t
  2060. end
  2061. end
  2062. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  2063. end
  2064.  
  2065. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2066. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2067. end
  2068.  
  2069. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  2070. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2071. prt.Anchored=true
  2072. prt.CFrame=cframe
  2073. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  2074. --http://www.roblox.com/asset/?id=4770560
  2075. game:GetService("Debris"):AddItem(prt,2)
  2076. CF=prt.CFrame
  2077. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2078. for i=0,1,0.2 do
  2079. wait()
  2080. Part.CFrame=CF*cf(0,0,-0.4)
  2081. end
  2082. for i=0,1,delay do
  2083. wait()
  2084. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  2085. Mesh.Scale=Mesh.Scale
  2086. end
  2087. for i=0,1,0.1 do
  2088. wait()
  2089. Part.Transparency=i
  2090. end
  2091. Part.Parent=nil
  2092. end),prt,msh,CF)
  2093. end
  2094.  
  2095. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2096. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2097. prt.Anchored=true
  2098. prt.CFrame=cframe
  2099. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2100. game:GetService("Debris"):AddItem(prt,5)
  2101. coroutine.resume(coroutine.create(function(Part,Mesh)
  2102. for i=0,1,delay do
  2103. wait()
  2104. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2105. Part.Transparency=i
  2106. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2107. end
  2108. Part.Parent=nil
  2109. end),prt,msh)
  2110. end
  2111.  
  2112. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2113. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2114. prt.Anchored=false
  2115. prt.CFrame=cframe
  2116. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2117. local wld=weld(prt,prt,Parent,cframe)
  2118. game:GetService("Debris"):AddItem(prt,5)
  2119. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2120. for i=0,1,delay do
  2121. wait()
  2122. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2123. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2124. Part.Transparency=i
  2125. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2126. end
  2127. Part.Parent=nil
  2128. end),prt,msh,wld)
  2129. end
  2130.  
  2131. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2132. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2133. prt.Anchored=false
  2134. prt.CFrame=cframe
  2135. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2136. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2137. game:GetService("Debris"):AddItem(prt,5)
  2138. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2139. for i=0,1,delay do
  2140. wait()
  2141. Weld.C0=euler(i*20,0,0)
  2142. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2143. Part.Transparency=i
  2144. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2145. end
  2146. Part.Parent=nil
  2147. end),prt,msh,wld)
  2148. end
  2149.  
  2150. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2151. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2152. prt.Anchored=true
  2153. prt.CFrame=cframe
  2154. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2155. game:GetService("Debris"):AddItem(prt,2)
  2156. coroutine.resume(coroutine.create(function(Part,Mesh)
  2157. for i=0,1,delay do
  2158. wait()
  2159. Part.CFrame=Part.CFrame
  2160. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2161. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2162. prt2.Anchored=true
  2163. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2164. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2165. game:GetService("Debris"):AddItem(prt2,2)
  2166. coroutine.resume(coroutine.create(function(Part,Mesh)
  2167. for i=0,1,0.1 do
  2168. wait()
  2169. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2170. end
  2171. Part.Parent=nil
  2172. end),prt2,msh2)
  2173. end
  2174. for i=0,1,delay*2 do
  2175. wait()
  2176. Part.CFrame=Part.CFrame
  2177. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2178. end
  2179. Part.Parent=nil
  2180. end),prt,msh)
  2181. end
  2182.  
  2183. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2184. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2185. prt.Anchored=true
  2186. prt.CFrame=cframe
  2187. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2188. game:GetService("Debris"):AddItem(prt,2)
  2189. coroutine.resume(coroutine.create(function(Part,Mesh)
  2190. for i=0,1,delay do
  2191. wait()
  2192. Part.CFrame=Part.CFrame
  2193. Part.Transparency=i
  2194. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2195. end
  2196. Part.Parent=nil
  2197. end),prt,msh)
  2198. end
  2199.  
  2200. function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  2201. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2202. prt.Anchored=true
  2203. prt.CFrame=cframe*euler(x2,y2,z2)
  2204. --"http://www.roblox.com/asset/?id=168892465"
  2205. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  2206. game:GetService("Debris"):AddItem(prt,2)
  2207. coroutine.resume(coroutine.create(function(Part,Mesh)
  2208. for i=0,1,0.03 do
  2209. wait()
  2210. Part.CFrame=Part.CFrame
  2211. Part.Transparency=i
  2212. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2213. end
  2214. Part.Parent=nil
  2215. end),prt,msh)
  2216. end
  2217.  
  2218. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2219. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2220. prt.Anchored=true
  2221. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2222. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2223. game:GetService("Debris"):AddItem(prt,2)
  2224. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2225. CF=Part.CFrame
  2226. Numbb=0
  2227. randnumb=math.random()/10
  2228. rand1=math.random()/10
  2229. for i=0,1,rand1 do
  2230. wait()
  2231. CF=CF*cf(0,math.random()/2,0)
  2232. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2233. Part.CFrame=CF*euler(Numbb,0,0)
  2234. Part.Transparency=i
  2235. Numbb=Numbb+randnumb
  2236. end
  2237. Part.Parent=nil
  2238. end),prt,CF,Numbb,randnumb)
  2239. end
  2240.  
  2241. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2242. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2243. prt.Anchored=true
  2244. prt.CFrame=cframe
  2245. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2246. game:GetService("Debris"):AddItem(prt,5)
  2247. coroutine.resume(coroutine.create(function(Part,Mesh)
  2248. for i=0,1,delay do
  2249. wait()
  2250. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2251. Part.Transparency=i
  2252. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2253. end
  2254. Part.Parent=nil
  2255. end),prt,msh)
  2256. end
  2257.  
  2258. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2259. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2260. prt.Anchored=true
  2261. prt.CFrame=cframe
  2262. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2263. game:GetService("Debris"):AddItem(prt,2)
  2264. coroutine.resume(coroutine.create(function(Part,Mesh)
  2265. for i=0,1,delay do
  2266. wait()
  2267. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2268. Part.Transparency=i
  2269. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2270. end
  2271. Part.Parent=nil
  2272. end),prt,msh)
  2273. end
  2274.  
  2275. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2276. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2277. prt.Anchored=true
  2278. prt.CFrame=cframe*cf(x,y,z)
  2279. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2280. game:GetService("Debris"):AddItem(prt,5)
  2281. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2282. local num=math.random()
  2283. local num2=math.random(-3,2)+math.random()
  2284. local numm=0
  2285. for i=0,1,delay*2 do
  2286. swait()
  2287. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2288. Part.Transparency=i
  2289. numm=numm+0.01
  2290. end
  2291. Part.Parent=nil
  2292. Mesh.Parent=nil
  2293. end),prt,msh,x,y,z)
  2294. end
  2295.  
  2296. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  2297. if hit.Parent==nil then
  2298. return
  2299. end
  2300. h=hit.Parent:FindFirstChild("Humanoid")
  2301. for _,v in pairs(hit.Parent:children()) do
  2302. if v:IsA("Humanoid") then
  2303. h=v
  2304. end
  2305. end
  2306. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  2307. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  2308. end
  2309. if hit.Parent.className=="Hat" then
  2310. hit=hit.Parent.Parent:findFirstChild("Head")
  2311. end
  2312. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  2313. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  2314. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2315. return
  2316. end]]
  2317. -- hs(hit,1.2)
  2318. c=Instance.new("ObjectValue")
  2319. c.Name="creator"
  2320. c.Value=game:service("Players").LocalPlayer
  2321. c.Parent=h
  2322. game:GetService("Debris"):AddItem(c,.5)
  2323. Damage=math.random(minim,maxim)
  2324. -- h:TakeDamage(Damage)
  2325. blocked=false
  2326. block=hit.Parent:findFirstChild("Block")
  2327. if block~=nil then
  2328. print(block.className)
  2329. if block.className=="NumberValue" then
  2330. if block.Value>0 then
  2331. blocked=true
  2332. if decreaseblock==nil then
  2333. block.Value=block.Value-1
  2334. end
  2335. end
  2336. end
  2337. if block.className=="IntValue" then
  2338. if block.Value>0 then
  2339. blocked=true
  2340. if decreaseblock~=nil then
  2341. block.Value=block.Value-1
  2342. end
  2343. end
  2344. end
  2345. end
  2346. if blocked==false then
  2347. -- h:TakeDamage(Damage)
  2348. h.Health=h.Health-Damage
  2349. showDamage(hit.Parent,Damage,.5,Claw2Color)
  2350. else
  2351. h.Health=h.Health-(Damage/2)
  2352. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Claw1Color"))
  2353. end
  2354. if Type=="Knockdown" then
  2355. local hum=hit.Parent.Humanoid
  2356. hum.PlatformStand=true
  2357. coroutine.resume(coroutine.create(function(HHumanoid)
  2358. swait(1)
  2359. HHumanoid.PlatformStand=false
  2360. end),hum)
  2361. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  2362. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  2363. local bodvol=Instance.new("BodyVelocity")
  2364. bodvol.velocity=angle*knockback
  2365. bodvol.P=5000
  2366. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2367. bodvol.Parent=hit
  2368. rl=Instance.new("BodyAngularVelocity")
  2369. rl.P=3000
  2370. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  2371. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2372. rl.Parent=hit
  2373. game:GetService("Debris"):AddItem(bodvol,.5)
  2374. game:GetService("Debris"):AddItem(rl,.5)
  2375. elseif Type=="Normal" then
  2376. vp=Instance.new("BodyVelocity")
  2377. vp.P=500
  2378. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2379. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  2380. if KnockbackType==1 then
  2381. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  2382. elseif KnockbackType==2 then
  2383. vp.velocity=Property.CFrame.lookVector*knockback
  2384. end
  2385. if knockback>0 then
  2386. vp.Parent=hit.Parent.Torso
  2387. end
  2388. game:GetService("Debris"):AddItem(vp,.5)
  2389. elseif Type=="Up" then
  2390. local bodyVelocity=Instance.new("BodyVelocity")
  2391. bodyVelocity.velocity=vt(0,10,0)
  2392. bodyVelocity.P=1000
  2393. bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009)
  2394. bodyVelocity.Parent=hit
  2395. game:GetService("Debris"):AddItem(bodyVelocity,1)
  2396. rl=Instance.new("BodyAngularVelocity")
  2397. rl.P=3000
  2398. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  2399. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2400. rl.Parent=hit
  2401. game:GetService("Debris"):AddItem(rl,.5)
  2402. elseif Type=="Snare" then
  2403. bp=Instance.new("BodyPosition")
  2404. bp.P=2000
  2405. bp.D=100
  2406. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2407. bp.position=hit.Parent.Torso.Position
  2408. bp.Parent=hit.Parent.Torso
  2409. game:GetService("Debris"):AddItem(bp,1)
  2410. elseif Type=="Target" then
  2411. if Targetting==false then
  2412. ZTarget=hit.Parent.Torso
  2413. coroutine.resume(coroutine.create(function(Part)
  2414. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  2415. swait(5)
  2416. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  2417. end),ZTarget)
  2418. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  2419. targetgui=Instance.new("BillboardGui")
  2420. targetgui.Parent=ZTarget
  2421. targetgui.Size=UDim2.new(10,100,10,100)
  2422. targ=Instance.new("ImageLabel")
  2423. targ.Parent=targetgui
  2424. targ.BackgroundTransparency=1
  2425. targ.Image="rbxassetid://4834067"
  2426. targ.Size=UDim2.new(1,0,1,0)
  2427. cam.CameraType="Scriptable"
  2428. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  2429. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  2430. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  2431. Targetting=true
  2432. RocketTarget=ZTarget
  2433. for i=1,Property do
  2434. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  2435. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  2436. swait()
  2437. end
  2438. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  2439. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  2440. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  2441. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  2442. end
  2443. Targetting=false
  2444. RocketTarget=nil
  2445. targetgui.Parent=nil
  2446. cam.CameraType="Custom"
  2447. end
  2448. end
  2449. debounce=Instance.new("BoolValue")
  2450. debounce.Name="DebounceHit"
  2451. debounce.Parent=hit.Parent
  2452. debounce.Value=true
  2453. game:GetService("Debris"):AddItem(debounce,Delay)
  2454. c=Instance.new("ObjectValue")
  2455. c.Name="creator"
  2456. c.Value=Player
  2457. c.Parent=h
  2458. game:GetService("Debris"):AddItem(c,.5)
  2459. CRIT=false
  2460. hitDeb=true
  2461. AttackPos=6
  2462. end
  2463. end
  2464.  
  2465. showDamage=function(Char,Dealt,du,Color)
  2466. m=Instance.new("Model")
  2467. m.Name=tostring(Dealt)
  2468. h=Instance.new("Humanoid")
  2469. h.Health=0
  2470. h.MaxHealth=0
  2471. h.Parent=m
  2472. c=Instance.new("Part")
  2473. c.Transparency=0
  2474. c.BrickColor=EyeColor
  2475. c.Name="Head"
  2476. c.TopSurface=0
  2477. c.BottomSurface=0
  2478. c.formFactor="Plate"
  2479. c.Size=Vector3.new(1,.4,1)
  2480. ms=Instance.new("CylinderMesh")
  2481. ms.Scale=Vector3.new(.8,.8,.8)
  2482. so("http://www.roblox.com/asset/?id=199149269",c,1,1)
  2483. if CRIT==true then
  2484. ms.Scale=Vector3.new(1,1.25,1)
  2485. end
  2486. ms.Parent=c
  2487. c.Reflectance=0
  2488. Instance.new("BodyGyro").Parent=c
  2489. c.Parent=m
  2490. if Char:findFirstChild("Head")~=nil then
  2491. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2492. elseif Char.Parent:findFirstChild("Head")~=nil then
  2493. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2494. end
  2495. f=Instance.new("BodyPosition")
  2496. f.P=2000
  2497. f.D=100
  2498. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2499. f.position=c.Position+Vector3.new(0,3,0)
  2500. f.Parent=c
  2501. game:GetService("Debris"):AddItem(m,.5+du)
  2502. c.CanCollide=false
  2503. m.Parent=workspace
  2504. c.CanCollide=false
  2505. end
  2506.  
  2507. local Player=game:GetService('Players').LocalPlayer
  2508. local Character=Player.Character
  2509. Mouse=Player:GetMouse()
  2510. m=Instance.new('Model',Character)
  2511.  
  2512.  
  2513. local function weldBetween(a, b)
  2514. local weldd = Instance.new("ManualWeld")
  2515. weldd.Part0 = a
  2516. weldd.Part1 = b
  2517. weldd.C0 = CFrame.new()
  2518. weldd.C1 = b.CFrame:inverse() * a.CFrame
  2519. weldd.Parent = a
  2520. return weldd
  2521. end
  2522.  
  2523. it=Instance.new
  2524.  
  2525. function nooutline(part)
  2526. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  2527. end
  2528.  
  2529. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  2530. local fp=it("Part")
  2531. fp.formFactor=formfactor
  2532. fp.Parent=parent
  2533. fp.Reflectance=reflectance
  2534. fp.Transparency=transparency
  2535. fp.CanCollide=false
  2536. fp.Locked=true
  2537. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  2538. fp.Name=name
  2539. fp.Size=size
  2540. fp.Position=Character.Torso.Position
  2541. nooutline(fp)
  2542. fp.Material=material
  2543. fp:BreakJoints()
  2544. return fp
  2545. end
  2546.  
  2547. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  2548. local mesh=it(Mesh)
  2549. mesh.Parent=part
  2550. if Mesh=="SpecialMesh" then
  2551. mesh.MeshType=meshtype
  2552. mesh.MeshId=meshid
  2553. end
  2554. mesh.Offset=offset
  2555. mesh.Scale=scale
  2556. return mesh
  2557. end
  2558.  
  2559. function weld(parent,part0,part1,c0,c1)
  2560. local weld=it("Weld")
  2561. weld.Parent=parent
  2562. weld.Part0=part0
  2563. weld.Part1=part1
  2564. weld.C0=c0
  2565. weld.C1=c1
  2566. return weld
  2567. end
  2568.  
  2569. local modelzorz=Instance.new("Model")
  2570. modelzorz.Parent=Character
  2571. modelzorz.Name="Claw1"
  2572.  
  2573. Handle=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"White","Handle",Vector3.new(1.20000005, 1.20000005, 1))
  2574. Handleweld=weld(m,Character["Torso"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.74455023, 0.843135834, 3.31332064, 0.866820872, 0.000393055088, -0.498619556, 0.129048944, -0.966104209, 0.223582461, -0.481630623, -0.258152217, -0.837489963))
  2575. mesh("SpecialMesh",Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  2576. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,Claw1OutlineColor,"Part",Vector3.new(2.20000005, 1, 1))
  2577. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.89693689, 0.0205960274, 1.83752108, 0.00084605813, 0.865680099, -0.500597, -0.999998748, 2.925843e-005, -0.00163948536, -0.00140464306, 0.500597715, 0.865678906))
  2578. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Forest green","Part",Vector3.new(1, 0.400000006, 1))
  2579. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0205993652, 3.97038841, -4.62090921, -0.999998689, 2.810359e-005, -0.00163501501, 0.00158691406, 0.25815019, -0.966103554, 0.0003949448, -0.966104805, -0.258149862))
  2580. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=569102850",Vector3.new(0, 0, 0),Vector3.new(.015, .04, .015))
  2581. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,Claw1OutlineColor,"Part",Vector3.new(2.20000005, 1, 1))
  2582. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.18639517, -0.292996764, 3.91572571, -0.407002717, 0.123095758, -0.905094743, -0.483149111, -0.869928718, 0.098949343, -0.775187671, 0.477568328, 0.413536996))
  2583. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,Claw1OutlineColor,"Part",Vector3.new(2.20000005, 1, 1))
  2584. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.62196398, -0.29297936, 1.11572647, -0.835932732, 0.424737811, -0.347583354, -0.483153641, -0.869926155, 0.0989501327, -0.260344028, 0.250651836, 0.932413459))
  2585. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,Claw1OutlineColor,"Part",Vector3.new(2.20000005, 1, 1))
  2586. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.55920649, -0.210347176, 1.642519, -0.865201712, -0.000320911407, -0.501423895, -2.98991799e-005, -0.999999881, 0.000691637397, -0.501424074, 0.000613339245, 0.865201592))
  2587. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,Claw1OutlineColor,"Part",Vector3.new(2.20000005, 1, 1))
  2588. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.931638, -0.0751047134, 4.50077248, -0.352038473, 0.176153034, -0.919260144, -0.86644727, -0.432817101, 0.248874903, -0.354031444, 0.884103954, 0.304995537))
  2589. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,Claw1OutlineColor,"Part",Vector3.new(2.20000005, 1, 1))
  2590. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.34771347, -0.763819337, 1.31078529, 0.484322906, -0.259408951, -0.835546851, 0.129806682, 0.965767562, -0.224595979, 0.865206063, 0.000317394733, 0.501416266))
  2591. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,Claw1OutlineColor,"Part",Vector3.new(2.20000005, 1, 1))
  2592. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.85524988, -0.0749192238, 1.7092638, -0.499263257, 0.749717236, -0.434350491, -0.866449237, -0.432811975, 0.248876765, -0.00140497088, 0.500597596, 0.865678906))
  2593. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,Claw1OutlineColor,"Part",Vector3.new(2.20000005, 1, 1))
  2594. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.76954031, -0.210381031, 4.2438035, -0.257231236, -0.00066010654, -0.966349661, -3.04505229e-005, -0.999999762, 0.000691249967, -0.966350019, 0.000207226723, 0.257231265))
  2595. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,Claw1OutlineColor,"Part",Vector3.new(2.20000005, 1, 1))
  2596. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.87043977, 0.020611763, 4.62094831, 0.00159165263, 0.258152187, -0.966103137, -0.999998748, 2.89455056e-005, -0.00163969398, -0.000395349402, 0.966104329, 0.258151829))
  2597. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Forest green","Part",Vector3.new(1, 0.400000006, 1))
  2598. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.292981744, 4.28636312, -3.9157095, -0.48314926, -0.869928479, 0.0989517197, -0.407004297, 0.123094313, -0.905094087, 0.775186777, -0.477569282, -0.413537562))
  2599. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=569102850",Vector3.new(0, 0, 0),Vector3.new(.015, .04, .015))
  2600. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,Claw1OutlineColor,"Part",Vector3.new(2.20000005, 1, 1))
  2601. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.85442352, -0.763632059, 3.85966015, -0.269319534, -0.183654502, -0.945377231, 0.129806384, 0.96576786, -0.22459501, 0.954262853, -0.183203816, -0.236260682))
  2602. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Forest green","Part",Vector3.new(1, 0.400000006, 1))
  2603. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0751276016, 4.03159618, -4.50067854, -0.866445661, -0.432817698, 0.248879611, -0.352042913, 0.176151246, -0.919258773, 0.354030937, -0.884103894, -0.304995805))
  2604. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=569102850",Vector3.new(0, 0, 0),Vector3.new(.015, .04, .015))
  2605. Gear=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,Claw1OutlineColor,"Part",Vector3.new(4.29999971, 4.30000019, 1))
  2606. Gearweld=weld(m,Handle,Gear,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0552597046, -0.0398271084, -0.0363032818, 0.999988854, -3.23429704e-005, 0.00164097548, 3.37436795e-005, 0.999994695, -0.000689953566, -0.00164103508, 0.000689953566, 0.999993086))
  2607. mesh("SpecialMesh",Gear,Enum.MeshType.FileMesh,"http://www.roblox.com/asset?id=156292343",Vector3.new(0, 0, 0),Vector3.new(5, 5, 15))
  2608. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Forest green","Part",Vector3.new(1, 0.400000006, 1))
  2609. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.210398674, 3.86948943, -4.24380398, -3.15159559e-005, -0.999999881, 0.00069090724, -0.257231474, -0.000659480691, -0.966349721, 0.966349959, -0.000208158046, -0.257231474))
  2610. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=569102850",Vector3.new(0, 0, 0),Vector3.new(.015, .04, .015))
  2611. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Forest green","Part",Vector3.new(1, 0.400000006, 1))
  2612. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.763661504, 3.95439076, 3.85964441, -0.129806131, -0.965767682, 0.224596098, -0.269319892, -0.1836555, -0.945376873, 0.954262733, -0.183203891, -0.236260891))
  2613. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=569102850",Vector3.new(0, 0, 0),Vector3.new(.015, .04, .015))
  2614.  
  2615. local modelzorz2=Instance.new("Model")
  2616. modelzorz2.Parent=Character
  2617. modelzorz2.Name="Claw2"
  2618.  
  2619. Handle2=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"White","Handle",Vector3.new(1.20000005, 1.20000005, 1))
  2620. Handle2weld=weld(m,Character["Torso"],Handle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.65693045, 1.66835713, 2.9684639, 0.866025746, 0.129405379, 0.482963592, -3.67555799e-006, -0.965926409, 0.258817136, 0.499999553, -0.224144042, -0.836516559))
  2621. mesh("SpecialMesh",Handle2,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  2622. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,Claw2OutlineColor,"Part",Vector3.new(2.20000005, 1, 1))
  2623. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.66774845, 0.445008755, 1.50737095, 0.749997497, 0.500002265, -0.433014721, -0.433012635, 0.866024196, 0.250004709, 0.500004232, -2.02655792e-006, 0.866023183))
  2624. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,Claw2OutlineColor,"Part",Vector3.new(2.20000005, 1, 1))
  2625. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.70916891, 0.288796425, 1.12511444, 0.424947768, 0.836517453, -0.34591651, -0.870010257, 0.482961774, 0.0991482884, 0.250003695, 0.25881803, 0.933012009))
  2626. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,Claw2OutlineColor,"Part",Vector3.new(2.20000005, 1, 1))
  2627. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.24143982, 0.288818121, 3.98402214, 0.123706907, 0.408494055, -0.904339194, -0.870007515, 0.482966691, 0.0991476029, 0.477266878, 0.774516642, 0.415139139))
  2628. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Forest green","Part",Vector3.new(1, 0.400000006, 1))
  2629. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.288883209, 4.34139919, -3.98407936, -0.870006502, 0.482969046, 0.099145025, 0.123710275, 0.408492953, -0.904339135, -0.477267861, -0.774515808, -0.415139765))
  2630. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=569102850",Vector3.new(0, 0, 0),Vector3.new(.015, .04, .015))
  2631. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Forest green","Part",Vector3.new(1, 0.400000006, 1))
  2632. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.377311707, 3.81443644, -4.17874861, 1.43051147e-006, 1.00000012, 5.58793545e-006, 0.258813858, 5.02169132e-006, -0.965927303, -0.965927362, 2.82377005e-006, -0.258813858))
  2633. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=569102850",Vector3.new(0, 0, 0),Vector3.new(.015, .04, .015))
  2634. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,Claw2OutlineColor,"Part",Vector3.new(2.20000005, 1, 1))
  2635. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.11095357, 0.452475548, 3.33581829, 0.214266971, -0.258726388, -0.941886604, 0.124996454, -0.949091196, 0.289140463, -0.968744338, -0.179685742, -0.171018958))
  2636. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Forest green","Part",Vector3.new(1, 0.400000006, 1))
  2637. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.445028067, 4.04179811, -4.22505188, -0.433007121, 0.86602807, 0.250001073, 0.176776409, 0.353552371, -0.918559194, -0.883886516, -0.353548348, -0.306183964))
  2638. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=569102850",Vector3.new(0, 0, 0),Vector3.new(.015, .04, .015))
  2639. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,Claw2OutlineColor,"Part",Vector3.new(2.20000005, 1, 1))
  2640. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.71447492, 0.377288342, 4.1787672, 0.258815825, 7.89761543e-007, -0.965926647, 2.11596489e-006, 1.00000012, 1.35600567e-006, 0.965926886, -2.41398811e-006, 0.258815885))
  2641. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Forest green","Part",Vector3.new(1, 0.400000006, 1))
  2642. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.452456236, 4.21090841, 3.33576679, -0.124996543, 0.949091196, -0.289140046, 0.214267105, -0.25872606, -0.941886783, -0.968744338, -0.179685771, -0.171019137))
  2643. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=569102850",Vector3.new(0, 0, 0),Vector3.new(.015, .04, .015))
  2644. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,Claw2OutlineColor,"Part",Vector3.new(2.20000005, 1, 1))
  2645. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.94182658, 0.445016861, 4.22507095, 0.176774979, 0.353554398, -0.918558657, -0.433007926, 0.866026998, 0.250003278, 0.883886337, 0.353548825, 0.306183696))
  2646. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Forest green","Part",Vector3.new(1, 0.400000006, 1))
  2647. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.256506443, 3.92671657, -4.59811449, -1.00000024, 2.62260437e-006, 1.4603138e-006, -7.4505806e-007, 0.258819073, -0.965925872, -2.89268792e-006, -0.965925932, -0.258819073))
  2648. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=569102850",Vector3.new(0, 0, 0),Vector3.new(.015, .04, .015))
  2649. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,Claw2OutlineColor,"Part",Vector3.new(2.20000005, 1, 1))
  2650. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.4743073, 0.377253056, 1.63544273, 0.866023183, -4.61935997e-007, -0.500004172, 1.52736902e-006, 1.00000012, 1.65402889e-006, 0.500004232, -2.21282244e-006, 0.866023183))
  2651. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,Claw2OutlineColor,"Part",Vector3.new(2.20000005, 1, 1))
  2652. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.15870619, 0.452619314, 0.758959055, -0.533491194, -0.310006529, -0.786945462, 0.124997422, -0.949090362, 0.289142251, -0.836518347, 0.0558886975, 0.545081377))
  2653. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,Claw2OutlineColor,"Part",Vector3.new(2.20000005, 1, 1))
  2654. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.84976673, 0.256440639, 1.85214663, 6.2584877e-007, 0.866025329, -0.500000298, -1.00000024, 1.72108412e-006, 1.7285347e-006, 2.38418579e-006, 0.500000298, 0.866025329))
  2655. Gear2=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,Claw2OutlineColor,"Part",Vector3.new(4.29999971, 4.30000019, 1))
  2656. Gear2weld=weld(m,Handle2,Gear2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.049841404, 0.049908638, 2.78949738e-005, 0.999990344, -5.01424074e-006, -1.49011612e-007, 5.28991222e-006, 0.999994934, 2.98023224e-008, 2.38418579e-007, -1.63912773e-007, 0.999994636))
  2657. mesh("SpecialMesh",Gear2,Enum.MeshType.FileMesh,"http://www.roblox.com/asset?id=156292343",Vector3.new(0, 0, 0),Vector3.new(5, 5, 15))
  2658. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,Claw2OutlineColor,"Part",Vector3.new(2.20000005, 1, 1))
  2659. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.82676554, 0.256523609, 4.598104, -1.1920929e-006, 0.258818835, -0.965925872, -1.00000012, 1.46776438e-006, 1.63912773e-006, 1.83098018e-006, 0.965925872, 0.258818835))
  2660.  
  2661. local modelzorz3=Instance.new("Model")
  2662. modelzorz3.Parent=Character
  2663. modelzorz3.Name="Eye"
  2664.  
  2665. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,OutlineColor,"Handle",Vector3.new(1.20000005, 1.20000005, 1.20000005))
  2666. handleweld=weld(m,Character["Torso"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.22326851, -3.5562191, -0.038143158, 0, 0, 1, 0, 1, 0, -1, 0, 0))
  2667. mesh("SpecialMesh",handle,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=569102850",Vector3.new(0, 0, 0),Vector3.new(.015, .05, .01))
  2668.  
  2669. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,EyeColor,"Part",Vector3.new(1.20000005, 1.20000005, 1.20000005))
  2670. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 1.09672546e-005, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  2671. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=569102850",Vector3.new(0, 0, 0),Vector3.new(.01, 0.05, .02))
  2672.  
  2673. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,OutlineColor,"Part",Vector3.new(1.20000005, 1.20000005, 1.20000005))
  2674. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 1.09672546e-005, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  2675. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=569102850",Vector3.new(0, 0, 0),Vector3.new(.016, .007, .024))
  2676.  
  2677. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,OutlineColor,"Part",Vector3.new(3.79999995, 4, 1.39999998))
  2678. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0999984741, 0, -0.100000381, 0, -1, 0, 0, 0, 1, -1, -0, 0))
  2679. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(4.77400017, 4.96199989, 4.73800039))
  2680. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,EyeColor,"Part",Vector3.new(3.79999995, 4, 1.39999998))
  2681. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0999984741, 0, -0.100000381, 0, -1, 0, 0, 0, 1, -1, -0, 0))
  2682. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(4.4920001, 4.70400047, 4.73800039))
  2683. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,OutlineColor,"Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964))
  2684. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100013733, -3.48671532, -1.09328079, 1, -2.52891718e-012, -6.81310423e-013, 2.53075664e-012, 0.866021812, 0.500005603, -6.74442273e-013, -0.500005603, 0.866021752))
  2685. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,OutlineColor,"Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964))
  2686. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100009918, -3.09970522, 1.40989685, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  2687. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,OutlineColor,"Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964))
  2688. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.100009918, -3.09970522, 1.39007568, -0.999999702, 0, 5.96046448e-008, 0, 1, 0, -5.96046448e-008, 0, -0.999999702))
  2689. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,OutlineColor,"Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964))
  2690. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100013733, -3.61302567, 0.360752106, 1, -3.69486299e-012, 1.70532143e-012, 3.81851625e-012, 0.707111537, -0.707102001, 1.40679254e-012, 0.70710206, 0.707111537))
  2691. local moosick = it("Sound", Character.Torso)
  2692. moosick.SoundId = "rbxassetid://142653441" --insert <rbxassetid://142653441> that there
  2693. moosick.Looped = true
  2694. moosick.Pitch = 1.0
  2695. moosick.Volume = 1.3
  2696. moosick:Play()
  2697.  
  2698. anim = Character:findFirstChild("Animate")
  2699. if anim then
  2700. anim:Destroy()
  2701. end
  2702.  
  2703. local particleemitter = Instance.new("ParticleEmitter", Handle)
  2704. particleemitter.Texture = Claw1ParticleTexture
  2705. particleemitter.VelocitySpread = Claw1ParticleVelocitySpread
  2706. particleemitter.Lifetime = Claw1ParticleLifetime
  2707. particleemitter.Speed = Claw1ParticleSpeed
  2708. particleemitter.Size = Claw1ParticleSize
  2709. particleemitter.RotSpeed = Claw1ParticleRotationSpeed
  2710. particleemitter.Rate = Claw1ParticleRate
  2711. particleemitter.Rotation = Claw1ParticleRotation
  2712. particleemitter.Transparency = Claw1ParticleTransparency
  2713. particleemitter.LightEmission = Claw1ParticleLightEmission
  2714. particleemitter.Color = Claw1ParticleColor
  2715. particleemitter.LockedToPart = Claw1ParticleLockToPart
  2716.  
  2717. local particleemitter = Instance.new("ParticleEmitter", Handle2)
  2718. particleemitter.Texture = Claw2ParticleTexture
  2719. particleemitter.VelocitySpread = Claw2ParticleVelocitySpread
  2720. particleemitter.Lifetime = Claw2ParticleLifetime
  2721. particleemitter.Speed = Claw2ParticleSpeed
  2722. particleemitter.Size = Claw2ParticleSize
  2723. particleemitter.RotSpeed = Claw2ParticleRotationSpeed
  2724. particleemitter.Rate = Claw2ParticleRate
  2725. particleemitter.Rotation = Claw2ParticleRotation
  2726. particleemitter.Transparency = Claw2ParticleTransparency
  2727. particleemitter.LightEmission = Claw2ParticleLightEmission
  2728. particleemitter.Color = Claw2ParticleColor
  2729. particleemitter.LockedToPart = Claw2ParticleLockToPart
  2730.  
  2731. local particleemitter = Instance.new("ParticleEmitter", handle)
  2732. particleemitter.Texture = EyeParticleTexture
  2733. particleemitter.VelocitySpread = EyeParticleVelocitySpread
  2734. particleemitter.Lifetime = EyeParticleLifetime
  2735. particleemitter.Speed = EyeParticleSpeed
  2736. particleemitter.Size = EyeParticleSize
  2737. particleemitter.RotSpeed = EyeParticleRotationSpeed
  2738. particleemitter.Rate = EyeParticleRate
  2739. particleemitter.Rotation = EyeParticleRotation
  2740. particleemitter.Transparency = EyeParticleTransparency
  2741. particleemitter.LightEmission = EyeParticleLightEmission
  2742. particleemitter.Color = EyeParticleColor
  2743. particleemitter.LockedToPart = EyeParticleLockToPart
  2744.  
  2745. local light = Instance.new("PointLight", Character.Torso)
  2746. light.Color = LightColor
  2747. light.Brightness = LightBrightness
  2748. light.Range = LightRange
  2749.  
  2750. particleemitter.Enabled = true
  2751.  
  2752. local Footsteps = it("Sound",Character.Torso)
  2753. Footsteps.SoundId = "rbxassetid://142665235"
  2754. Footsteps.Looped = true
  2755. Footsteps.Pitch = 0.8
  2756. Footsteps.Volume = 0.3
  2757.  
  2758. local Footsteps2 = it("Sound",Character.Torso)
  2759. Footsteps2.SoundId = "rbxassetid://142665235"
  2760. Footsteps2.Looped = true
  2761. Footsteps2.Pitch = 1
  2762. Footsteps2.Volume = 0.4
  2763.  
  2764. local cam = game.Workspace.CurrentCamera
  2765.  
  2766. --cam.CameraSubject = Character
  2767.  
  2768. for i,v in pairs(Head:children()) do
  2769. if v:IsA("Sound") then
  2770. v:Destroy()
  2771. end
  2772. end
  2773.  
  2774. mouse.Button1Down:connect(function()
  2775. if attack==false and attacktype==1 then
  2776. attacktype=2
  2777. attackone()
  2778. elseif attack==false and attacktype==2 then
  2779. attacktype=3
  2780. attacktwo()
  2781. elseif attack==false and attacktype==3 then
  2782. attacktype=4
  2783. attackthree()
  2784. elseif attack==false and attacktype==4 then
  2785. attacktype=1
  2786. attackfour()
  2787. end
  2788. end)
  2789.  
  2790. mouse.KeyDown:connect(function(k)
  2791. k=k:lower()
  2792. if k=='e' then
  2793. if attack==false and mana>=20 then
  2794. Push()
  2795. end
  2796. elseif k=='g' then
  2797. if attack==false and mana>=50 then
  2798. Twirl()
  2799. end
  2800. elseif k=='v' then
  2801. if attack==false and mana>=25 then
  2802. MagicJump()
  2803. end
  2804. elseif k=='q' then
  2805. if attack==false then
  2806. idle=1000
  2807. end
  2808. elseif k=='h' and game.Players.LocalPlayer.UserId == game.CreatorId then
  2809. if attack==false then
  2810. mana=100
  2811. end
  2812. elseif k=='y' then
  2813. if attack==false and mana>=100 then
  2814. Shred()
  2815. end
  2816. elseif k=='f' then
  2817. if attack==false and mana>=40 then
  2818. Spin()
  2819. end
  2820. elseif k=='r' then
  2821. if attack==false and mana>=20 then
  2822. Clap()
  2823. end
  2824. elseif k=='t' then
  2825. if attack==false then
  2826. Hai()
  2827. end
  2828. elseif k=='0' then
  2829. if attack==false then
  2830. Humanoid.WalkSpeed=(32)
  2831. end
  2832. elseif k=='j' then
  2833. if attack==false then
  2834. Humanoid.Health = 0.1
  2835. print("Congrats, you commited suicide.")
  2836. end
  2837. end
  2838. end)
  2839.  
  2840. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2841. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2842. prt.Anchored=true
  2843. prt.CFrame=cframe
  2844. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2845. game:GetService("Debris"):AddItem(prt,2)
  2846. coroutine.resume(coroutine.create(function(Part,Mesh)
  2847. for i=0,1,delay do
  2848. wait()
  2849. Part.CFrame=Part.CFrame
  2850. Part.Transparency=i
  2851. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2852. end
  2853. Part.Parent=nil
  2854. end),prt,msh)
  2855. end
  2856.  
  2857. TrailDeb = true
  2858.  
  2859. function equipanim()
  2860. attack=true
  2861. Humanoid.WalkSpeed = 0
  2862. if TrailDeb == false then
  2863. TrailDeb = true
  2864. end
  2865.  
  2866.  
  2867. coroutine.wrap(function()
  2868. local Old = handle.CFrame.p
  2869. while wait()do
  2870. if not TrailDeb then break end
  2871. local New = handle.CFrame.p
  2872. local Mag =(Old -New).magnitude
  2873. local Dis =(Old +New)/2
  2874. local Trail = Instance.new("Part",Character)
  2875. Trail.Material = "Neon"
  2876. Trail.Anchored = true
  2877. Trail.CanCollide = false
  2878. Trail.BrickColor = "Lime green"
  2879. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2880. Trail.TopSurface = 0
  2881. Trail.BottomSurface = 0
  2882. Trail.formFactor = "Custom"
  2883. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2884. local ms = Instance.new("BlockMesh",Trail)
  2885. ms.Scale = Vector3.new(1,1,1)
  2886. local TM = Instance.new("CylinderMesh",Trail)
  2887. TM.Scale = Vector3.new(1,1,1)
  2888. Old = New
  2889. coroutine.wrap(function()
  2890. for i = 1,0,-0.1 do
  2891. wait()
  2892. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2893. end
  2894. Trail:remove()
  2895. end)()
  2896. coroutine.wrap(function()
  2897. for i = 1,10 do
  2898. wait()
  2899. Trail.Transparency = Trail.Transparency +0.1
  2900. end end)()end end)()
  2901. coroutine.wrap(function()
  2902. local Old = Handle.CFrame.p
  2903. while wait()do
  2904. if not TrailDeb then break end
  2905. local New = Handle.CFrame.p
  2906. local Mag =(Old -New).magnitude
  2907. local Dis =(Old +New)/2
  2908. local Trail = Instance.new("Part",Character)
  2909. Trail.Material = "Neon"
  2910. Trail.Anchored = true
  2911. Trail.CanCollide = false
  2912. Trail.BrickColor = "Lime green"
  2913. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2914. Trail.TopSurface = 0
  2915. Trail.BottomSurface = 0
  2916. Trail.formFactor = "Custom"
  2917. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2918. local ms = Instance.new("BlockMesh",Trail)
  2919. ms.Scale = Vector3.new(1,1,1)
  2920. local TM = Instance.new("CylinderMesh",Trail)
  2921. TM.Scale = Vector3.new(1,1,1)
  2922. Old = New
  2923. coroutine.wrap(function()
  2924. for i = 1,0,-0.1 do
  2925. wait()
  2926. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2927. end
  2928. Trail:remove()
  2929. end)()
  2930. coroutine.wrap(function()
  2931. for i = 1,10 do
  2932. wait()
  2933. Trail.Transparency = Trail.Transparency +0.1
  2934. end end)()end end)()
  2935. coroutine.wrap(function()
  2936. local Old = Handle2.CFrame.p
  2937. while wait()do
  2938. if not TrailDeb then break end
  2939. local New = Handle2.CFrame.p
  2940. local Mag =(Old -New).magnitude
  2941. local Dis =(Old +New)/2
  2942. local Trail = Instance.new("Part",Character)
  2943. Trail.Material = "Neon"
  2944. Trail.Anchored = true
  2945. Trail.CanCollide = false
  2946. Trail.BrickColor = "Lime green"
  2947. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2948. Trail.TopSurface = 0
  2949. Trail.BottomSurface = 0
  2950. Trail.formFactor = "Custom"
  2951. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2952. local ms = Instance.new("BlockMesh",Trail)
  2953. ms.Scale = Vector3.new(1,1,1)
  2954. local TM = Instance.new("CylinderMesh",Trail)
  2955. TM.Scale = Vector3.new(1,1,1)
  2956. Old = New
  2957. coroutine.wrap(function()
  2958. for i = 1,0,-0.1 do
  2959. wait()
  2960. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2961. end
  2962. Trail:remove()
  2963. end)()
  2964. coroutine.wrap(function()
  2965. for i = 1,10 do
  2966. wait()
  2967. Trail.Transparency = Trail.Transparency +0.1
  2968. end end)()end end)()
  2969. -- so("http://www.roblox.com/asset/?id=200632370",Torso,1,0.5)
  2970. -- for i=0,1,0.005 do
  2971. -- swait()
  2972. -- moosick.Volume = 0+1*i
  2973. -- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,100-100*i)*euler(0,0,0+90*i),.2)
  2974. -- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,0),.2)
  2975. -- handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  2976. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  2977. -- Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  2978. -- LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(40)),.2)
  2979. -- RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-40)),.2)
  2980. -- end
  2981. -- for i=0,1,0.005 do
  2982. -- swait()
  2983. -- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2.5)*euler(0,0,0+90*i),.2)
  2984. -- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,0),.2)
  2985. -- handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  2986. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  2987. -- Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  2988. -- LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(40)),.2)
  2989. -- RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-40)),.2)
  2990. -- end
  2991. so("http://www.roblox.com/asset/?id=150829983",Character,1,0.9)
  2992. -- so("http://www.roblox.com/asset/?id=150829983",Character,1,0.9)
  2993. for i=0,0.4,0.005 do
  2994. swait()
  2995. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,5+1*i)*angles(math.rad(-15),math.rad(0),math.rad(0)),0.1)
  2996. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-25),math.rad(0),math.rad(0)),0.1)
  2997. handleweld.C0=clerp(handleweld.C0,cf(0,0+1*i,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
  2998. Handle2weld.C0=clerp(Handle2weld.C0,cf(0-1*i,0,0)*angles(math.rad(90),math.rad(15),math.rad(0)),0.1)
  2999. Handleweld.C0=clerp(Handleweld.C0,cf(0+1*i,0,0)*angles(math.rad(90),math.rad(-15),math.rad(0)),0.1)
  3000. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(-30)),0.1)
  3001. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(30)),0.1)
  3002. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(-30)),0.1)
  3003. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(30)),0.1)
  3004. end
  3005. for i=0,1,0.04 do
  3006. swait()
  3007. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*angles(math.rad(40),math.rad(0),math.rad(-40)),.3)
  3008. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3009. Handleweld.C0=clerp(Handleweld.C0,cf(1.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3010. Handle2weld.C0=clerp(Handle2weld.C0,cf(-1.5,3,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3011. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(40)),.3)
  3012. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(70),math.rad(0),math.rad(-45)),.3)
  3013. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  3014. LH.C0=clerp(LH.C0,cf(-1,0.5,0)*euler(0,-1.57,0)*angles(math.rad(-10),math.rad(30),math.rad(-40)),.3)
  3015. end
  3016. --dmgstop()
  3017. attack=false
  3018. Humanoid.WalkSpeed = 12
  3019. if TrailDeb == true then
  3020. TrailDeb = false
  3021. end
  3022. end
  3023.  
  3024. function attackone()
  3025. attack=true
  3026. if TrailDeb == false then
  3027. TrailDeb = true
  3028. end
  3029.  
  3030.  
  3031. coroutine.wrap(function()
  3032. local Old = Handle.CFrame.p
  3033. while wait()do
  3034. if not TrailDeb then break end
  3035. local New = Handle.CFrame.p
  3036. local Mag =(Old -New).magnitude
  3037. local Dis =(Old +New)/2
  3038. local Trail = Instance.new("Part",Character)
  3039. Trail.Material = "Neon"
  3040. Trail.Anchored = true
  3041. Trail.CanCollide = false
  3042. Trail.BrickColor = "Lime green"
  3043. Trail.Size = Vector3.new(0.2,Mag,0.2)
  3044. Trail.TopSurface = 0
  3045. Trail.BottomSurface = 0
  3046. Trail.formFactor = "Custom"
  3047. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  3048. local ms = Instance.new("BlockMesh",Trail)
  3049. ms.Scale = Vector3.new(1,1,1)
  3050. local TM = Instance.new("CylinderMesh",Trail)
  3051. TM.Scale = Vector3.new(1,1,1)
  3052. Old = New
  3053. coroutine.wrap(function()
  3054. for i = 1,0,-0.1 do
  3055. wait()
  3056. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  3057. end
  3058. Trail:remove()
  3059. end)()
  3060. coroutine.wrap(function()
  3061. for i = 1,10 do
  3062. wait()
  3063. Trail.Transparency = Trail.Transparency +0.1
  3064. end end)()end end)()
  3065. con1=Gear.Touched:connect(function(hit) Damagefunc(hit,50,100,math.random(100,150),"Normal",RootPart,.2,1) end)
  3066. for i=0,1,0.08 do
  3067. swait()
  3068. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-10)),.3)
  3069. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(10)),.3)
  3070. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3071. Handleweld.C0=clerp(Handleweld.C0,cf(-3,1,2)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  3072. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3073. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
  3074. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  3075. end
  3076. so("http://www.roblox.com/asset/?id=231917758",Handle,1,.9)
  3077. so("http://www.roblox.com/asset/?id=159972643",Torso,1,1)
  3078. for i=0,1,0.1 do
  3079. swait()
  3080. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3)
  3081. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  3082. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3083. Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-8)*angles(math.rad(-85),math.rad(0),math.rad(0)),.2)
  3084. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3085. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(80,1.8,1.5),.3)
  3086. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  3087. end
  3088. --dmgstop()
  3089. attack=false
  3090. con1:disconnect()
  3091. if TrailDeb == true then
  3092. TrailDeb = false
  3093. end
  3094. end
  3095.  
  3096. function attacktwo()
  3097. attack=true
  3098. if TrailDeb == false then
  3099. TrailDeb = true
  3100. end
  3101.  
  3102.  
  3103. coroutine.wrap(function()
  3104. local Old = Handle2.CFrame.p
  3105. while wait()do
  3106. if not TrailDeb then break end
  3107. local New = Handle2.CFrame.p
  3108. local Mag =(Old -New).magnitude
  3109. local Dis =(Old +New)/2
  3110. local Trail = Instance.new("Part",Character)
  3111. Trail.Material = "Neon"
  3112. Trail.Anchored = true
  3113. Trail.CanCollide = false
  3114. Trail.BrickColor = "Lime green"
  3115. Trail.Size = Vector3.new(0.2,Mag,0.2)
  3116. Trail.TopSurface = 0
  3117. Trail.BottomSurface = 0
  3118. Trail.formFactor = "Custom"
  3119. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  3120. local ms = Instance.new("BlockMesh",Trail)
  3121. ms.Scale = Vector3.new(1,1,1)
  3122. local TM = Instance.new("CylinderMesh",Trail)
  3123. TM.Scale = Vector3.new(1,1,1)
  3124. Old = New
  3125. coroutine.wrap(function()
  3126. for i = 1,0,-0.1 do
  3127. wait()
  3128. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  3129. end
  3130. Trail:remove()
  3131. end)()
  3132. coroutine.wrap(function()
  3133. for i = 1,10 do
  3134. wait()
  3135. Trail.Transparency = Trail.Transparency +0.1
  3136. end end)()end end)()
  3137. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,50,100,math.random(50,100),"Normal",RootPart,.2,1) end)
  3138. for i=0,1,0.08 do
  3139. swait()
  3140. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  3141. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  3142. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3143. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,1,-5)*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  3144. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3145. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-30,0,-20),.3)
  3146. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3)
  3147. end
  3148. so("http://www.roblox.com/asset/?id=231917758",Handle2,1,.8)
  3149. so("http://www.roblox.com/asset/?id=159972627",Torso,1,1)
  3150. for i=0,1,0.1 do
  3151. swait()
  3152. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  3153. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  3154. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3155. Handle2weld.C0=clerp(Handle2weld.C0,cf(10,1,-5)*angles(math.rad(0),math.rad(-80),math.rad(20)),.2)
  3156. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3157. LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*euler(-30,0,20),.3)
  3158. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3)
  3159. end
  3160. --dmgstop()
  3161. attack=false
  3162. con1:disconnect()
  3163. if TrailDeb == true then
  3164. TrailDeb = false
  3165. end
  3166. end
  3167.  
  3168. function attackthree()
  3169. attack=true
  3170. if TrailDeb == false then
  3171. TrailDeb = true
  3172. end
  3173.  
  3174.  
  3175. coroutine.wrap(function()
  3176. local Old = Handle.CFrame.p
  3177. while wait()do
  3178. if not TrailDeb then break end
  3179. local New = Handle.CFrame.p
  3180. local Mag =(Old -New).magnitude
  3181. local Dis =(Old +New)/2
  3182. local Trail = Instance.new("Part",Character)
  3183. Trail.Material = "Neon"
  3184. Trail.Anchored = true
  3185. Trail.CanCollide = false
  3186. Trail.BrickColor = "Lime green"
  3187. Trail.Size = Vector3.new(0.2,Mag,0.2)
  3188. Trail.TopSurface = 0
  3189. Trail.BottomSurface = 0
  3190. Trail.formFactor = "Custom"
  3191. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  3192. local ms = Instance.new("BlockMesh",Trail)
  3193. ms.Scale = Vector3.new(1,1,1)
  3194. local TM = Instance.new("CylinderMesh",Trail)
  3195. TM.Scale = Vector3.new(1,1,1)
  3196. Old = New
  3197. coroutine.wrap(function()
  3198. for i = 1,0,-0.1 do
  3199. wait()
  3200. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  3201. end
  3202. Trail:remove()
  3203. end)()
  3204. coroutine.wrap(function()
  3205. for i = 1,10 do
  3206. wait()
  3207. Trail.Transparency = Trail.Transparency +0.1
  3208. end end)()end end)()
  3209. con1=Gear.Touched:connect(function(hit) Damagefunc(hit,50,100,math.random(100,150),"Normal",RootPart,.2,1) end)
  3210. for i=0,1,0.08 do
  3211. swait()
  3212. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  3213. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  3214. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3215. Handleweld.C0=clerp(Handleweld.C0,cf(3,7,-1)*angles(math.rad(20),math.rad(0),math.rad(-120)),.2)
  3216. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3217. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(0.5,-1.3,-0.1),.3)
  3218. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  3219. end
  3220. so("http://www.roblox.com/asset/?id=231917758",Handle,1,1)
  3221. so("http://www.roblox.com/asset/?id=159882477",Torso,1,1)
  3222. for i=0,1,0.05 do
  3223. swait()
  3224. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  3225. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  3226. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3227. Handleweld.C0=clerp(Handleweld.C0,cf(2,4,-3)*angles(math.rad(120),math.rad(0),math.rad(-120)),.2)
  3228. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3229. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(2,-1.3,0.1),.3)
  3230. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  3231. end
  3232. --dmgstop()
  3233. attack=false
  3234. con1:disconnect()
  3235. if TrailDeb == true then
  3236. TrailDeb = false
  3237. end
  3238. end
  3239.  
  3240. function attackfour()
  3241. attack=true
  3242. if TrailDeb == false then
  3243. TrailDeb = true
  3244. end
  3245.  
  3246.  
  3247. coroutine.wrap(function()
  3248. local Old = Handle2.CFrame.p
  3249. while wait()do
  3250. if not TrailDeb then break end
  3251. local New = Handle2.CFrame.p
  3252. local Mag =(Old -New).magnitude
  3253. local Dis =(Old +New)/2
  3254. local Trail = Instance.new("Part",Character)
  3255. Trail.Material = "Neon"
  3256. Trail.Anchored = true
  3257. Trail.CanCollide = false
  3258. Trail.BrickColor = "Lime green"
  3259. Trail.Size = Vector3.new(0.2,Mag,0.2)
  3260. Trail.TopSurface = 0
  3261. Trail.BottomSurface = 0
  3262. Trail.formFactor = "Custom"
  3263. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  3264. local ms = Instance.new("BlockMesh",Trail)
  3265. ms.Scale = Vector3.new(1,1,1)
  3266. local TM = Instance.new("CylinderMesh",Trail)
  3267. TM.Scale = Vector3.new(1,1,1)
  3268. Old = New
  3269. coroutine.wrap(function()
  3270. for i = 1,0,-0.1 do
  3271. wait()
  3272. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  3273. end
  3274. Trail:remove()
  3275. end)()
  3276. coroutine.wrap(function()
  3277. for i = 1,10 do
  3278. wait()
  3279. Trail.Transparency = Trail.Transparency +0.1
  3280. end end)()end end)()
  3281. coroutine.wrap(function()
  3282. local Old = Handle.CFrame.p
  3283. while wait()do
  3284. if not TrailDeb then break end
  3285. local New = Handle.CFrame.p
  3286. local Mag =(Old -New).magnitude
  3287. local Dis =(Old +New)/2
  3288. local Trail = Instance.new("Part",Character)
  3289. Trail.Material = "Neon"
  3290. Trail.Anchored = true
  3291. Trail.CanCollide = false
  3292. Trail.BrickColor = "Lime green"
  3293. Trail.Size = Vector3.new(0.2,Mag,0.2)
  3294. Trail.TopSurface = 0
  3295. Trail.BottomSurface = 0
  3296. Trail.formFactor = "Custom"
  3297. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  3298. local ms = Instance.new("BlockMesh",Trail)
  3299. ms.Scale = Vector3.new(1,1,1)
  3300. local TM = Instance.new("CylinderMesh",Trail)
  3301. TM.Scale = Vector3.new(1,1,1)
  3302. Old = New
  3303. coroutine.wrap(function()
  3304. for i = 1,0,-0.1 do
  3305. wait()
  3306. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  3307. end
  3308. Trail:remove()
  3309. end)()
  3310. coroutine.wrap(function()
  3311. for i = 1,10 do
  3312. wait()
  3313. Trail.Transparency = Trail.Transparency +0.1
  3314. end end)()end end)()
  3315. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,50,100,math.random(100,150),"Normal",RootPart,.2,1) end)
  3316. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,50,100,math.random(100,150),"Normal",RootPart,.2,1) end)
  3317. for i=0,1,0.08 do
  3318. swait()
  3319. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*angles(math.rad(40),math.rad(0),math.rad(-40)),.3)
  3320. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3321. Handleweld.C0=clerp(Handleweld.C0,cf(1.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3322. Handle2weld.C0=clerp(Handle2weld.C0,cf(-1.5,3,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3323. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(40)),.3)
  3324. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(70),math.rad(0),math.rad(-45)),.3)
  3325. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  3326. LH.C0=clerp(LH.C0,cf(-1,0.5,0)*euler(0,-1.57,0)*angles(math.rad(-10),math.rad(30),math.rad(-40)),.3)
  3327. end
  3328. if anim then
  3329. anim.Disabled=true
  3330. end
  3331. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.7)
  3332. so("http://www.roblox.com/asset/?id=159882584",Torso,1,1)
  3333. for i=0,1,0.04 do
  3334. swait()
  3335. Torso.Velocity=RootPart.CFrame.lookVector*50
  3336. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(-5),math.rad(0),math.rad(0+360*i)),.3)
  3337. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3338. Handleweld.C0=clerp(Handleweld.C0,cf(3,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3339. Handle2weld.C0=clerp(Handle2weld.C0,cf(-3,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3340. RW.C0=clerp(RW.C0,cf(1.2,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3341. LW.C0=clerp(LW.C0,cf(-1.2,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3342. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3343. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3344. end
  3345. --dmgstop()
  3346. attack=false
  3347. con1:disconnect()
  3348. con2:disconnect()
  3349. if anim then
  3350. anim.Disabled=false
  3351. end
  3352. if TrailDeb == true then
  3353. TrailDeb = false
  3354. end
  3355. end
  3356.  
  3357. function BlastEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2)
  3358. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3359. prt.Anchored = true
  3360. prt.CFrame = cframe
  3361. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  3362. coroutine.resume(coroutine.create(function()
  3363. for i = 0, 1, 0.05 do
  3364. wait()
  3365. prt.Transparency = i
  3366. msh.Scale = msh.Scale + vt(x2, y2, z2)
  3367. end
  3368. prt.Parent = nil
  3369. end))
  3370. end
  3371.  
  3372. function MagniDamage(Hit, Part, magni, mindam, maxdam, knock, Type)
  3373. for _, c in pairs(workspace:children()) do
  3374. local hum = c:findFirstChild("Humanoid")
  3375. if hum ~= nil then
  3376. local head = c:findFirstChild("Torso")
  3377. if head ~= nil then
  3378. local targ = head.Position - Part.Position
  3379. local mag = targ.magnitude
  3380. if mag <= magni and c.Name ~= Player.Name then
  3381. Damagefunc(Hit, head, mindam, maxdam, knock, Type, RootPart, .2, 1, 3)
  3382. end
  3383. end
  3384. end
  3385. end
  3386. end
  3387.  
  3388. function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3389. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3390. prt.Anchored = true
  3391. prt.CFrame = cframe
  3392. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  3393. game:GetService("Debris"):AddItem(prt, 2)
  3394. coroutine.resume(coroutine.create(function(Part, Mesh)
  3395. for i = 0, 1, delay do
  3396. swait()
  3397. Part.CFrame = Part.CFrame
  3398. Part.Transparency = i
  3399. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  3400. end
  3401. Part.Parent = nil
  3402. end), prt, msh)
  3403. end
  3404.  
  3405. function MagicJump()
  3406. if Anim == "Idle" or Anim == "Walk" or Anim == "Run" then
  3407. attack=true
  3408. mana=mana-25
  3409. --[[ Humanoid.WalkSpeed = 0
  3410. for i=0,1,0.01 do
  3411. swait()
  3412. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.2)*angles(math.rad(45),math.rad(0),math.rad(45)),.1)
  3413. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(-15),math.rad(15),math.rad(-45)),.1)
  3414. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.1)
  3415. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(0),math.rad(45)),.1)
  3416. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-15),math.rad(15),math.rad(-30)),.1)
  3417. RH.C0=clerp(RH.C0,cf(0.5,-1.25,0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(15),math.rad(-60),math.rad(-15)),.1)
  3418. LH.C0=clerp(LH.C0,cf(-1,0.1,-0.8)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(40),math.rad(0),math.rad(-30)),.1)
  3419. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(45)),.1)
  3420. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,-6)*angles(math.rad(-15),math.rad(-60),math.rad(45)),.1)
  3421. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(60),math.rad(45)),.1)
  3422. end]]--
  3423. Humanoid.Jump = true
  3424. Torso.Velocity = vt(0, 150, 0)
  3425. Humanoid.WalkSpeed = 64
  3426. so("http://www.roblox.com/asset/?id=199145497",Torso,1,0.8)
  3427. so("http://www.roblox.com/asset/?id=199145497",Torso,1,0.8)
  3428. for i=0,1,0.05 do
  3429. swait()
  3430. Neck.C0=clerp(Neck.C0,necko*euler(0.5,0,0),.3)
  3431. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  3432. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0+8*i,0,0),.3)
  3433. LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*euler(-30,0,20),.3)
  3434. RW.C0=clerp(RW.C0,cf(1,0.5,-1)*euler(-30,0,-20),.3)
  3435. RH.C0=clerp(RH.C0,cf(1,0,-1)*euler(-0.5,1.57,0)*euler(0,0,0),.2)
  3436. LH.C0=clerp(LH.C0,cf(-1,0,-1)*euler(-0.5,-1.57,0)*euler(0,0,0),.2)
  3437. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  3438. Handleweld.C0=clerp(Handleweld.C0,cf(0,-5,0)*angles(math.rad(60),math.rad(60),math.rad(0)),.2)
  3439. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-5,0)*angles(math.rad(60),math.rad(-60),math.rad(0)),.2)
  3440. end
  3441. for i=0,1,0.02 do
  3442. swait()
  3443. Neck.C0=clerp(Neck.C0,necko*euler(0.3,0,0),.3)
  3444. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  3445. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  3446. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.1,0,1),.3)
  3447. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3448. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.1,0,-1),.3)
  3449. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3450. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.6,1.57,0)*euler(0,0,0),.2)
  3451. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.8,-1.57,0)*euler(0,0,0),.2)
  3452. handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3453. Handleweld.C0=clerp(Handleweld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2)
  3454. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2)
  3455. end
  3456. Humanoid.WalkSpeed = 0
  3457. swait(8)
  3458. so("http://www.roblox.com/asset/?id=199145477",Torso,1,1)
  3459. so("http://www.roblox.com/asset/?id=199145477",Torso,1,1)
  3460. local hit,pos=rayCast(Torso.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  3461. if hit~=nil then
  3462. swait(2)
  3463. local ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new(OutlineColor),"Effect",vt())
  3464. ref.Anchored=true
  3465. ref.CFrame=cf(pos)
  3466. game:GetService("Debris"):AddItem(ref,3)
  3467. for i=1,10 do
  3468. local Col=BrickColor.new(OutlineColor)
  3469. local groundpart=part(3,Character,"SmoothPlastic",0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  3470. groundpart.Anchored=true
  3471. groundpart.CanCollide=false
  3472. groundpart.CFrame=cf(pos)*cf(math.random(-500,500)/100,0,math.random(-500,500)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3473. local Col2=EyeColor
  3474. local groundpart2=part(3,Character,"SmoothPlastic",0,0,Col2,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  3475. groundpart2.Anchored=true
  3476. groundpart2.CanCollide=false
  3477. groundpart2.CFrame=cf(pos)*cf(math.random(-500,500)/100,0,math.random(-500,500)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3478. game:GetService("Debris"):AddItem(groundpart,5)
  3479. game:GetService("Debris"):AddItem(groundpart2,5)
  3480. end
  3481. BlastEffect(Claw1Color,cf(pos),1,1,1,1.4,1.4,1.4)
  3482. BlastEffect(BrickColor.new(OutlineColor),cf(pos),.9,.9,.9,1.2,1.2,1.2)
  3483. MagicCircle(BrickColor.new(OutlineColor),cf(pos),5,5,5,5,5,5,0.05)
  3484. MagicCircle(Claw2Color,cf(pos),6,6,6,6,6,6,0.05)
  3485. for i=0,1,0.06 do
  3486. swait()
  3487. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  3488. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  3489. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*angles(math.rad(50),math.rad(0),math.rad(0)),.3)
  3490. RW.C0=clerp(RW.C0,cf(1, 0.3, -.7)*angles(math.rad(50),math.rad(0),math.rad(-30)),.3)
  3491. LW.C0=clerp(LW.C0,cf(-1, 0.3, -.7)*angles(math.rad(50),math.rad(0),math.rad(30)),.3)
  3492. RH.C0=clerp(RH.C0,cf(1, -.5, -.5)*angles(math.rad(50),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  3493. LH.C0=clerp(LH.C0,cf(-1, -1, -.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  3494. handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3495. Handleweld.C0=clerp(Handleweld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2)
  3496. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2)
  3497. end
  3498. end
  3499. swait(20)
  3500. Humanoid.WalkSpeed = 12
  3501. --dmgstop()
  3502. attack=false
  3503. end
  3504. end
  3505.  
  3506. function Spin()
  3507. attack=true
  3508. mana=mana-40
  3509. if TrailDeb == false then
  3510. TrailDeb = true
  3511. end
  3512.  
  3513. coroutine.wrap(function()
  3514. local Old = Handle2.CFrame.p
  3515. while wait()do
  3516. if not TrailDeb then break end
  3517. local New = Handle2.CFrame.p
  3518. local Mag =(Old -New).magnitude
  3519. local Dis =(Old +New)/2
  3520. local Trail = Instance.new("Part",Character)
  3521. Trail.Material = "Neon"
  3522. Trail.Anchored = true
  3523. Trail.CanCollide = false
  3524. Trail.BrickColor = "Lime green"
  3525. Trail.Size = Vector3.new(0.2,Mag,0.2)
  3526. Trail.TopSurface = 0
  3527. Trail.BottomSurface = 0
  3528. Trail.formFactor = "Custom"
  3529. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  3530. local ms = Instance.new("BlockMesh",Trail)
  3531. ms.Scale = Vector3.new(1,1,1)
  3532. local TM = Instance.new("CylinderMesh",Trail)
  3533. TM.Scale = Vector3.new(1,1,1)
  3534. Old = New
  3535. coroutine.wrap(function()
  3536. for i = 1,0,-0.1 do
  3537. wait()
  3538. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  3539. end
  3540. Trail:remove()
  3541. end)()
  3542. coroutine.wrap(function()
  3543. for i = 1,10 do
  3544. wait()
  3545. Trail.Transparency = Trail.Transparency +0.1
  3546. end end)()end end)()
  3547. coroutine.wrap(function()
  3548. local Old = Handle.CFrame.p
  3549. while wait()do
  3550. if not TrailDeb then break end
  3551. local New = Handle.CFrame.p
  3552. local Mag =(Old -New).magnitude
  3553. local Dis =(Old +New)/2
  3554. local Trail = Instance.new("Part",Character)
  3555. Trail.Material = "Neon"
  3556. Trail.Anchored = true
  3557. Trail.CanCollide = false
  3558. Trail.BrickColor = "Lime green"
  3559. Trail.Size = Vector3.new(0.2,Mag,0.2)
  3560. Trail.TopSurface = 0
  3561. Trail.BottomSurface = 0
  3562. Trail.formFactor = "Custom"
  3563. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  3564. local ms = Instance.new("BlockMesh",Trail)
  3565. ms.Scale = Vector3.new(1,1,1)
  3566. local TM = Instance.new("CylinderMesh",Trail)
  3567. TM.Scale = Vector3.new(1,1,1)
  3568. Old = New
  3569. coroutine.wrap(function()
  3570. for i = 1,0,-0.1 do
  3571. wait()
  3572. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  3573. end
  3574. Trail:remove()
  3575. end)()
  3576. coroutine.wrap(function()
  3577. for i = 1,10 do
  3578. wait()
  3579. Trail.Transparency = Trail.Transparency +0.1
  3580. end end)()end end)()
  3581. Footsteps:Stop()
  3582. Footsteps2:Stop()
  3583. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,100,200,math.random(200,400),"Normal",RootPart,.2,1) end)
  3584. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,100,200,math.random(200,400),"Normal",RootPart,.2,1) end)
  3585. so("http://www.roblox.com/asset/?id=159882497",Torso,1,1)
  3586. for i=0,1,0.1 do
  3587. swait()
  3588. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3589. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3590. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3591. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3592. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3593. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3594. end
  3595. if anim then
  3596. anim.Disabled=true
  3597. end
  3598. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1.2)
  3599. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1)
  3600. for i=0,1,0.05 do
  3601. swait()
  3602. Torso.Velocity=RootPart.CFrame.lookVector*100
  3603. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(90),math.rad(0+360*i)),.3)
  3604. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3605. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3606. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3607. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3608. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3609. end
  3610. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1.2)
  3611. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1)
  3612. for i=0,1,0.05 do
  3613. swait()
  3614. Torso.Velocity=RootPart.CFrame.lookVector*100
  3615. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(90),math.rad(0+360*i)),.3)
  3616. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3617. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3618. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3619. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3620. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3621. end
  3622. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1.2)
  3623. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1)
  3624. for i=0,1,0.05 do
  3625. swait()
  3626. Torso.Velocity=RootPart.CFrame.lookVector*100
  3627. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(90),math.rad(0+360*i)),.3)
  3628. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3629. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3630. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3631. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3632. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3633. end
  3634. --dmgstop()
  3635. Humanoid.WalkSpeed=12
  3636. attack=false
  3637. con1:disconnect()
  3638. con2:disconnect()
  3639. if anim then
  3640. anim.Disabled=false
  3641. end
  3642. if TrailDeb == true then
  3643. TrailDeb = false
  3644. end
  3645. end
  3646.  
  3647. function Twirl()
  3648. mana=mana-50
  3649. attack=true
  3650. if TrailDeb == false then
  3651. TrailDeb = true
  3652. end
  3653.  
  3654.  
  3655. coroutine.wrap(function()
  3656. local Old = Handle2.CFrame.p
  3657. while wait()do
  3658. if not TrailDeb then break end
  3659. local New = Handle2.CFrame.p
  3660. local Mag =(Old -New).magnitude
  3661. local Dis =(Old +New)/2
  3662. local Trail = Instance.new("Part",Character)
  3663. Trail.Material = "Neon"
  3664. Trail.Anchored = true
  3665. Trail.CanCollide = false
  3666. Trail.BrickColor = "Lime green"
  3667. Trail.Size = Vector3.new(0.2,Mag,0.2)
  3668. Trail.TopSurface = 0
  3669. Trail.BottomSurface = 0
  3670. Trail.formFactor = "Custom"
  3671. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  3672. local ms = Instance.new("BlockMesh",Trail)
  3673. ms.Scale = Vector3.new(1,1,1)
  3674. local TM = Instance.new("CylinderMesh",Trail)
  3675. TM.Scale = Vector3.new(1,1,1)
  3676. Old = New
  3677. coroutine.wrap(function()
  3678. for i = 1,0,-0.1 do
  3679. wait()
  3680. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  3681. end
  3682. Trail:remove()
  3683. end)()
  3684. coroutine.wrap(function()
  3685. for i = 1,10 do
  3686. wait()
  3687. Trail.Transparency = Trail.Transparency +0.1
  3688. end end)()end end)()
  3689. coroutine.wrap(function()
  3690. local Old = Handle.CFrame.p
  3691. while wait()do
  3692. if not TrailDeb then break end
  3693. local New = Handle.CFrame.p
  3694. local Mag =(Old -New).magnitude
  3695. local Dis =(Old +New)/2
  3696. local Trail = Instance.new("Part",Character)
  3697. Trail.Material = "Neon"
  3698. Trail.Anchored = true
  3699. Trail.CanCollide = false
  3700. Trail.BrickColor = "Lime green"
  3701. Trail.Size = Vector3.new(0.2,Mag,0.2)
  3702. Trail.TopSurface = 0
  3703. Trail.BottomSurface = 0
  3704. Trail.formFactor = "Custom"
  3705. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  3706. local ms = Instance.new("BlockMesh",Trail)
  3707. ms.Scale = Vector3.new(1,1,1)
  3708. local TM = Instance.new("CylinderMesh",Trail)
  3709. TM.Scale = Vector3.new(1,1,1)
  3710. Old = New
  3711. coroutine.wrap(function()
  3712. for i = 1,0,-0.1 do
  3713. wait()
  3714. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  3715. end
  3716. Trail:remove()
  3717. end)()
  3718. coroutine.wrap(function()
  3719. for i = 1,10 do
  3720. wait()
  3721. Trail.Transparency = Trail.Transparency +0.1
  3722. end end)()end end)()
  3723. Footsteps:Stop()
  3724. Footsteps2:Stop()
  3725. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,100,200,math.random(200,400),"Normal",RootPart,.2,1) end)
  3726. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,100,200,math.random(200,400),"Normal",RootPart,.2,1) end)
  3727. so("http://www.roblox.com/asset/?id=159882598",Torso,1,1)
  3728. for i=0,1,0.1 do
  3729. swait()
  3730. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3731. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3732. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3733. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3734. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3735. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3736. end
  3737. if anim then
  3738. anim.Disabled=true
  3739. end
  3740. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1)
  3741. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8)
  3742. for i=0,1,0.05 do
  3743. swait()
  3744. Torso.Velocity=RootPart.CFrame.lookVector*80
  3745. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3)
  3746. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3747. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3748. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3749. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3750. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3751. end
  3752. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1)
  3753. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8)
  3754. for i=0,1,0.05 do
  3755. swait()
  3756. Torso.Velocity=RootPart.CFrame.lookVector*80
  3757. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3)
  3758. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3759. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3760. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3761. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3762. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3763. end
  3764. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1)
  3765. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8)
  3766. for i=0,1,0.05 do
  3767. swait()
  3768. Torso.Velocity=RootPart.CFrame.lookVector*80
  3769. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3)
  3770. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3771. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3772. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3773. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3774. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3775. end
  3776. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1)
  3777. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8)
  3778. for i=0,1,0.05 do
  3779. swait()
  3780. Torso.Velocity=RootPart.CFrame.lookVector*80
  3781. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3)
  3782. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3783. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3784. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3785. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3786. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3787. end
  3788. --dmgstop()
  3789. Humanoid.WalkSpeed=12
  3790. attack=false
  3791. con1:disconnect()
  3792. con2:disconnect()
  3793. if anim then
  3794. anim.Disabled=false
  3795. end
  3796. if TrailDeb == true then
  3797. TrailDeb = false
  3798. end
  3799. end
  3800.  
  3801. function Shred()
  3802. attack=true
  3803. mana=mana-100
  3804. if TrailDeb == false then
  3805. TrailDeb = true
  3806. end
  3807.  
  3808.  
  3809. coroutine.wrap(function()
  3810. local Old = Handle2.CFrame.p
  3811. while wait()do
  3812. if not TrailDeb then break end
  3813. local New = Handle2.CFrame.p
  3814. local Mag =(Old -New).magnitude
  3815. local Dis =(Old +New)/2
  3816. local Trail = Instance.new("Part",Character)
  3817. Trail.Material = "Neon"
  3818. Trail.Anchored = true
  3819. Trail.CanCollide = false
  3820. Trail.BrickColor = "Lime green"
  3821. Trail.Size = Vector3.new(0.2,Mag,0.2)
  3822. Trail.TopSurface = 0
  3823. Trail.BottomSurface = 0
  3824. Trail.formFactor = "Custom"
  3825. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  3826. local ms = Instance.new("BlockMesh",Trail)
  3827. ms.Scale = Vector3.new(1,1,1)
  3828. local TM = Instance.new("CylinderMesh",Trail)
  3829. TM.Scale = Vector3.new(1,1,1)
  3830. Old = New
  3831. coroutine.wrap(function()
  3832. for i = 1,0,-0.1 do
  3833. wait()
  3834. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  3835. end
  3836. Trail:remove()
  3837. end)()
  3838. coroutine.wrap(function()
  3839. for i = 1,10 do
  3840. wait()
  3841. Trail.Transparency = Trail.Transparency +0.1
  3842. end end)()end end)()
  3843. coroutine.wrap(function()
  3844. local Old = Handle.CFrame.p
  3845. while wait()do
  3846. if not TrailDeb then break end
  3847. local New = Handle.CFrame.p
  3848. local Mag =(Old -New).magnitude
  3849. local Dis =(Old +New)/2
  3850. local Trail = Instance.new("Part",Character)
  3851. Trail.Material = "Neon"
  3852. Trail.Anchored = true
  3853. Trail.CanCollide = false
  3854. Trail.BrickColor = "Lime green"
  3855. Trail.Size = Vector3.new(0.2,Mag,0.2)
  3856. Trail.TopSurface = 0
  3857. Trail.BottomSurface = 0
  3858. Trail.formFactor = "Custom"
  3859. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  3860. local ms = Instance.new("BlockMesh",Trail)
  3861. ms.Scale = Vector3.new(1,1,1)
  3862. local TM = Instance.new("CylinderMesh",Trail)
  3863. TM.Scale = Vector3.new(1,1,1)
  3864. Old = New
  3865. coroutine.wrap(function()
  3866. for i = 1,0,-0.1 do
  3867. wait()
  3868. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  3869. end
  3870. Trail:remove()
  3871. end)()
  3872. coroutine.wrap(function()
  3873. for i = 1,10 do
  3874. wait()
  3875. Trail.Transparency = Trail.Transparency +0.1
  3876. end end)()end end)()
  3877. Footsteps:Stop()
  3878. Footsteps2:Stop()
  3879. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,500,1000,math.random(1000,2000),"Normal",RootPart,.2,1) end)
  3880. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,500,1000,math.random(1000,2000),"Normal",RootPart,.2,1) end)
  3881. so("http://www.roblox.com/asset/?id=159882578",Torso,1,1)
  3882. for i=0,1,0.1 do
  3883. swait()
  3884. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3885. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3886. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3887. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3888. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3889. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3890. end
  3891. if anim then
  3892. anim.Disabled=true
  3893. end
  3894. for i=0,1,0.05 do
  3895. swait()
  3896. Torso.Velocity=RootPart.CFrame.lookVector*20
  3897. so("http://www.roblox.com/asset/?id=231917758",LeftArm,0.2,1.2)
  3898. so("http://www.roblox.com/asset/?id=231917758",RightArm,0.2,1)
  3899. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(0+40*i)),.5)
  3900. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3901. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3902. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3903. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3904. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3905. end
  3906. for i=0,1,0.05 do
  3907. swait()
  3908. Torso.Velocity=RootPart.CFrame.lookVector*40
  3909. so("http://www.roblox.com/asset/?id=231917758",LeftArm,0.2,1.2)
  3910. so("http://www.roblox.com/asset/?id=231917758",RightArm,0.2,1)
  3911. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(41+80*i)),.5)
  3912. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3913. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3914. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3915. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3916. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3917. end
  3918. for i=0,1,0.05 do
  3919. swait()
  3920. Torso.Velocity=RootPart.CFrame.lookVector*60
  3921. so("http://www.roblox.com/asset/?id=231917758",LeftArm,0.2,1.2)
  3922. so("http://www.roblox.com/asset/?id=231917758",RightArm,0.2,1)
  3923. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(82+120*i)),.5)
  3924. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3925. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3926. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3927. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3928. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3929. end
  3930. so("http://www.roblox.com/asset/?id=159882625",Torso,1,1)
  3931. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1)
  3932. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1)
  3933. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1)
  3934. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1)
  3935. for i=0,1,0.05 do
  3936. swait()
  3937. Torso.Velocity=RootPart.CFrame.lookVector*80
  3938. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(124+160*i)),.5)
  3939. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3940. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3941. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3942. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3943. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3944. end
  3945. for i=0,1,0.005 do
  3946. swait()
  3947. Torso.Velocity=RootPart.CFrame.lookVector*100
  3948. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(168+4200*i)),.5)
  3949. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3950. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3951. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3952. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3953. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3954. end
  3955. --dmgstop()
  3956. Humanoid.WalkSpeed=12
  3957. attack=false
  3958. con1:disconnect()
  3959. con2:disconnect()
  3960. if anim then
  3961. anim.Disabled=false
  3962. end
  3963. if TrailDeb == true then
  3964. TrailDeb = false
  3965. end
  3966. end
  3967.  
  3968. function Push()
  3969. attack=true
  3970. mana=mana-20
  3971. if TrailDeb == false then
  3972. TrailDeb = true
  3973. end
  3974.  
  3975.  
  3976. coroutine.wrap(function()
  3977. local Old = Handle2.CFrame.p
  3978. while wait()do
  3979. if not TrailDeb then break end
  3980. local New = Handle2.CFrame.p
  3981. local Mag =(Old -New).magnitude
  3982. local Dis =(Old +New)/2
  3983. local Trail = Instance.new("Part",Character)
  3984. Trail.Material = "Neon"
  3985. Trail.Anchored = true
  3986. Trail.CanCollide = false
  3987. Trail.BrickColor = "Lime green"
  3988. Trail.Size = Vector3.new(0.2,Mag,0.2)
  3989. Trail.TopSurface = 0
  3990. Trail.BottomSurface = 0
  3991. Trail.formFactor = "Custom"
  3992. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  3993. local ms = Instance.new("BlockMesh",Trail)
  3994. ms.Scale = Vector3.new(1,1,1)
  3995. local TM = Instance.new("CylinderMesh",Trail)
  3996. TM.Scale = Vector3.new(1,1,1)
  3997. Old = New
  3998. coroutine.wrap(function()
  3999. for i = 1,0,-0.1 do
  4000. wait()
  4001. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  4002. end
  4003. Trail:remove()
  4004. end)()
  4005. coroutine.wrap(function()
  4006. for i = 1,10 do
  4007. wait()
  4008. Trail.Transparency = Trail.Transparency +0.1
  4009. end end)()end end)()
  4010. coroutine.wrap(function()
  4011. local Old = Handle.CFrame.p
  4012. while wait()do
  4013. if not TrailDeb then break end
  4014. local New = Handle.CFrame.p
  4015. local Mag =(Old -New).magnitude
  4016. local Dis =(Old +New)/2
  4017. local Trail = Instance.new("Part",Character)
  4018. Trail.Material = "Neon"
  4019. Trail.Anchored = true
  4020. Trail.CanCollide = false
  4021. Trail.BrickColor = "Lime green"
  4022. Trail.Size = Vector3.new(0.2,Mag,0.2)
  4023. Trail.TopSurface = 0
  4024. Trail.BottomSurface = 0
  4025. Trail.formFactor = "Custom"
  4026. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  4027. local ms = Instance.new("BlockMesh",Trail)
  4028. ms.Scale = Vector3.new(1,1,1)
  4029. local TM = Instance.new("CylinderMesh",Trail)
  4030. TM.Scale = Vector3.new(1,1,1)
  4031. Old = New
  4032. coroutine.wrap(function()
  4033. for i = 1,0,-0.1 do
  4034. wait()
  4035. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  4036. end
  4037. Trail:remove()
  4038. end)()
  4039. coroutine.wrap(function()
  4040. for i = 1,10 do
  4041. wait()
  4042. Trail.Transparency = Trail.Transparency +0.1
  4043. end end)()end end)()
  4044. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,100,200,math.random(200,400),"Normal",RootPart,.2,1) end)
  4045. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,100,200,math.random(200,400),"Normal",RootPart,.2,1) end)
  4046. for i=0,1,0.1 do
  4047. swait()
  4048. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  4049. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  4050. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4051. Handleweld.C0=clerp(Handleweld.C0,cf(-5,0,-10)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2)
  4052. Handle2weld.C0=clerp(Handle2weld.C0,cf(5,0,-10)*angles(math.rad(20),math.rad(20),math.rad(0)),.2)
  4053. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-20)),.3)
  4054. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(20)),.3)
  4055. end
  4056. so("http://www.roblox.com/asset/?id=231917758",Handle2,1,.8)
  4057. so("http://www.roblox.com/asset/?id=231917758",Handle,1,1)
  4058. so("http://www.roblox.com/asset/?id=159882481",Torso,1,1)
  4059. for i=0,1,0.1 do
  4060. swait()
  4061. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  4062. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  4063. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4064. Handleweld.C0=clerp(Handleweld.C0,cf(-4,0,-20)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2)
  4065. Handle2weld.C0=clerp(Handle2weld.C0,cf(4,0,-20)*angles(math.rad(20),math.rad(20),math.rad(0)),.2)
  4066. RW.C0=clerp(RW.C0,cf(1,0.5,-1)*angles(math.rad(90),math.rad(0),math.rad(-20)),.3)
  4067. LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*angles(math.rad(90),math.rad(0),math.rad(20)),.3)
  4068. end
  4069. --dmgstop()
  4070. attack=false
  4071. con1:disconnect()
  4072. con2:disconnect()
  4073. if TrailDeb == true then
  4074. TrailDeb = false
  4075. end
  4076. end
  4077.  
  4078. function Clap()
  4079. attack=true
  4080. mana=mana-20
  4081. if TrailDeb == false then
  4082. TrailDeb = true
  4083. end
  4084.  
  4085.  
  4086. coroutine.wrap(function()
  4087. local Old = Handle2.CFrame.p
  4088. while wait()do
  4089. if not TrailDeb then break end
  4090. local New = Handle2.CFrame.p
  4091. local Mag =(Old -New).magnitude
  4092. local Dis =(Old +New)/2
  4093. local Trail = Instance.new("Part",Character)
  4094. Trail.Material = "Neon"
  4095. Trail.Anchored = true
  4096. Trail.CanCollide = false
  4097. Trail.BrickColor = "Lime green"
  4098. Trail.Size = Vector3.new(0.2,Mag,0.2)
  4099. Trail.TopSurface = 0
  4100. Trail.BottomSurface = 0
  4101. Trail.formFactor = "Custom"
  4102. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  4103. local ms = Instance.new("BlockMesh",Trail)
  4104. ms.Scale = Vector3.new(1,1,1)
  4105. local TM = Instance.new("CylinderMesh",Trail)
  4106. TM.Scale = Vector3.new(1,1,1)
  4107. Old = New
  4108. coroutine.wrap(function()
  4109. for i = 1,0,-0.1 do
  4110. wait()
  4111. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  4112. end
  4113. Trail:remove()
  4114. end)()
  4115. coroutine.wrap(function()
  4116. for i = 1,10 do
  4117. wait()
  4118. Trail.Transparency = Trail.Transparency +0.1
  4119. end end)()end end)()
  4120. coroutine.wrap(function()
  4121. local Old = Handle.CFrame.p
  4122. while wait()do
  4123. if not TrailDeb then break end
  4124. local New = Handle.CFrame.p
  4125. local Mag =(Old -New).magnitude
  4126. local Dis =(Old +New)/2
  4127. local Trail = Instance.new("Part",Character)
  4128. Trail.Material = "Neon"
  4129. Trail.Anchored = true
  4130. Trail.CanCollide = false
  4131. Trail.BrickColor = "Lime green"
  4132. Trail.Size = Vector3.new(0.2,Mag,0.2)
  4133. Trail.TopSurface = 0
  4134. Trail.BottomSurface = 0
  4135. Trail.formFactor = "Custom"
  4136. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  4137. local ms = Instance.new("BlockMesh",Trail)
  4138. ms.Scale = Vector3.new(1,1,1)
  4139. local TM = Instance.new("CylinderMesh",Trail)
  4140. TM.Scale = Vector3.new(1,1,1)
  4141. Old = New
  4142. coroutine.wrap(function()
  4143. for i = 1,0,-0.1 do
  4144. wait()
  4145. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  4146. end
  4147. Trail:remove()
  4148. end)()
  4149. coroutine.wrap(function()
  4150. for i = 1,10 do
  4151. wait()
  4152. Trail.Transparency = Trail.Transparency +0.1
  4153. end end)()end end)()
  4154. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,200,300,math.random(200,400),"Normal",RootPart,.2,1) end)
  4155. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,200,300,math.random(200,400),"Normal",RootPart,.2,1) end)
  4156. so("http://www.roblox.com/asset/?id=159882584",Torso,1,0.9)
  4157. for i=0,1,0.08 do
  4158. swait()
  4159. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  4160. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  4161. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4162. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,1,-5)*angles(math.rad(0),math.rad(-40),math.rad(20)),.2)
  4163. Handleweld.C0=clerp(Handleweld.C0,cf(5,1,-5)*angles(math.rad(0),math.rad(40),math.rad(-20)),.2)
  4164. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-30,0,-20),.3)
  4165. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-30,0,20),.3)
  4166. end
  4167. so("http://www.roblox.com/asset/?id=231917758",Handle2,1,.8)
  4168. so("http://www.roblox.com/asset/?id=231917758",Handle,1,1)
  4169. for i=0,1,0.08 do
  4170. swait()
  4171. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  4172. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  4173. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4174. Handle2weld.C0=clerp(Handle2weld.C0,cf(4,1,-5)*angles(math.rad(0),math.rad(-43),math.rad(20)),.2)
  4175. Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-5)*angles(math.rad(0),math.rad(43),math.rad(-20)),.2)
  4176. LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*euler(-30,0,20),.3)
  4177. RW.C0=clerp(RW.C0,cf(1,0.5,-1)*euler(-30,0,-20),.3)
  4178. end
  4179. --dmgstop()
  4180. attack=false
  4181. con1:disconnect()
  4182. con2:disconnect()
  4183. if TrailDeb == true then
  4184. TrailDeb = false
  4185. end
  4186. end
  4187.  
  4188. function Hai()
  4189. attack=true
  4190. Humanoid.WalkSpeed=0
  4191. so("http://www.roblox.com/asset/?id=159882567",Torso,1,1)
  4192. for i=0,1,0.1 do
  4193. swait()
  4194. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  4195. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  4196. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4197. Handleweld.C0=clerp(Handleweld.C0,cf(0,5,3)*angles(math.rad(20),math.rad(-20),math.rad(20)),.2)
  4198. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.2)
  4199. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  4200. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  4201. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.3)
  4202. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3)
  4203. end
  4204. so("http://www.roblox.com/asset/?id=231917758",Handle,1,.8)
  4205. for i=0,1,0.1 do
  4206. swait()
  4207. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  4208. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  4209. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4210. Handleweld.C0=clerp(Handleweld.C0,cf(3,8,0)*angles(math.rad(0),math.rad(-20),math.rad(-30)),.2)
  4211. Handle2weld.C0=clerp(Handle2weld.C0,cf(0.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4212. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  4213. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  4214. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(50)),.5)
  4215. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3)
  4216. end
  4217. so("http://www.roblox.com/asset/?id=231917758",Handle,1,1)
  4218. for i=0,1,0.1 do
  4219. swait()
  4220. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  4221. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  4222. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4223. Handleweld.C0=clerp(Handleweld.C0,cf(0,5,3)*angles(math.rad(20),math.rad(-20),math.rad(20)),.2)
  4224. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.2)
  4225. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  4226. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  4227. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.3)
  4228. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3)
  4229.  
  4230. end
  4231. so("http://www.roblox.com/asset/?id=231917758",Handle,1,.8)
  4232. for i=0,1,0.1 do
  4233. swait()
  4234. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  4235. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  4236. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4237. Handleweld.C0=clerp(Handleweld.C0,cf(3,8,0)*angles(math.rad(0),math.rad(-20),math.rad(-30)),.2)
  4238. Handle2weld.C0=clerp(Handle2weld.C0,cf(0.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4239. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  4240. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  4241. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(50)),.3)
  4242. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3)
  4243. end
  4244. so("http://www.roblox.com/asset/?id=231917758",Handle,1,1)
  4245. for i=0,1,0.1 do
  4246. swait()
  4247. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  4248. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  4249. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4250. Handleweld.C0=clerp(Handleweld.C0,cf(0,5,3)*angles(math.rad(20),math.rad(-20),math.rad(20)),.2)
  4251. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.2)
  4252. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  4253. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  4254. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.3)
  4255. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3)
  4256. end
  4257. --dmgstop()
  4258. Humanoid.WalkSpeed=12
  4259. attack=false
  4260. end
  4261.  
  4262. function Die()
  4263. attack=true
  4264. Footsteps:Stop()
  4265. Footsteps2:Stop()
  4266. local Fire = it("Sound",Character.Torso)
  4267. Fire.SoundId = "rbxassetid://192104941"
  4268. Fire.Looped = true
  4269. Fire.Pitch = 1
  4270. Fire.Volume = 1
  4271. local Fire2 = it("Sound",Handle2)
  4272. Fire2.SoundId = "rbxassetid://192104941"
  4273. Fire2.Looped = true
  4274. Fire2.Pitch = 1
  4275. Fire2.Volume = 1
  4276. local Fire3 = it("Sound",Handle)
  4277. Fire3.SoundId = "rbxassetid://192104941"
  4278. Fire3.Looped = true
  4279. Fire3.Pitch = 1
  4280. Fire3.Volume = 1
  4281. local Fire4 = it("Sound",handle)
  4282. Fire4.SoundId = "rbxassetid://192104941"
  4283. Fire4.Looped = true
  4284. Fire4.Pitch = 1
  4285. Fire4.Volume = 1
  4286. local fire = Instance.new("ParticleEmitter", Character.Torso)
  4287. fire.Lifetime = NumberRange.new(0.5)
  4288. fire.Speed = NumberRange.new(1, 3)
  4289. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3.564, 2.521), NumberSequenceKeypoint.new(1, 3.534, 2.521)})
  4290. fire.Rate = 0
  4291. fire.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)})
  4292. fire.LightEmission = 0.6
  4293. fire.Texture = "http://www.roblox.com/asset/?id=242911609"
  4294. fire.Color = FireDeathColor
  4295. local fire2 = Instance.new("ParticleEmitter", Handle)
  4296. fire2.Lifetime = NumberRange.new(0.5)
  4297. fire2.Speed = NumberRange.new(1, 3)
  4298. fire2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 6.564, 5.521), NumberSequenceKeypoint.new(1, 6.534, 5.521)})
  4299. fire2.Rate = 0
  4300. fire2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)})
  4301. fire2.LightEmission = 0.6
  4302. fire2.Texture = "http://www.roblox.com/asset/?id=242911609"
  4303. fire2.Color = FireDeathColor
  4304. local fire3 = Instance.new("ParticleEmitter", Handle2)
  4305. fire3.Lifetime = NumberRange.new(0.5)
  4306. fire3.Speed = NumberRange.new(1, 3)
  4307. fire3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 6.564, 5.521), NumberSequenceKeypoint.new(1, 6.534, 5.521)})
  4308. fire3.Rate = 0
  4309. fire3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)})
  4310. fire3.LightEmission = 0.6
  4311. fire3.Texture = "http://www.roblox.com/asset/?id=242911609"
  4312. fire3.Color = FireDeathColor
  4313. local fire4 = Instance.new("ParticleEmitter", handle)
  4314. fire4.Lifetime = NumberRange.new(0.5)
  4315. fire4.Speed = NumberRange.new(1, 3)
  4316. fire4.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3.564, 2.521), NumberSequenceKeypoint.new(1, 3.534, 2.521)})
  4317. fire4.Rate = 0
  4318. fire4.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)})
  4319. fire4.LightEmission = 0.6
  4320. fire4.Texture = "http://www.roblox.com/asset/?id=242911609"
  4321. fire4.Color = FireDeathColor
  4322. Humanoid.WalkSpeed = 0
  4323. so("http://www.roblox.com/asset/?id=199149297",Head,1,1)
  4324. so("http://www.roblox.com/asset/?id=209527203",Head,1,1)
  4325. for i=0,1,0.08 do
  4326. swait()
  4327. Torso.Velocity=RootPart.CFrame.lookVector*-30
  4328. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,0)*angles(math.rad(-45),math.rad(0),math.rad(90)),.2)
  4329. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(45)),.2)
  4330. handleweld.C0=clerp(handleweld.C0,cf(0,5,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.2)
  4331. Handleweld.C0=clerp(Handleweld.C0,cf(0,5,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.2)
  4332. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,5,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.2)
  4333. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(45)),.2)
  4334. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),.2)
  4335. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
  4336. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
  4337. end
  4338. for i=0,1,0.005 do
  4339. swait()
  4340. moosick.Volume=1-2*i
  4341. light.Range=15-10*i
  4342. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,-2.5)*angles(math.rad(-90),math.rad(0),math.rad(180)),.2)
  4343. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  4344. handleweld.C0=clerp(handleweld.C0,cf(0,10,-5)*angles(math.rad(60),math.rad(30),math.rad(30)),.2)
  4345. Handleweld.C0=clerp(Handleweld.C0,cf(0,20,-5)*angles(math.rad(150),math.rad(0),math.rad(0)),.2)
  4346. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,20,-5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  4347. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(0),math.rad(90)),.2)
  4348. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4349. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4350. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4351. end
  4352. light.Range=0
  4353. for i=0,1,0.01 do
  4354. swait()
  4355. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,-2.5)*angles(math.rad(-90),math.rad(0),math.rad(180)),.2)
  4356. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  4357. handleweld.C0=clerp(handleweld.C0,cf(0,10,-5)*angles(math.rad(60),math.rad(30),math.rad(30)),.2)
  4358. Handleweld.C0=clerp(Handleweld.C0,cf(0,20,-5)*angles(math.rad(150),math.rad(0),math.rad(0)),.2)
  4359. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,20,-5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  4360. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(0),math.rad(90)),.2)
  4361. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4362. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4363. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4364. end
  4365. so("http://www.roblox.com/asset/?id=209527175",Head,1,0.9)
  4366. fire.Rate = 1000
  4367. fire2.Rate = 1000
  4368. fire3.Rate = 1000
  4369. fire4.Rate = 1000
  4370. Fire:Play()
  4371. Fire2:Play()
  4372. Fire3:Play()
  4373. Fire4:Play()
  4374. for i=0,1,0.005 do
  4375. swait()
  4376. Character.Head.face.Transparency = 0+1*i
  4377. LeftArm.Transparency=0+1*i
  4378. RightArm.Transparency=0+1*i
  4379. LeftLeg.Transparency=0+1*i
  4380. RightLeg.Transparency=0+1*i
  4381. Head.Transparency=0+1*i
  4382. Torso.Transparency=0+1*i
  4383. for _,v in pairs(Character:children()) do
  4384. if v:IsA("Hat") then
  4385. v.Handle.Transparency = 0+1*i
  4386. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,-2.5)*angles(math.rad(-90),math.rad(0),math.rad(180)),.2)
  4387. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  4388. handleweld.C0=clerp(handleweld.C0,cf(0,10,-5)*angles(math.rad(60),math.rad(30),math.rad(30)),.2)
  4389. Handleweld.C0=clerp(Handleweld.C0,cf(0,20,-5)*angles(math.rad(150),math.rad(0),math.rad(0)),.2)
  4390. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,20,-5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  4391. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(0),math.rad(90)),.2)
  4392. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4393. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4394. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4395. end
  4396. end
  4397. --dmgstop()
  4398. end
  4399. Humanoid.Health = 0
  4400. end
  4401.  
  4402. equipanim()
  4403.  
  4404. local sine = 0
  4405. local change = 1
  4406. local val = 0
  4407.  
  4408. local mananum=0
  4409. while true do
  4410. swait()
  4411. sine = sine + change
  4412. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  4413. local velderp=RootPart.Velocity.y
  4414. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  4415. if equipped==true or equipped==false then
  4416. if Anim=="Idle" and attack==false then
  4417. idle=idle+1
  4418. else
  4419. idle=0
  4420. end
  4421. if Humanoid.Health <=20 then
  4422. if attack == false then
  4423. Humanoid.Health = math.huge
  4424. Die()
  4425. end
  4426. end
  4427. if idle>=1000 then
  4428. if attack==false then
  4429. --Sheath()
  4430. end
  4431. end
  4432. if RootPart.Velocity.y > 1 and hitfloor==nil then
  4433. Anim="Jump"
  4434. if attack==false then
  4435. Footsteps:Stop()
  4436. Footsteps2:Stop()
  4437. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  4438. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  4439. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0),.3)
  4440. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.25,0,0.5),.3)
  4441. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  4442. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.25,0,-0.5),.3)
  4443. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  4444. RH.C0=clerp(RH.C0,cf(1,0,-.75)*euler(-0.5,1.57,0)*euler(0,0,0),.2)
  4445. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(0,0,0),.2)
  4446. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  4447. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(20),math.rad(0)),.2)
  4448. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2)
  4449. end
  4450. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  4451. Anim="Fall"
  4452. if attack==false then
  4453. Footsteps:Stop()
  4454. Footsteps2:Stop()
  4455. Neck.C0=clerp(Neck.C0,necko*euler(0.3,0,0),.3)
  4456. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  4457. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  4458. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.1,0,1),.3)
  4459. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  4460. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.1,0,-1),.3)
  4461. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  4462. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.6,1.57,0)*euler(0,0,0),.2)
  4463. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.8,-1.57,0)*euler(0,0,0),.2)
  4464. handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4465. Handleweld.C0=clerp(Handleweld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2)
  4466. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2)
  4467. end
  4468. elseif torvel<1 and hitfloor~=nil then
  4469. Anim="Idle"
  4470. change=0.5
  4471. if idle>=1000 then
  4472. if attack==false then
  4473. Footsteps:Stop()
  4474. Footsteps2:Stop()
  4475. Humanoid.WalkSpeed=12
  4476. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,6-0.25*math.cos(sine/5))*angles(math.rad(0),math.rad(0),math.rad(50)),.1)
  4477. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(5+2*math.cos(sine/5.5)),math.rad(-5-2*math.cos(sine/5.5)),math.rad(-50)),.1)
  4478. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.1)
  4479. RW.C0=clerp(RW.C0,cf(0.8,0.3,-0.5)*angles(math.rad(70),math.rad(0),math.rad(-85)),.5)
  4480. LW.C0=clerp(LW.C0,cf(-0.6,0.5,-0.7)*angles(math.rad(70),math.rad(0),math.rad(85)),.5)
  4481. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  4482. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  4483. handleweld.C0=clerp(handleweld.C0,cf(3.2,-1,-2)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  4484. Handleweld.C0=clerp(Handleweld.C0,cf(-2,-1.5+1*math.cos(sine/50),6)*angles(math.rad(60),math.rad(-25),math.rad(-90)),.4)
  4485. Handle2weld.C0=clerp(Handle2weld.C0,cf(5,1.5-0.5*math.cos(sine/50),-5)*angles(math.rad(-110),math.rad(25),math.rad(60)),.3)
  4486. --
  4487. Character.Humanoid.Health=Character.Humanoid.Health+.1
  4488. --
  4489. end
  4490. else
  4491. if attack==false then
  4492. Footsteps:Stop()
  4493. Footsteps2:Stop()
  4494. Humanoid.WalkSpeed=12
  4495. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(6),math.rad(0),math.rad(0)),.3)
  4496. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(3+3*math.cos(sine/36)),math.rad(0),math.rad(0)),.3)
  4497. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  4498. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(16-6*math.cos(sine/28))),.3)
  4499. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16+6*math.cos(sine/28))),.3)
  4500. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(16)),.3)
  4501. LH.C0=clerp(LH.C0,cf(-1,-1.1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(24)),.3)
  4502. handleweld.C0=clerp(handleweld.C0,cf(0-1*math.cos(sine/40),0-0.5*math.cos(sine/20),0)*angles(math.rad(-5+5*math.cos(sine/20)),math.rad(0),math.rad(0)),.2)
  4503. Handleweld.C0=clerp(Handleweld.C0,cf(0-1*math.cos(sine/30),0,0-1*math.cos(sine/30))*angles(math.rad(0+8*math.cos(sine/30)),math.rad(0),math.rad(0-8*math.cos(sine/30))),.2)
  4504. Handle2weld.C0=clerp(Handle2weld.C0,cf(0+1*math.cos(sine/36),0,0+1*math.cos(sine/36))*angles(math.rad(0-12*math.cos(sine/36)),math.rad(0),math.rad(0-12*math.cos(sine/36))),.2)
  4505. end
  4506. end
  4507. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  4508. Anim="Walk"
  4509. if attack==false then
  4510. change=0.8
  4511. --[[RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(35),math.rad(0),math.rad(15*math.cos(sine/10))),.3)
  4512. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  4513. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-135*math.cos(sine/9)),math.rad(0),math.rad(0)),.3)
  4514. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(135*math.cos(sine/9)),math.rad(0),math.rad(0)),.3)
  4515. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  4516. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  4517. --Handleweld.C0=clerp(--Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  4518. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  4519. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2)
  4520. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2)
  4521. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-5),math.rad(-25),math.rad(20)),.3)
  4522. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(5),math.rad(25),math.rad(-20)),.3)
  4523. RH.C0=clerp(RH.C0,RHC0,.3)
  4524. LH.C0=clerp(LH.C0,LHC0,.3)
  4525. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4526. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4527. ]]--
  4528. Footsteps:Play()
  4529. Footsteps2:Stop()
  4530. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+0.1*math.cos(sine/2.5))*angles(math.rad(10+1*math.cos(sine/2.5)),math.rad(0),math.rad(1-5*math.cos(sine/5))),.3)
  4531. Neck.C0=clerp(Neck.C0,necko*euler(0+0.075*math.cos(sine/2.5),0,0)*angles(math.rad(0),math.rad(0),math.rad(1+5*math.cos(sine/5))),.3)
  4532. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  4533. RW.C0=clerp(RW.C0,cf(1.4+0.25*math.cos(sine/5),0.5+0.25*math.cos(sine/5),-0.2+0.5*math.cos(sine/5))*angles(math.rad(20-60*math.cos(sine/5)),math.rad(0),math.rad(-4+30*math.cos(sine/5))),.3)
  4534. LW.C0=clerp(LW.C0,cf(-1.4+0.25*math.cos(sine/5),0.5-0.25*math.cos(sine/5),-0.2-0.5*math.cos(sine/5))*angles(math.rad(20+60*math.cos(sine/5)),math.rad(0),math.rad(4+30*math.cos(sine/5))),.3)
  4535. RH.C0=clerp(RH.C0,cf(1,-1-0.1*math.cos(sine/5),0-0.25*math.cos(sine/5))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0+50*math.cos(sine/5))),.3)
  4536. LH.C0=clerp(LH.C0,cf(-1,-1+0.1*math.cos(sine/5),0+0.25*math.cos(sine/5))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0+50*math.cos(sine/5))),.3)
  4537. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4538. Handleweld.C0=clerp(Handleweld.C0,cf(0-.5*math.cos(sine/30),0,0-.5*math.cos(sine/30))*angles(math.rad(0+1*math.cos(sine/30)),math.rad(-30),math.rad(0-1*math.cos(sine/30))),.2)
  4539. Handle2weld.C0=clerp(Handle2weld.C0,cf(0+.5*math.cos(sine/36),0,0+.5*math.cos(sine/36))*angles(math.rad(0-3*math.cos(sine/36)),math.rad(30),math.rad(0-3*math.cos(sine/36))),.2)
  4540. end
  4541. elseif torvel>=22 and hitfloor~=nil then
  4542. Anim="Run"
  4543. change=1
  4544. if attack==false then
  4545. Footsteps:Stop()
  4546. Footsteps2:Play()
  4547. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+0.1*math.cos(sine/2.5))*angles(math.rad(20+1*math.cos(sine/2.5)),math.rad(0),math.rad(0)),.3)
  4548. Neck.C0=clerp(Neck.C0,necko*euler(-0.2+0.075*math.cos(sine/2.5),0,0),.3)
  4549. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  4550. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(24)),.3)
  4551. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(-24)),.3)
  4552. RH.C0=clerp(RH.C0,cf(1,-1-0.1*math.cos(sine/5),0-0.5*math.cos(sine/5))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0+70*math.cos(sine/5))),.3)
  4553. LH.C0=clerp(LH.C0,cf(-1,-1+0.1*math.cos(sine/5),0+0.5*math.cos(sine/5))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0+70*math.cos(sine/5))),.3)
  4554. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4555. Handleweld.C0=clerp(Handleweld.C0,cf(0-.5*math.cos(sine/30),0,0-.5*math.cos(sine/30))*angles(math.rad(0+1*math.cos(sine/30)),math.rad(-60),math.rad(0-1*math.cos(sine/30))),.2)
  4556. Handle2weld.C0=clerp(Handle2weld.C0,cf(0+.5*math.cos(sine/36),0,0+.5*math.cos(sine/36))*angles(math.rad(0-3*math.cos(sine/36)),math.rad(60),math.rad(0-3*math.cos(sine/36))),.2)
  4557. end
  4558. end
  4559. end
  4560. fenbarmana2:TweenSize(UDim2.new(4*mana/100,0,0.2,0),nil,1,0.4,true)
  4561. fenbarmana4.Text="[Energy] <{[ "..mana.." ]}> [Energy]"
  4562. if mana>=100 then
  4563. mana=100
  4564. else
  4565. if mananum<=8 then
  4566. mananum=mananum+1
  4567. else
  4568. mananum=0
  4569. mana=mana+1
  4570. end
  4571. end
  4572. end
  4573. -- ~CLarramore
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement