Advertisement
BobMe

RainbowDrag

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