VoidScript

SuperDragon

Sep 4th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 54.13 KB | None | 0 0
  1. --i used stravants Beautifier so it might look a bit wonky
  2. Meshes = {
  3. Blast = '20329976',
  4. Crown = '1323306',
  5. Ring = '3270017',
  6. Claw = '10681506',
  7. Crystal = '9756362',
  8. Coil = '9753878',
  9. Cloud = '1095708',
  10. }
  11. clangsounds = {
  12. '199149119',
  13. '199149109',
  14. '199149072',
  15. '199149025',
  16. '199148971'
  17. }
  18. hitsounds = {
  19. '199149137',
  20. '199149186',
  21. '199149221',
  22. '199149235',
  23. '199149269',
  24. '199149297'
  25. }
  26. blocksounds = {
  27. '199148933',
  28. '199148947'
  29. }
  30. armorsounds = {
  31. '199149321',
  32. '199149338',
  33. '199149367',
  34. '199149409',
  35. '199149452'
  36. }
  37. woosh = {
  38. Heavy1 = '320557353',
  39. Heavy2 = '320557382',
  40. Heavy3 = '320557453',
  41. Heavy4 = '199144226',
  42. Heavy5 = '203691447',
  43. Heavy6 = '203691467',
  44. Heavy7 = '203691492',
  45. Light1 = '320557413',
  46. Light2 = '320557487',
  47. Light3 = '199145095',
  48. Light4 = '199145146',
  49. Light5 = '199145887',
  50. Light6 = '199145913',
  51. Light7 = '199145841',
  52. Medium1 = '320557518',
  53. Medium2 = '320557537',
  54. Medium3 = '320557563',
  55. Medium4 = '199145204'
  56. }
  57. music = {--i like music a lot
  58. Breaking = '179281636',
  59. FinalReckoning = '357375770',
  60. NotDeadYet = '346175829',
  61. Intense = '151514610',
  62. JumpP1 = '160536628',
  63. JumpP2 = '60536666',
  64. SonsOfWar = '158929777',
  65. WrathOfSea = '165520893',
  66. ProtecTorsofEarth = '160542922',
  67. SkyTitans = '179282324',
  68. ArchAngel = '144043274',
  69. Anticipation = '168614529',
  70. TheMartyred = '186849544',
  71. AwakeP1 = '335631255',
  72. AwakeP2 = '335631297',
  73. ReadyAimFireP1 = '342455387',
  74. ReadyAimFireP2 = '342455399',
  75. DarkLordP1 = '209567483',
  76. DarkLordP2 = '209567529',
  77. BloodDrainP1 = '162914123',
  78. BloodDrainP2 = '162914203',
  79. DanceOfSwords = '320473062',
  80. Opal = '286415112',
  81. Calamity = '190454307',
  82. Hypnotica = '155968128',
  83. Nemisis = '160453802',
  84. Breathe = '276963903',
  85. GateToTheRift = '270655227',
  86. InfernalBeserking = '244143404',
  87. Trust = '246184492',
  88. AwakeningTheProject = '245121821',
  89. BloodPain = '242545577',
  90. Chaos = '247241693',
  91. NightmareFictionHighStake = '248062278',
  92. TheWhiteWeapon = '247236446',
  93. Gale = '256851659',
  94. ImperialCode = '256848383',
  95. Blitzkrieg = '306431437',
  96. RhapsodyRage = '348690251',
  97. TheGodFist = '348541501',
  98. BattleForSoul = '321185592',
  99. TheDarkColossus = '305976780',
  100. EmpireOfAngels = '302580452',
  101. Kronos = '302205297',
  102. Exorcist = '299796054',
  103. CrimsonFlames = '297799220',
  104. UltimatePower = '295753229',
  105. DrivingInTheDark = '295753229',
  106. AscendToPower = '293860654',
  107. GodOfTheSun = '293612495',
  108. DarkRider = '293861765',
  109. Vengeance = '293375555',
  110. SoundOfWar = '293376196',
  111. HellsCrusaders = '293012202',
  112. Legend = '293011823',
  113. RisingSouls = '290524959'
  114. }
  115. misc = {
  116. GroundSlam = '199145477',
  117. LaserSlash = '199145497',
  118. RailGunFire = '199145534',
  119. Charge1 = '199145659',
  120. Charge2 = '169380469',
  121. Charge3 = '169380479',
  122. EmptyGun = '203691822',
  123. GunShoot = '203691837',
  124. Stomp1 = '200632875',
  125. Stomp2 = '200632561',
  126. TelsaCannonCharge = '169445572',
  127. TelsaCannonShoot = '169445602',
  128. AncientHymm = '245313442'
  129. }
  130. wait(1 / 60)
  131. local Player = game.Players.localPlayer
  132. local Character = Player.Character
  133. local Humanoid = Character.Humanoid
  134. local mouse = Player:GetMouse()
  135. local m = Instance.new('Model', Character)
  136. m.Name = "WeaponModel"
  137. local LeftArm = Character["Left Arm"]
  138. local RightArm = Character["Right Arm"]
  139. local LeftLeg = Character["Left Leg"]
  140. local RightLeg = Character["Right Leg"]
  141. local Head = Character.Head
  142. local Torso = Character.Torso
  143. local cam = game.Workspace.CurrentCamera
  144. local RootPart = Character.HumanoidRootPart
  145. local RootJoint = RootPart.RootJoint
  146. --cam.CameraSubject = Head
  147. local equipped = false
  148. local attack = false
  149. local Anim = 'Idle'
  150. local idle = 0
  151. local sprint = false
  152. local battlestance = false
  153. local attacktype = 1
  154. local state = 'none'
  155. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  156. local velocity = RootPart.Velocity.y
  157. local sine = 0
  158. local change = 1
  159. local on = false
  160. local grabbed = false
  161. local skill1 = false
  162. local skill2 = false
  163. local skill3 = false
  164. local skill4 = false
  165. local cooldown1 = 0
  166. local cooldown2 = 0
  167. local cooldown3 = 0
  168. local cooldown4 = 0
  169. local co1 = 10--how long it will take for skill to cooldown
  170. local co2 = 15
  171. local co3 = 15
  172. local co4 = 25
  173. local inputserv = game:GetService('UserInputService')
  174. local typing = false
  175. local crit = false
  176. local critchance = 2--critical chance percentage
  177. local critdamageaddmin = 3--minimum amount of critical damage being added to regular damage
  178. local critdamageaddmax = 7--maximum amount
  179. local maxstamina = 100--max amount of stamina
  180. local stamina = 0--stamina you start out with
  181. local skill1stam = 10--how much stamina is needed for a skill
  182. local skill2stam = 10
  183. local skill3stam = 20
  184. local skill4stam = 30
  185. local recovermana = 3--how much mana per second
  186. local defensevalue = 1--how much defense this character has
  187. local speedvalue = 1--how much speed this character has
  188. --speed is 16*speedvalue
  189. local mindamage = 5--self explanatory
  190. local maxdamage = 7--self explanatory
  191. local damagevalue = 1--how much damage this character has
  192. --damage is math.random(mindamage,maxdamage)*damagevalue
  193. --damage(hit, mindamage, maxdamage, 1, 1, RootPart)
  194. --asd
  195. local cn = CFrame.new-- make things easier :)
  196. local mr = math.rad
  197. local angles = CFrame.Angles
  198. local ud = UDim2.new
  199. local c3 = Color3.new
  200. local skillcolorscheme = c3(1, 1, 1)--color scheme for skills lol
  201. --asd
  202. local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  203. Humanoid.Animator:Destroy()
  204.  
  205. --Angles For RootJoint `~`
  206. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  207. --Save Shoulders/Hips
  208. RSH, LSH = nil, nil
  209. RHS, LHS = nil, nil
  210. --Shoulders
  211. RW = Instance.new("Weld")
  212. LW = Instance.new("Weld")
  213. --Hips
  214. RH = Instance.new("Weld")
  215. LH = Instance.new("Weld")
  216. --
  217. Player = Player
  218. ch = Character
  219. LHS = Torso["Left Hip"]
  220. RHS = Torso["Right Hip"]
  221. RSH = ch.Torso["Right Shoulder"]
  222. LSH = ch.Torso["Left Shoulder"]
  223. --
  224. RSH.Parent = nil
  225. LSH.Parent = nil
  226. --
  227. LHS.Parent = nil
  228. RHS.Parent = nil
  229. --
  230. RW.Name = "RW"
  231. RW.Part0 = ch.Torso
  232. RW.C0 = cn(1.5, 0.5, 0)
  233. RW.C1 = cn(0, 0.5, 0)
  234. RW.Part1 = ch["Right Arm"]
  235. RW.Parent = ch.Torso
  236. --
  237. LW.Name = "LW"
  238. LW.Part0 = ch.Torso
  239. LW.C0 = cn(-1.5, 0.5, 0)
  240. LW.C1 = cn(0, 0.5, 0)
  241. LW.Part1 = ch["Left Arm"]
  242. LW.Parent = ch.Torso
  243. --
  244. LH.Name = "LH"
  245. LH.Part0 = ch.Torso
  246. LH.C0 = cn(-0.5, -2, 0)
  247. LH.Part1 = ch["Left Leg"]
  248. LH.Parent = ch.Torso
  249. --
  250. RH.Name = "RH"
  251. RH.Part0 = ch.Torso
  252. RH.C0 = cn(0.5, -2, 0)
  253. RH.Part1 = ch["Right Leg"]
  254. RH.Parent = ch.Torso
  255.  
  256. local Flying = false
  257.  
  258. game.Players.LocalPlayer.Character.Humanoid.Changed:connect(function(jump)
  259. if Flying == true then
  260. if jump == "Jump" then
  261. Humanoid.Jump = false
  262. end
  263. end
  264. end)
  265.  
  266. Humanoid.CameraOffset = Vector3.new(0, -2, 0)
  267.  
  268. Torso.Transparency = 1
  269. Head.Transparency = 1
  270. LeftLeg.Transparency = 1
  271. RightLeg.Transparency = 1
  272. LeftArm.Transparency = 1
  273. RightArm.Transparency = 1
  274.  
  275. for i,v in pairs (Character:GetChildren()) do
  276. if v.ClassName == "Hat"
  277. then v:Destroy()
  278. end
  279. end
  280.  
  281. for i,v in pairs (Character.Head:GetChildren()) do
  282. if v.ClassName == "Decal"
  283. then v:Destroy()
  284. end
  285. end
  286.  
  287. Character.Animate:Destroy()
  288.  
  289. local scrn = Instance.new('ScreenGui')
  290. scrn.Parent = nil
  291.  
  292. function makeframe(par, trans, pos, size, color)
  293. local frame = Instance.new('Frame', par)
  294. frame.BackgroundTransparency = trans
  295. frame.BorderSizePixel = 0
  296. frame.Position = pos
  297. frame.Size = size
  298. frame.BackgroundColor3 = color
  299. return frame
  300. end
  301. function makelabel(par, text)
  302. local label = Instance.new('TextLabel', par)
  303. label.BackgroundTransparency = 1
  304. label.Size = ud(1, 0, 1, 0)
  305. label.Position = ud(0, 0, 0, 0)
  306. label.TextColor3 = c3(255, 255, 255)
  307. label.TextStrokeTransparency = 0
  308. label.FontSize = Enum.FontSize.Size32
  309. label.Font = Enum.Font.SourceSansBold
  310. label.BorderSizePixel = 0
  311. label.TextScaled = true
  312. label.Text = text
  313. end
  314. framesk1 = makeframe(scrn, .5, ud(.23, 0, .93, 0), ud(.26, 0, .06, 0), skillcolorscheme)
  315. framesk2 = makeframe(scrn, .5, ud(.5, 0, .93, 0), ud(.26, 0, .06, 0), skillcolorscheme)
  316. framesk3 = makeframe(scrn, .5, ud(.5, 0, .86, 0), ud(.26, 0, .06, 0), skillcolorscheme)
  317. framesk4 = makeframe(scrn, .5, ud(.23, 0, .86, 0), ud(.26, 0, .06, 0), skillcolorscheme)
  318. bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  319. bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  320. bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  321. bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  322. text1 = makelabel(framesk1, '[3] Skill3')
  323. text2 = makelabel(framesk2, '[4] Skill4')
  324. text3 = makelabel(framesk3, "[2] Skill2")
  325. text4 = makelabel(framesk4, '[1] Skill1')
  326. staminabar = makeframe(scrn, .5, ud(.23, 0, .82, 0), ud(.26, 0, .03, 0), c3(61 / 255, 171 / 255, 1))
  327. staminacover = makeframe(staminabar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(61 / 255, 171 / 255, 1))
  328. staminatext = makelabel(staminabar, 'Mana')
  329. healthbar = makeframe(scrn, .5, ud(.5, 0, .82, 0), ud(.26, 0, .03, 0), c3(1, 1, 0))
  330. healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(1, 46 / 255, 49 / 255))
  331. healthtext = makelabel(healthbar, 'Health')
  332.  
  333. local stats = Instance.new('Folder', Character)
  334. stats.Name = 'Stats'
  335. local block = Instance.new('BoolValue', stats)
  336. block.Name = 'Block'
  337. block.Value = false
  338. local stun = Instance.new('BoolValue', stats)
  339. stun.Name = 'Stun'
  340. stun.Value = false
  341. local defense = Instance.new('NumberValue', stats)
  342. defense.Name = 'Defence'
  343. defense.Value = defensevalue
  344. local speed = Instance.new('NumberValue', stats)
  345. speed.Name = 'Speed'
  346. speed.Value = speedvalue
  347. local damagea = Instance.new('NumberValue', stats)
  348. damagea.Name = 'Damage'
  349. damagea.Value = damagevalue
  350.  
  351. function atktype(s, e)
  352. coroutine.resume(coroutine.create(function()
  353. attacktype = e
  354. wait(1.5)
  355. attacktype = s
  356. end))
  357. end
  358.  
  359. function turncrit()
  360. coroutine.resume(coroutine.create(function()
  361. print'CRITICAL!'
  362. crit = true
  363. wait(.25)
  364. crit = false
  365. end))
  366. end
  367.  
  368. function subtractstamina(k)
  369. if stamina >= k then
  370. stamina = stamina - k
  371. end
  372. end
  373.  
  374. function clerp(a, b, t)
  375. return a:lerp(b, t)
  376. end
  377.  
  378. function randomizer(percent)
  379. local randomized = math.random(0, 100)
  380. if randomized <= percent then
  381. return true
  382. elseif randomized >= percent then
  383. return false
  384. end
  385. end
  386.  
  387. local RbxUtility = LoadLibrary("RbxUtility")
  388. local Create = RbxUtility.Create
  389.  
  390. function RemoveOutlines(part)
  391. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  392. end
  393.  
  394. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  395. local Part = Create("Part"){
  396. formFactor = FormFactor,
  397. Parent = Parent,
  398. Reflectance = Reflectance,
  399. Transparency = Transparency,
  400. CanCollide = false,
  401. Locked = true,
  402. BrickColor = BrickColor.new(tostring(BColor)),
  403. Name = Name,
  404. Size = Size,
  405. Material = Material,
  406. }
  407. RemoveOutlines(Part)
  408. return Part
  409. end
  410.  
  411. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  412. local Msh = Create(Mesh){
  413. Parent = Part,
  414. Offset = OffSet,
  415. Scale = Scale,
  416. }
  417. if Mesh == "SpecialMesh" then
  418. Msh.MeshType = MeshType
  419. Msh.MeshId = MeshId
  420. end
  421. return Msh
  422. end
  423.  
  424. function CreateWeld(Parent, Part0, Part1, C0, C1)
  425. local Weld = Create("Weld"){
  426. Parent = Parent,
  427. Part0 = Part0,
  428. Part1 = Part1,
  429. C0 = C0,
  430. C1 = C1,
  431. }
  432. return Weld
  433. end
  434.  
  435. function rayCast(pos, dir, maxl, ignore)
  436. return game:service("Workspace"):FindPartOnRay(Ray.new(pos, dir.unit * (maxl or 999.999)), ignore)
  437. end
  438. --Effects
  439. function makeeffect(par, size, pos1, trans, trans1, howmuch, delay1, id, type)
  440. local p = Instance.new('Part', par or workspace)
  441. p.CFrame = pos1
  442. p.Anchored = true
  443. p.Material = 'SmoothPlastic'
  444. p.CanCollide = false
  445. p.TopSurface = 0
  446. p.Size = Vector3.new(1, 1, 1)
  447. p.BottomSurface = 0
  448. p.Transparency = trans
  449. p.FormFactor = 'Custom'
  450. RemoveOutlines(p)
  451. local mesh = Instance.new('SpecialMesh', p)
  452. mesh.Scale = size
  453. if id ~= nil and type == nil then
  454. mesh.MeshId = 'rbxassetid://'..id
  455. elseif id == nil and type ~= nil then
  456. mesh.MeshType = type
  457. elseif id == nil and type == nil then
  458. mesh.MeshType = 'Brick'
  459. end
  460. coroutine.wrap(function()
  461. for i = 0, delay1, .1 do
  462. wait(1 / 60)
  463. p.CFrame = p.CFrame
  464. mesh.Scale = mesh.Scale + howmuch
  465. p.Transparency = p.Transparency + trans1
  466. end
  467. p:Destroy()
  468. end)()
  469. return p
  470. end
  471. function clangy(cframe)
  472. wait(1 / 60)
  473. local clang = {}
  474. local dis = 0
  475. local part = Instance.new('Part', nil)
  476. part.CFrame = cframe
  477. part.Anchored = true
  478. part.CanCollide = false
  479. part.BrickColor = BrickColor.new('New Yeller')
  480. part.FormFactor = 'Custom'
  481. part.Name = 'clanger'
  482. part.Size = Vector3.new(.2, .2, .2)
  483. part.TopSurface = 10
  484. part.BottomSurface = 10
  485. part.RightSurface = 10
  486. part.LeftSurface = 10
  487. part.BackSurface = 10
  488. part.FrontSurface = 10
  489. --part.Material='Neon'
  490. part:BreakJoints()
  491. local mesh = Instance.new('BlockMesh', part)
  492. coroutine.wrap(function()
  493. for i = 1, 7 do
  494. wait(1 / 60)
  495. dis = dis + .2
  496. local partc = part:clone()
  497. partc.Parent = workspace
  498. partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0)
  499. partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0)
  500. table.insert(clang, partc)
  501. end
  502. for i, v in pairs(clang) do
  503. coroutine.wrap(function()
  504. for i = 1, 10 do
  505. wait(.01)
  506. v.Transparency = v.Transparency + .1
  507. end
  508. v:destroy()
  509. end)()
  510. end
  511. end)()
  512. end
  513. --damage effects
  514. function circle(color, pos1)
  515. local p = Instance.new('Part', m)
  516. p.BrickColor = BrickColor.new(color)
  517. p.CFrame = pos1
  518. p.Anchored = true
  519. p.Material = 'Plastic'
  520. p.CanCollide = false
  521. p.TopSurface = 0
  522. p.Size = Vector3.new(1, 1, 1)
  523. p.BottomSurface = 0
  524. p.Transparency = 0.35
  525. p.FormFactor = 'Custom'
  526. local mesh = Instance.new('CylinderMesh', p)
  527. mesh.Scale = Vector3.new(0, 0, 0)
  528. coroutine.wrap(function()
  529. for i = 0, 5, .1 do
  530. wait(1 / 60)
  531. p.CFrame = p.CFrame
  532. mesh.Scale = mesh.Scale + Vector3.new(.5, 0, .5)
  533. p.Transparency = p.Transparency + .025
  534. end
  535. p:Destroy()
  536. end)()
  537. end
  538. function firespaz1(color, pos1)
  539. local p = Instance.new('Part', m)
  540. p.BrickColor = BrickColor.new(color)
  541. p.CFrame = pos1
  542. p.Anchored = true
  543. p.Material = 'Plastic'
  544. p.CanCollide = false
  545. p.TopSurface = 0
  546. p.Size = Vector3.new(1, 1, 1)
  547. p.BottomSurface = 0
  548. p.Transparency = 0.5
  549. p.FormFactor = 'Custom'
  550. local mesh = Instance.new('BlockMesh', p)
  551. mesh.Scale = Vector3.new(1, 1, 1)
  552. coroutine.wrap(function()
  553. for i = 0, 15, .1 do
  554. wait(1 / 30)
  555. p.CFrame = p.CFrame * CFrame.new(0, .1, 0)
  556. mesh.Scale = mesh.Scale - Vector3.new(.1, .1, .1)
  557. p.Transparency = p.Transparency + .025
  558. end
  559. p:Destroy()
  560. end)()
  561. end
  562.  
  563. function pickrandom(tablesa)
  564. local randomized = tablesa[math.random(1, #tablesa)]
  565. return randomized
  566. end
  567. function sound(id, pitch, volume, par, last)
  568. local s = Instance.new('Sound', par or Torso)
  569. s.SoundId = 'rbxassetid://'..id
  570. s.Pitch = pitch or 1
  571. s.Volume = volume or 1
  572. wait()
  573. s:play()
  574. game.Debris:AddItem(s, last or 120)
  575. end
  576. function clangy(cframe)
  577. wait(1 / 60)
  578. local clang = {}
  579. local dis = 0
  580. local part = Instance.new('Part', nil)
  581. part.CFrame = cframe
  582. part.Anchored = true
  583. part.CanCollide = false
  584. part.BrickColor = BrickColor.new('New Yeller')
  585. part.FormFactor = 'Custom'
  586. part.Name = 'clanger'
  587. part.Size = Vector3.new(.2, .2, .2)
  588. part.TopSurface = 10
  589. part.BottomSurface = 10
  590. part.RightSurface = 10
  591. part.LeftSurface = 10
  592. part.BackSurface = 10
  593. part.FrontSurface = 10
  594. --part.Material='Neon'
  595. part:BreakJoints()
  596. local mesh = Instance.new('BlockMesh', part)
  597. coroutine.wrap(function()
  598. for i = 1, 7 do
  599. wait(1 / 60)
  600. dis = dis + .2
  601. local partc = part:clone()
  602. partc.Parent = workspace
  603. partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0)
  604. partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0)
  605. table.insert(clang, partc)
  606. end
  607. for i, v in pairs(clang) do
  608. coroutine.wrap(function()
  609. for i = 1, 10 do
  610. wait(.01)
  611. v.Transparency = v.Transparency + .1
  612. end
  613. v:destroy()
  614. end)()
  615. end
  616. end)()
  617. end
  618. --damage effects
  619. --Effects
  620. so = function(id, par, vol, pit)
  621. coroutine.resume(coroutine.create(function()
  622. local sou = Instance.new("Sound", par or workspace)
  623. sou.Volume = vol
  624. sou.Pitch = pit or 1
  625. sou.SoundId = id
  626. wait()
  627. sou:play()
  628. game:GetService("Debris"):AddItem(sou, 6)
  629. end))
  630. end
  631.  
  632. local function getclosest(obj, distance)
  633. local last, lastx = distance + 1
  634. for i, v in pairs(workspace:GetChildren()) do
  635. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  636. local t = v.Torso
  637. local dist = (t.Position - obj.Position).magnitude
  638. if dist <= distance then
  639. if dist < last then
  640. last = dist
  641. lastx = v
  642. end
  643. end
  644. end
  645. end
  646. return lastx
  647. end
  648.  
  649. function makegui(cframe, text)
  650. local a = math.random(-10, 10) / 100
  651. local c = Instance.new("Part")
  652. c.Transparency = 1
  653. Instance.new("BodyGyro").Parent = c
  654. c.Parent = m
  655. c.CFrame = CFrame.new(cframe.p + Vector3.new(0, 1.5, 0))
  656. local f = Instance.new("BodyPosition")
  657. f.P = 2000
  658. f.D = 100
  659. f.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  660. f.position = c.Position + Vector3.new(0, 3, 0)
  661. f.Parent = c
  662. game:GetService("Debris"):AddItem(c, .5 + 6)
  663. c.CanCollide = false
  664. m.Parent = workspace
  665. c.CanCollide = false
  666. local bg = Instance.new('BillboardGui', m)
  667. bg.Adornee = c
  668. bg.Size = UDim2.new(1, 0, 1, 0)
  669. bg.StudsOffset = Vector3.new(0, 0, 0)
  670. bg.AlwaysOnTop = false
  671. local tl = Instance.new('TextLabel', bg)
  672. tl.BackgroundTransparency = 1
  673. tl.Size = UDim2.new(1, 0, 1, 0)
  674. tl.Text = text
  675. tl.Font = 'SourceSansBold'
  676. tl.FontSize = 'Size42'
  677. if crit == true then
  678. tl.TextColor3 = Color3.new(180 / 255, 0, 0)
  679. else
  680. tl.TextColor3 = Color3.new(255, 180 / 255, 51 / 255)
  681. end
  682. tl.TextStrokeTransparency = 0
  683. tl.TextScaled = true
  684. tl.TextWrapped = true
  685. coroutine.wrap(function()
  686. wait(2)
  687. for i = 1, 10 do
  688. wait()
  689. tl.TextTransparency = tl.TextTransparency + .1
  690. end
  691. end)()
  692. end
  693.  
  694. function tag(hum, Player)
  695. local creator = Instance.new('ObjectValue', hum)
  696. creator.Value = Player
  697. creator.Name = 'creator'
  698. end
  699. function untag(hum)
  700. if hum ~= nil then
  701. local tag = hum:findFirstChild("creator")
  702. if tag ~= nil then
  703. tag.Parent = nil
  704. end
  705. end
  706. end
  707.  
  708. function tagPlayer(h)
  709. coroutine.wrap(function()
  710. tag(h, Player)
  711. wait(1)
  712. untag(h)
  713. end)()
  714. end
  715. function damage(hit, mind, maxd, knock, type, prop)
  716. --[[
  717. to apply it to a Player directly, make the first arg go to the Players Torso
  718. 1 - normal type(damage and knockback)
  719. 2 - drain type(damage no knockback)
  720. 3 - lifesteal(absorbs hp) crit does not have an effect on how much life is absorbed
  721. 4 - heal(heals target)
  722. 5 - subtracts enemies defense
  723. 6 - subtracts enemies speed
  724. 7 -
  725. ]]
  726. if hit.Name:lower() == 'Hitbox' then
  727. local pos = CFrame.new(0, 1, -1)
  728. sound(pickrandom(clangsounds), math.random(100, 150) / 100, 1, Torso, 6)
  729. coroutine.wrap(function()
  730. for i = 1, 4 do
  731. clangy(Torso.CFrame * pos * CFrame.Angles(0, math.rad(math.random(0, 360)), 0))
  732. end
  733. end)()
  734. end
  735. if hit.Parent == nil then
  736. return
  737. end
  738. local h = hit.Parent:FindFirstChild("Humanoid")
  739. for i, v in pairs(hit.Parent:children()) do
  740. if v:IsA("Humanoid") then
  741. h = v
  742. end
  743. end
  744. if hit.Parent.Parent:FindFirstChild('Torso') ~= nil then
  745. h = hit.Parent.Parent:FindFirstChild('Humanoid')
  746. end
  747. if hit.Parent:IsA('Hat') then
  748. hit = hit.Parent.Parent:findFirstChild('Head')
  749. end
  750. local D = math.random(mind, maxd) * damagea.Value
  751. if h.Parent:FindFirstChild('Stats') then
  752. D = D / h.Parent:FindFirstChild('Stats').Defence.Value
  753. elseif not h.Parent:FindFirstChild('Stats') then
  754. D = D
  755. end
  756. if h then
  757. makegui(h.Parent.Head.CFrame, tostring(math.floor(D + .5)))
  758. end
  759. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  760. if type == 1 then
  761. tagPlayer(h)
  762. local asd = randomizer(critchance)
  763. if asd == true then
  764. turncrit()
  765. end
  766. if crit == false then
  767. h.Health = h.Health - D
  768. else
  769. h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
  770. end
  771. so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100)
  772. local vp = Instance.new('BodyVelocity')
  773. vp.P = 500
  774. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  775. vp.velocity = prop.CFrame.lookVector * knock + prop.Velocity / 1.05
  776. if knock > 0 then
  777. vp.Parent = hit.Parent.Torso
  778. end
  779. game:GetService("Debris"):AddItem(vp, .5)
  780. elseif type == 2 then
  781. so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100)
  782. local asd = randomizer(critchance)
  783. if asd == true then
  784. turncrit()
  785. end
  786. if crit == false then
  787. h.Health = h.Health - D
  788. else
  789. h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
  790. end
  791. tagPlayer(h)
  792. elseif type == 3 then
  793. tagPlayer(h)
  794. local asd = randomizer(critchance)
  795. if asd == true then
  796. turncrit()
  797. end
  798. if crit == false then
  799. h.Health = h.Health - D
  800. else
  801. h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
  802. end
  803. Character.Humanoid.Health = Character.Humanoid.Health + D / 2
  804. so("http://www.roblox.com/asset/?id=206083232", hit, 1, 1.5)
  805. for i = 1, 10 do
  806. firespaz1('Bright red', hit.CFrame * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)))
  807. end
  808. elseif type == 4 then
  809. h.Health = h.Health + D
  810. so("http://www.roblox.com/asset/?id=186883084", hit, 1, 1)
  811. circle('Dark green', h.Parent.Torso.CFrame * CFrame.new(0, -2.5, 0))
  812. end
  813. end
  814. end
  815.  
  816. function subtrackstamina(k)
  817. if stamina >= k then
  818. stamina = stamina - k
  819. end
  820. end
  821.  
  822. Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(2.39999986, 1.20000005, 1.39999998))
  823. Handleweld=CreateWeld(m,Torso,Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.200019836, 2.05684233, -1.52587891e-005, -3.33786011e-006, 5.10364771e-007, -1.00000072, 7.4505806e-007, 0.999990106, 5.23030758e-006, 0.999992847, 1.10268593e-006, -2.98023224e-006))
  824. CreateMesh("SpecialMesh",Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  825. LLeg1Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","LLeg1Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024))
  826. LLeg1Connectorweld=CreateWeld(m,Handle,LLeg1Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.271961212, 0.323261261, 0.554561615, 0.953878522, 0.237942964, 0.183013678, -0.270872086, 0.945040286, 0.183021933, -0.12940976, -0.224147677, 0.965908945))
  827. CreateMesh("SpecialMesh",LLeg1Connector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  828. LLeg2Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","LLeg2Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024))
  829. LLeg2Connectorweld=CreateWeld(m,Handle,LLeg2Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.286304474, 0.549964905, 0.383785248, 0.87001282, -0.368683487, -0.327339649, 0.475172013, 0.804078519, 0.357260257, 0.131499231, -0.466358542, 0.874748588))
  830. CreateMesh("SpecialMesh",LLeg2Connector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  831. NeckHandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","NeckHandleConnector",Vector3.new(0.799999714, 0.800000012, 0.99999994))
  832. NeckHandleConnectorweld=CreateWeld(m,Handle,NeckHandleConnector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.800014496, 2.2649765e-006, -1.52587891e-005, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695))
  833. CreateMesh("SpecialMesh",NeckHandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  834. RLeg2Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","RLeg2Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024))
  835. RLeg2Connectorweld=CreateWeld(m,Handle,RLeg2Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.284488678, 0.502339363, -0.511051178, 0.866028607, -0.433008194, 0.249994621, 0.482959986, 0.853833973, -0.194110557, -0.12941049, 0.288845479, 0.948575199))
  836. CreateMesh("SpecialMesh",RLeg2Connector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  837. RLeg1Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","RLeg1Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024))
  838. RLeg1Connectorweld=CreateWeld(m,Handle,RLeg1Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.434127808, 0.261667252, -0.51184082, 0.953878462, 0.277202159, 0.115192153, -0.270872086, 0.960207343, -0.0678096935, -0.129410967, 0.0334844999, 0.991011441))
  839. CreateMesh("SpecialMesh",RLeg1Connector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  840. TailHandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","TailHandleConnector",Vector3.new(0.799999714, 0.800000012, 0.99999994))
  841. TailHandleConnectorweld=CreateWeld(m,Handle,TailHandleConnector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.800014496, -4.17232513e-006, -1.14440918e-005, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695))
  842. CreateMesh("SpecialMesh",TailHandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  843. Wings=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wings",Vector3.new(1.38, 0.600000024, 0.400000006))
  844. Wingsweld=CreateWeld(m,Handle,Wings,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00999832153, -1.35054588, -0.870742798, -3.57603994e-007, 1.84772534e-006, 0.999992847, 0.707109332, 0.707094491, -2.27373675e-013, -0.707105219, 0.707105219, 0))
  845. CreateMesh("SpecialMesh",Wings,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=188700920 ",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.600000024, 0.928000093))
  846. HeadHandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","HeadHandleConnector",Vector3.new(0.799999774, 0.800000012, 1.19999993))
  847. HeadHandleConnectorweld=CreateWeld(m, NeckHandleConnector, HeadHandleConnector, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.13883209, -1.22878647, -4.95910645e-005, 0.965921879, -0.258816749, -8.3394184e-007, 0.258814901, 0.965910494, 1.70232727e-006, 7.33734851e-009, -1.24428539e-008, 0.999992847))
  848. CreateMesh("SpecialMesh",HeadHandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  849. HeadHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","HeadHandle",Vector3.new(0.799999774, 0.800000012, 1.19999993))
  850. HeadHandleweld=CreateWeld(m,HeadHandleConnector,HeadHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(.5,.3,0))
  851. CreateMesh("SpecialMesh",HeadHandle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  852. BlinkPartL=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","BlinkPartL",Vector3.new(0.430000007, 0.349999994, 0.209999993))
  853. BlinkPartLweld=CreateWeld(m,HeadHandle,BlinkPartL,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.627552032, -0.15424633, 0.675392151, 0.965920627, 3.52720974e-007, 0.258818448, -3.27823614e-007, 0.999994576, -4.27638327e-007, -0.258816987, 3.32397349e-007, 0.965925992))
  854. CreateMesh("SpecialMesh",BlinkPartL,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  855. BlinkPartR=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","BlinkPartR",Vector3.new(0.430000007, 0.349999994, 0.209999919))
  856. BlinkPartRweld=CreateWeld(m,HeadHandle,BlinkPartR,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.668586731, 0.0254650116, 0.6536026, 0.963257611, 0.166627169, -0.210616693, 0.170450777, -0.985360563, 7.06354513e-007, -0.207533255, -0.035900455, -0.977568686))
  857. CreateMesh("SpecialMesh",BlinkPartR,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  858. Head=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Head",Vector3.new(1.59999979, 1, 1.19999993))
  859. Headweld=CreateWeld(m,HeadHandle,Head,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399993896, -0.100018501, -3.81469727e-006, 0.999994338, -7.45053441e-008, 0, 4.59620352e-013, 0.999994516, 5.40012479e-013, -6.82121026e-013, -1.62003744e-012, 1))
  860. CreateMesh("SpecialMesh",Head,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  861. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"New Yeller","Part",Vector3.new(0.200000003, 1.39999998, 0.200000003))
  862. Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.268547058, 0.0147666931, 0.492343903, 0.266456544, 0.961500287, -0.0669870079, -0.937416613, 0.24235782, -0.249999925, -0.22414504, 0.129409671, 0.965918422))
  863. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  864. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 1.39999998, 0.400000006))
  865. Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.35981369, -0.0811252594, -0.392364502, 0.499998569, 0.866011322, 1.38495011e-007, -0.836511791, 0.482955486, 0.258817196, 0.224141717, -0.129405871, 0.965918958))
  866. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  867. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 1.39999998, 0.400000006))
  868. Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.359809875, -0.0811347961, 0.392364502, 0.500002265, 0.866017759, 4.3843329e-009, -0.836509109, 0.48296532, -0.25881812, -0.224141061, 0.129409656, 0.965926051))
  869. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  870. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"New Yeller","Part",Vector3.new(0.200000003, 1.39999998, 0.200000003))
  871. Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.268550873, 0.0147647858, -0.492359161, 0.266456187, 0.961500764, 0.066986382, -0.937418401, 0.242359444, 0.249994203, 0.224138066, -0.129404321, 0.965920031))
  872. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  873. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"New Yeller","Part",Vector3.new(0.599999785, 0.400000006, 0.399999917))
  874. Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.706802368, -0.148231506, -0.399997711, 0.999991596, -8.94065053e-008, -6.82121026e-013, -4.47030253e-008, 0.999991894, -1.00897068e-012, -4.54747351e-013, -1.05160325e-012, 1))
  875. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  876. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"New Yeller","Part",Vector3.new(0.599999785, 0.400000006, 0.399999917))
  877. Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.706802368, -0.148216248, 0.399990082, 0.999985158, -5.96041865e-008, -1.13686838e-012, -8.94065053e-008, 0.999985576, -1.15107923e-012, -6.82121026e-013, -1.44950718e-012, 1))
  878. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  879. LLeg1Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","LLeg1Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024))
  880. LLeg1Handleweld=CreateWeld(m,LLeg1Connector,LLeg1Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0365982056, 0.0366020203, 0.193164825, 0.999997556, -8.96677375e-006, -5.36441803e-007, -8.96677375e-006, 0.999984801, 3.7252903e-006, -5.36441803e-007, 3.7252903e-006, 0.999984503))
  881. CreateMesh("SpecialMesh",LLeg1Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  882. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024))
  883. Partweld=CreateWeld(m,LLeg1Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.299993515, 7.62939453e-006, 0.999997556, -8.96677375e-006, -5.36441803e-007, -8.96677375e-006, 0.999984801, 3.7252903e-006, -5.36441803e-007, 3.7252903e-006, 0.999984503))
  884. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  885. LLeg2Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","LLeg2Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024))
  886. LLeg2Handleweld=CreateWeld(m,LLeg2Connector,LLeg2Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0654640198, 0.0714416504, 0.174942017, 1.0000006, 4.96953726e-006, 2.38418579e-006, 4.96953726e-006, 0.999982536, 4.35113907e-006, 2.38418579e-006, 4.35113907e-006, 0.999983668))
  887. CreateMesh("SpecialMesh",LLeg2Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  888. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024))
  889. Partweld=CreateWeld(m,LLeg2Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, 0.300003052, 0, 1.0000006, 4.96953726e-006, 2.38418579e-006, 4.96953726e-006, 0.999982536, 4.35113907e-006, 2.38418579e-006, 4.35113907e-006, 0.999983668))
  890. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  891. RLeg1Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","RLeg1Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024))
  892. RLeg1Handleweld=CreateWeld(m,RLeg1Connector,RLeg1Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 0.999997318, -9.39005986e-006, -1.82539225e-006, -9.39005986e-006, 0.999983907, 2.83867121e-006, -1.82539225e-006, 2.83867121e-006, 0.999985874))
  893. CreateMesh("SpecialMesh",RLeg1Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  894. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024))
  895. Partweld=CreateWeld(m,RLeg1Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.81469727e-006, 0.299995422, 7.62939453e-006, 0.999997318, -9.39005986e-006, -1.82539225e-006, -9.39005986e-006, 0.999983907, 2.83867121e-006, -1.82539225e-006, 2.83867121e-006, 0.999985874))
  896. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  897. RLeg2Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","RLeg2Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024))
  898. RLeg2Handleweld=CreateWeld(m,RLeg2Connector,RLeg2Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0499954224, 0.038819313, -0.189697266, 0.999999583, 6.79865479e-006, -3.51667404e-006, 6.79865479e-006, 0.999980748, -1.23679638e-006, -3.51667404e-006, -1.23679638e-006, 0.999986768))
  899. CreateMesh("SpecialMesh",RLeg2Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  900. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024))
  901. Partweld=CreateWeld(m,RLeg2Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, 0.299996376, -7.62939453e-006, 0.999999583, 6.79865479e-006, -3.51667404e-006, 6.79865479e-006, 0.999980748, -1.23679638e-006, -3.51667404e-006, -1.23679638e-006, 0.999986768))
  902. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  903. NeckHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","NeckHandle",Vector3.new(0.799999714, 0.800000012, 0.99999994))
  904. NeckHandleweld=CreateWeld(m,NeckHandleConnector,NeckHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695))
  905. CreateMesh("SpecialMesh",NeckHandle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  906. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.5999999, 0.800000012, 0.99999994))
  907. Partweld=CreateWeld(m,NeckHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.673364639, 0.315284729, 1.14440918e-005, 0.499996573, 0.866005898, 1.41687553e-006, -0.866028965, 0.499994099, 1.24860276e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695))
  908. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  909. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.5999999, 1, 1.39999998))
  910. Partweld=CreateWeld(m,NeckHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.456003189, -0.000812530518, 1.52587891e-005, 0.707109332, 0.707094491, 1.05421987e-006, -0.707105219, 0.707105219, 1.56317299e-006, 2.27782948e-009, -3.0485694e-009, 0.999992847))
  911. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  912. TailHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","TailHandle",Vector3.new(0.799999714, 0.800000012, 0.99999994))
  913. TailHandleweld=CreateWeld(m,TailHandleConnector,TailHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, -1.90734863e-006, 0, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695))
  914. CreateMesh("SpecialMesh",TailHandle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  915. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.39999974, 0.800000012, 0.99999994))
  916. Partweld=CreateWeld(m,TailHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.299999237, 3.57627869e-007, 0, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695))
  917. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  918. Tail2HandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Tail2HandleConnector",Vector3.new(0.599999726, 0.800000012, 0.799999952))
  919. Tail2HandleConnectorweld=CreateWeld(m,TailHandle,Tail2HandleConnector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.674129486, -0.0147686005, -0.00961303711, 0.999255121, 0.0334871411, -0.0192402583, -0.0341572762, 0.998781741, -0.0350642987, 0.0180421956, 0.0356986672, 0.999185622))
  920. CreateMesh("SpecialMesh",Tail2HandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  921. Tail2Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Tail2Handle",Vector3.new(0.599999726, 0.800000012, 0.799999952))
  922. Tail2Handleweld=CreateWeld(m,Tail2HandleConnector,Tail2Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1.00000131, -5.39020402e-006, -1.95577741e-007, -5.39020402e-006, 0.999980748, 1.59069896e-006, -1.95577741e-007, 1.59069896e-006, 0.999985993))
  923. CreateMesh("SpecialMesh",Tail2Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  924. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.39999974, 0.800000012, 0.799999952))
  925. Partweld=CreateWeld(m,Tail2Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.399993896, -2.86102295e-006, 3.81469727e-006, 1.00000131, -5.39020402e-006, -1.95577741e-007, -5.39020402e-006, 0.999980748, 1.59069896e-006, -1.95577741e-007, 1.59069896e-006, 0.999985993))
  926. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  927. Tail3HandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Tail3HandleConnector",Vector3.new(0.599999845, 0.800000012, 0.799999952))
  928. Tail3HandleConnectorweld=CreateWeld(m,Tail2Handle,Tail3HandleConnector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.933692932, 0.152185202, 0.0128250122, 0.989802122, -0.139427915, 0.0292246509, 0.138289496, 0.989660025, 0.0377997532, -0.0341934189, -0.0333709307, 0.998850942))
  929. CreateMesh("SpecialMesh",Tail3HandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  930. Tail3Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Tail3Handle",Vector3.new(0.599999845, 0.800000012, 0.799999952))
  931. Tail3Handleweld=CreateWeld(m,Tail3HandleConnector,Tail3Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1, 2.3010216e-009, 0, 2.3010216e-009, 1, 0, 0, 0, 1.00000012))
  932. CreateMesh("SpecialMesh",Tail3Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  933. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"New Yeller","Part",Vector3.new(1.79999983, 0.800000012, 0.200000003))
  934. Partweld=CreateWeld(m,Tail3Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.04519272, 0.064440012, -0.0208930969, 1, 2.3010216e-009, 0, 2.3010216e-009, 1, 0, 0, 0, 1.00000012))
  935. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  936. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"New Yeller","Part",Vector3.new(1.79999983, 0.600000024, 0.200000003))
  937. Partweld=CreateWeld(m,Tail3Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.11207199, 0.0611591339, 0.00499725342, 0.965926647, -0.258816153, -5.12227416e-008, 0.258816123, 0.965926647, -1.83936208e-007, 9.68575478e-008, 1.64000085e-007, 1))
  938. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  939. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"New Yeller","Part",Vector3.new(1.79999983, 0.600000024, 0.200000003))
  940. Partweld=CreateWeld(m,Tail3Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.07800674, 0.0849123001, -0.020816803, 0.965926468, 0.258816481, 2.40281224e-007, -0.258821636, 0.965915978, -1.06403604e-006, -1.3038516e-006, 2.83645932e-006, 0.999992907))
  941. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  942. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.39999986, 0.800000012, 0.799999952))
  943. Partweld=CreateWeld(m,Tail3Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.400001526, -2.14576721e-006, -3.81469727e-006, 1, 2.3010216e-009, 0, 2.3010216e-009, 1, 0, 0, 0, 1.00000012))
  944. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  945.  
  946. mouse.Button1Down:connect(function()
  947. end)
  948.  
  949. mouse.KeyDown:connect(function(k)
  950. k = k:lower()
  951. if k == "f" and attack == false and Flying == false then
  952. Humanoid.CameraOffset = Vector3.new(0, -1, 0)
  953. Humanoid.WalkSpeed = 25
  954. Flying = true
  955. elseif k == "f" and attack == false and Flying == true then
  956. Humanoid.CameraOffset = Vector3.new(0, -2, 0)
  957. Humanoid.WalkSpeed = 16
  958. Flying = false
  959. end
  960. end)
  961.  
  962.  
  963. inputserv.InputBegan:connect(function(k)
  964. if k.KeyCode == Enum.KeyCode.One and typing == false and cooldown3 >= co1 and stamina >= skill1stam then
  965. elseif k.KeyCode == Enum.KeyCode.Two and typing == false and cooldown3 >= co2 and stamina >= skill2stam then
  966. elseif k.KeyCode == Enum.KeyCode.Three and typing == false and cooldown3 >= co3 and stamina >= skill3stam then
  967. elseif k.KeyCode == Enum.KeyCode.Four and typing == false and cooldown3 >= co4 and stamina >= skill4stam then
  968. end
  969. end)
  970.  
  971. inputserv.InputBegan:connect(function(k)
  972. if k.KeyCode == Enum.KeyCode.Slash then
  973. local fin = nil
  974. typing = true
  975. fin = inputserv.InputBegan:connect(function(k)
  976. if k.KeyCode == Enum.KeyCode.Return or k.UserInputType == Enum.UserInputType.MouseButton1 then
  977. typing = false
  978. fin:disconnect()
  979. end
  980. end)
  981. end
  982. end)
  983.  
  984. function updateskills()
  985. if cooldown1 <= co1 then
  986. cooldown1 = cooldown1 + 1 / 30
  987. end
  988. if cooldown2 <= co2 then
  989. cooldown2 = cooldown2 + 1 / 30
  990. end
  991. if cooldown3 <= co3 then
  992. cooldown3 = cooldown3 + 1 / 30
  993. end
  994. if cooldown4 <= co4 then
  995. cooldown4 = cooldown4 + 1 / 30
  996. end
  997. if stamina <= maxstamina then
  998. stamina = stamina + recovermana / 30
  999. end
  1000. end
  1001.  
  1002. coroutine.resume(coroutine.create(function(Part,Weld)
  1003. while Part.Parent~=nil do
  1004. wait(5)
  1005. for i=0,1,0.2 do
  1006. wait()
  1007. BlinkPartR.Mesh.Scale = Vector3.new(.7-1*i,1,1)
  1008. end
  1009. for i=0,1,0.2 do
  1010. wait()
  1011. BlinkPartR.Mesh.Scale = Vector3.new(.7+.3*i,1,1)
  1012. end
  1013. end
  1014. end),BlinkPartR,BlinkPartRweld)
  1015.  
  1016. coroutine.resume(coroutine.create(function(Part,Weld)
  1017. while Part.Parent~=nil do
  1018. wait(5)
  1019. for i=0,1,0.2 do
  1020. wait()
  1021. BlinkPartL.Mesh.Scale = Vector3.new(.7-1*i,1,1)
  1022. end
  1023. for i=0,1,0.2 do
  1024. wait()
  1025. BlinkPartL.Mesh.Scale = Vector3.new(.7+.3*i,1,1)
  1026. end
  1027. end
  1028. end),BlinkPartL,BlinkPartLweld)
  1029.  
  1030. game:GetService'RunService'.Heartbeat:connect(function()
  1031. updateskills()
  1032. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1033. velocity = RootPart.Velocity.y
  1034. sine = sine + change
  1035. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1036. if equipped == true or equipped == false then
  1037. if RootPart.Velocity.y > 1 and hit == nil and stun.Value ~= true then
  1038. Anim = "Jump"
  1039. if attack == false then
  1040. Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 2) * angles(math.rad(50), math.rad(0), math.rad(0)), .3)
  1041. NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3)
  1042. HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  1043. LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3)
  1044. LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3)
  1045. RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3)
  1046. RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3)
  1047. TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3)
  1048. Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3)
  1049. Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3)
  1050. end
  1051. elseif RootPart.Velocity.y < -1 and hit == nil and stun.Value ~= true then
  1052. Anim = "Fall"
  1053. if attack == false then
  1054. Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 1) * angles(math.rad(20), math.rad(0), math.rad(0)), .3)
  1055. NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-15)), .3)
  1056. HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), .3)
  1057. LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  1058. LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  1059. RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  1060. RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  1061. TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3)
  1062. Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3)
  1063. Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3)
  1064. end
  1065. elseif Torsovelocity < 1 and hit ~= nil and stun.Value ~= true then
  1066. Anim = "Idle"
  1067. if attack == false and Flying == false then
  1068. change = 1
  1069. Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1070. NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(10+1.5*math.cos(sine/10))), .3)
  1071. HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-5+1.5*math.cos(sine/10))), .3)
  1072. LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2-3*math.cos(sine/10))), .3)
  1073. LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2-3*math.cos(sine/10))), .3)
  1074. RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2-3*math.cos(sine/10))), .3)
  1075. RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2-3*math.cos(sine/10))), .3)
  1076. TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(15*math.cos(sine/15)), math.rad(5*math.cos(sine/25))), .3)
  1077. Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(-15*math.cos(sine/15)), math.rad(20*math.cos(sine/15)), math.rad(2*math.cos(sine/15))), .3)
  1078. Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(15*math.cos(sine/15)), math.rad(10*math.cos(sine/15)), math.rad(0)), .3)
  1079. elseif attack == false and Flying == true then
  1080. Handleweld.C0 = clerp(Handleweld.C0, cn(0, 3.5+.2*math.cos(sine/10), 2) * angles(math.rad(40+2*math.cos(sine/10)), math.rad(0), math.rad(0)), .3)
  1081. NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10+3*math.cos(sine/10))), .3)
  1082. HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20-3*math.cos(sine/10))), .3)
  1083. LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40+5*math.cos(sine/10))), .3)
  1084. LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30+5*math.cos(sine/10))), .3)
  1085. RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40+5*math.cos(sine/10))), .3)
  1086. RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30+5*math.cos(sine/10))), .3)
  1087. TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20-3*math.cos(sine/10))), .3)
  1088. Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(10+2*math.cos(sine/10))), .3)
  1089. Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(15-1.5*math.cos(sine/10))), .3)
  1090. end
  1091. elseif Torsovelocity > 2 and hit ~= nil and stun.Value ~= true then
  1092. Anim = "Walk"
  1093. if attack == false and Flying == false then
  1094. change = 1
  1095. Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 0) * angles(math.rad(1.5+1*math.cos(sine/10)), math.rad(0), math.rad(0)), .3)
  1096. NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(5+2*math.cos(sine/10))), .3)
  1097. HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(5+1.5*math.cos(sine/10))), .3)
  1098. LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30*math.cos(sine/4.5))), .3)
  1099. LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30*math.cos(sine/5))), .3)
  1100. RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30*math.cos(sine/5))), .3)
  1101. RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30*math.cos(sine/4.5))), .3)
  1102. TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(3*math.cos(sine/15))), .3)
  1103. Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2*math.cos(sine/15))), .3)
  1104. Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(3*math.cos(sine/15))), .3)
  1105. elseif attack == false and Flying == true then
  1106. change = 1
  1107. Handleweld.C0 = clerp(Handleweld.C0, cn(0, 3.5+.2*math.cos(sine/10), 1) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1108. NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10+1*math.cos(sine/10))), .3)
  1109. HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20+1*math.cos(sine/10))), .3)
  1110. LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40+5*math.cos(sine/10))), .3)
  1111. LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30+5*math.cos(sine/10))), .3)
  1112. RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40+5*math.cos(sine/10))), .3)
  1113. RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30+5*math.cos(sine/10))), .3)
  1114. TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(10-3*math.cos(sine/10))), .3)
  1115. Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(5+2*math.cos(sine/10))), .3)
  1116. Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(3-1.5*math.cos(sine/10))), .3)
  1117. end
  1118. end
  1119. end
  1120. end)
Add Comment
Please, Sign In to add comment