Advertisement
SeikoTsuki

Untitled

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