Advertisement
firebudgy

Untitled

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