Advertisement
Gametoy

kewl

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