Mr-Shadow_Cat

Draggo

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