Advertisement
firebudgy

Draggo

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