Advertisement
SansTheHackerYT

Dragon!

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