McSans

Dragón Script Fe By me ;)

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