Advertisement
SSTheEditer

(h, i give up on names)

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