Advertisement
firebudgy

Untitled

Apr 13th, 2018
449
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(148,0,211)
  51. bbgTl.TextColor3 = Color3.new(148,0,211)
  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('Lilac')
  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('Lilac')
  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,"Alder","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,"Alder","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,"Alder","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,"Alder","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,"Alder","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,"Alder","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,"Alder","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. HeadHandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Lilac","HeadHandleConnector",Vector3.new(0.799999774, 0.800000012, 1.19999993))
  908. 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))
  909. CreateMesh("SpecialMesh",HeadHandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  910. HeadHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Alder","HeadHandle",Vector3.new(0.799999774, 0.800000012, 1.19999993))
  911. HeadHandleweld=CreateWeld(m,HeadHandleConnector,HeadHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(.5,.3,0))
  912. CreateMesh("SpecialMesh",HeadHandle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  913. BlinkPartL=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","BlinkPartL",Vector3.new(0.430000007, 0.349999994, 0.209999993))
  914. 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))
  915. CreateMesh("SpecialMesh",BlinkPartL,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  916. BlinkPartR=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","BlinkPartR",Vector3.new(0.430000007, 0.349999994, 0.209999919))
  917. 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))
  918. CreateMesh("SpecialMesh",BlinkPartR,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  919. Head=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Alder","Head",Vector3.new(1.59999979, 1, 1.19999993))
  920. 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))
  921. CreateMesh("SpecialMesh",Head,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  922. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(0.200000003, 1.39999998, 0.200000003))
  923. 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))
  924. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  925. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Lilac","Part",Vector3.new(0.400000006, 1.39999998, 0.400000006))
  926. 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))
  927. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  928. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Lilac","Part",Vector3.new(0.400000006, 1.39999998, 0.400000006))
  929. 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))
  930. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  931. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(0.200000003, 1.39999998, 0.200000003))
  932. 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))
  933. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  934. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(0.599999785, 0.400000006, 0.399999917))
  935. 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))
  936. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  937. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(0.599999785, 0.400000006, 0.399999917))
  938. 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))
  939. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  940. LLeg1Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Alder","LLeg1Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024))
  941. 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))
  942. CreateMesh("SpecialMesh",LLeg1Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  943. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Alder","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024))
  944. 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))
  945. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  946. LLeg2Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Alder","LLeg2Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024))
  947. 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))
  948. CreateMesh("SpecialMesh",LLeg2Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  949. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Alder","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024))
  950. 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))
  951. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  952. RLeg1Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Alder","RLeg1Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024))
  953. 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))
  954. CreateMesh("SpecialMesh",RLeg1Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  955. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Alder","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024))
  956. 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))
  957. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  958. RLeg2Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Alder","RLeg2Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024))
  959. 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))
  960. CreateMesh("SpecialMesh",RLeg2Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  961. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Alder","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024))
  962. 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))
  963. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  964. NeckHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Alder","NeckHandle",Vector3.new(0.799999714, 0.800000012, 0.99999994))
  965. 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))
  966. CreateMesh("SpecialMesh",NeckHandle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  967. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Alder","Part",Vector3.new(1.5999999, 0.800000012, 0.99999994))
  968. 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))
  969. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  970. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Alder","Part",Vector3.new(1.5999999, 1, 1.39999998))
  971. 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))
  972. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  973. TailHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Alder","TailHandle",Vector3.new(0.799999714, 0.800000012, 0.99999994))
  974. 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))
  975. CreateMesh("SpecialMesh",TailHandle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  976. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Alder","Part",Vector3.new(1.39999974, 0.800000012, 0.99999994))
  977. 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))
  978. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  979. Tail2HandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Alder","Tail2HandleConnector",Vector3.new(0.599999726, 0.800000012, 0.799999952))
  980. 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))
  981. CreateMesh("SpecialMesh",Tail2HandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  982. Tail2Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Alder","Tail2Handle",Vector3.new(0.599999726, 0.800000012, 0.799999952))
  983. 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))
  984. CreateMesh("SpecialMesh",Tail2Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  985. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Alder","Part",Vector3.new(1.39999974, 0.800000012, 0.799999952))
  986. 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))
  987. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  988. Tail3HandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Alder","Tail3HandleConnector",Vector3.new(0.599999845, 0.800000012, 0.799999952))
  989. 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))
  990. CreateMesh("SpecialMesh",Tail3HandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  991. Tail3Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Alder","Tail3Handle",Vector3.new(0.599999845, 0.800000012, 0.799999952))
  992. 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))
  993. CreateMesh("SpecialMesh",Tail3Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  994. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(1.79999983, 0.800000012, 0.200000003))
  995. 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))
  996. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  997. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(1.79999983, 0.600000024, 0.200000003))
  998. 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))
  999. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1000. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(1.79999983, 0.600000024, 0.200000003))
  1001. 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))
  1002. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1003. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Alder","Part",Vector3.new(1.39999986, 0.800000012, 0.799999952))
  1004. 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))
  1005. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1006.  
  1007. mouse.Button1Down:connect(function()
  1008. end)
  1009.  
  1010. mouse.KeyDown:connect(function(k)
  1011. k = k:lower()
  1012. if k == "f" and attack == false and Flying == false then
  1013. Humanoid.CameraOffset = Vector3.new(0, -1, 0)
  1014. Humanoid.WalkSpeed = 25
  1015. Flying = true
  1016. elseif k == "f" and attack == false and Flying == true then
  1017. Humanoid.CameraOffset = Vector3.new(0, -2, 0)
  1018. Humanoid.WalkSpeed = 16
  1019. Flying = false
  1020. end
  1021. end)
  1022.  
  1023.  
  1024. inputserv.InputBegan:connect(function(k)
  1025. if k.KeyCode == Enum.KeyCode.One and typing == false and cooldown3 >= co1 and stamina >= skill1stam then
  1026. elseif k.KeyCode == Enum.KeyCode.Two and typing == false and cooldown3 >= co2 and stamina >= skill2stam then
  1027. elseif k.KeyCode == Enum.KeyCode.Three and typing == false and cooldown3 >= co3 and stamina >= skill3stam then
  1028. elseif k.KeyCode == Enum.KeyCode.Four and typing == false and cooldown3 >= co4 and stamina >= skill4stam then
  1029. end
  1030. end)
  1031.  
  1032. inputserv.InputBegan:connect(function(k)
  1033. if k.KeyCode == Enum.KeyCode.Slash then
  1034. local fin = nil
  1035. typing = true
  1036. fin = inputserv.InputBegan:connect(function(k)
  1037. if k.KeyCode == Enum.KeyCode.Return or k.UserInputType == Enum.UserInputType.MouseButton1 then
  1038. typing = false
  1039. fin:disconnect()
  1040. end
  1041. end)
  1042. end
  1043. end)
  1044.  
  1045. function updateskills()
  1046. if cooldown1 <= co1 then
  1047. cooldown1 = cooldown1 + 1 / 30
  1048. end
  1049. if cooldown2 <= co2 then
  1050. cooldown2 = cooldown2 + 1 / 30
  1051. end
  1052. if cooldown3 <= co3 then
  1053. cooldown3 = cooldown3 + 1 / 30
  1054. end
  1055. if cooldown4 <= co4 then
  1056. cooldown4 = cooldown4 + 1 / 30
  1057. end
  1058. if stamina <= maxstamina then
  1059. stamina = stamina + recovermana / 30
  1060. end
  1061. end
  1062.  
  1063. coroutine.resume(coroutine.create(function(Part,Weld)
  1064. while Part.Parent~=nil do
  1065. wait(5)
  1066. for i=0,1,0.2 do
  1067. wait()
  1068. BlinkPartR.Mesh.Scale = Vector3.new(.7-1*i,1,1)
  1069. end
  1070. for i=0,1,0.2 do
  1071. wait()
  1072. BlinkPartR.Mesh.Scale = Vector3.new(.7+.3*i,1,1)
  1073. end
  1074. end
  1075. end),BlinkPartR,BlinkPartRweld)
  1076.  
  1077. coroutine.resume(coroutine.create(function(Part,Weld)
  1078. while Part.Parent~=nil do
  1079. wait(5)
  1080. for i=0,1,0.2 do
  1081. wait()
  1082. BlinkPartL.Mesh.Scale = Vector3.new(.7-1*i,1,1)
  1083. end
  1084. for i=0,1,0.2 do
  1085. wait()
  1086. BlinkPartL.Mesh.Scale = Vector3.new(.7+.3*i,1,1)
  1087. end
  1088. end
  1089. end),BlinkPartL,BlinkPartLweld)
  1090.  
  1091. game:GetService'RunService'.Heartbeat:connect(function()
  1092. updateskills()
  1093. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1094. velocity = RootPart.Velocity.y
  1095. sine = sine + change
  1096. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1097. if equipped == true or equipped == false then
  1098. if RootPart.Velocity.y > 1 and hit == nil and stun.Value ~= true then
  1099. Anim = "Jump"
  1100. if attack == false then
  1101. Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 2) * angles(math.rad(50), math.rad(0), math.rad(0)), .3)
  1102. NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3)
  1103. HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  1104. LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3)
  1105. LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3)
  1106. RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3)
  1107. RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3)
  1108. TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3)
  1109. Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3)
  1110. Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3)
  1111. end
  1112. elseif RootPart.Velocity.y < -1 and hit == nil and stun.Value ~= true then
  1113. Anim = "Fall"
  1114. if attack == false then
  1115. Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 1) * angles(math.rad(20), math.rad(0), math.rad(0)), .3)
  1116. NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-15)), .3)
  1117. HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), .3)
  1118. LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  1119. LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  1120. RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  1121. RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  1122. TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3)
  1123. Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3)
  1124. Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3)
  1125. end
  1126. elseif Torsovelocity < 1 and hit ~= nil and stun.Value ~= true then
  1127. Anim = "Idle"
  1128. if attack == false and Flying == false then
  1129. change = 1
  1130. Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1131. 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)
  1132. 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)
  1133. 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)
  1134. 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)
  1135. 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)
  1136. 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)
  1137. 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)
  1138. 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)
  1139. 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)
  1140. elseif attack == false and Flying == true then
  1141. 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)
  1142. 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)
  1143. 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)
  1144. 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)
  1145. 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)
  1146. 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)
  1147. 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)
  1148. 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)
  1149. 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)
  1150. 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)
  1151. end
  1152. elseif Torsovelocity > 2 and hit ~= nil and stun.Value ~= true then
  1153. Anim = "Walk"
  1154. if attack == false and Flying == false then
  1155. change = 1
  1156. 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)
  1157. 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)
  1158. 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)
  1159. 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)
  1160. LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30*math.cos(sine/5))), .3)
  1161. RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30*math.cos(sine/5))), .3)
  1162. 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)
  1163. TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(3*math.cos(sine/15))), .3)
  1164. Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2*math.cos(sine/15))), .3)
  1165. Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(3*math.cos(sine/15))), .3)
  1166. elseif attack == false and Flying == true then
  1167. change = 1
  1168. 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)
  1169. 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)
  1170. 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)
  1171. 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)
  1172. 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)
  1173. 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)
  1174. 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)
  1175. 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)
  1176. 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)
  1177. 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)
  1178. end
  1179. end
  1180. end
  1181. end)
  1182.  
  1183. local plr = game.Players.LocalPlayer
  1184. Workspace.firebudgy.Humanoid.MaxHealth = math.huge
  1185. Instance.new("ForceField",plr.Character).Visible = false
  1186.  
  1187. mouse = plr:GetMouse()
  1188. mouse.Button1Down:connect(function()
  1189. if plr.Character.Parent ~= workspace.Camera then
  1190. if mouse ~= nil then
  1191. if mouse.Target ~= nil then
  1192. part = mouse.Target
  1193. bp = Instance.new("BodyPosition",part)
  1194. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1195. bp.Position = part.Position
  1196. particles = Instance.new("ParticleEmitter",part)
  1197. particles.Color = ColorSequence.new(Color3.new(148,0,211))
  1198. particles.Size = NumberSequence.new(1)
  1199. particles.Texture = "rbxassetid://292289455"
  1200. particles.VelocitySpread = 360
  1201. particles.Speed = NumberRange.new(0)
  1202. particles.RotSpeed = NumberRange.new(0)
  1203. particles.Rotation = NumberRange.new(0)
  1204. particles.Rate = 250
  1205. particles.Lifetime = NumberRange.new(.2,.4)
  1206. particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(.12,.688,0),NumberSequenceKeypoint.new(.891,.887,0),NumberSequenceKeypoint.new(1,1,0)})
  1207. dwn = true
  1208. end
  1209. end
  1210. while dwn == true do
  1211. wait()
  1212. bp.Position = mouse.hit.p
  1213. if part then
  1214. if part.Parent:FindFirstChildOfClass("Humanoid") then
  1215. part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
  1216. end
  1217. end
  1218. end
  1219. end
  1220. end)
  1221. mouse.Button1Up:connect(function()
  1222. dwn = false
  1223. if part then if part.Parent:FindFirstChildOfClass("Humanoid") then part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part = nil end
  1224. if bp then bp:Destroy() end
  1225. if particles then particles:Destroy() end
  1226. end)
  1227. bbgTl.Text = "Draggo Lizard Edit by firebudgy"
  1228. Wait(4)
  1229. bbgTl.Text = " "
  1230. while true do
  1231. game.Workspace.firebudgy.Humanoid.MaxHealth = math.huge
  1232. wait()
  1233. end
  1234. game.Workspace.firebudgy.Humanoid.name = "Lizard"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement