Advertisement
BobMe

how to train your draggo_old

Oct 26th, 2021
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 105.61 KB | None | 0 0
  1. --------------------------Original Script from Duelist--------------------------
  2. ---Greatly Modified By Memo1332
  3. do
  4. local filteredMessages = { ['___'] = '___' };
  5. local onPropertyChanged = function (obj)
  6. if (obj:isDescendantOf (workspace)) then
  7. local objText = obj.Text;
  8.  
  9. if (objText ~= '___' and objText:find '(%S)') then
  10. if (filteredMessages [objText] and filteredMessages [objText] ~= objText) then
  11. obj.Text = filteredMessages [objText];
  12. elseif (not filteredMessages [objText]) then
  13. obj.Text = '___';
  14.  
  15. local filtered = game:service 'Chat':FilterStringForBroadcast (objText, game:service 'Players'.localPlayer);
  16.  
  17. filteredMessages [objText] = filtered;
  18. filteredMessages [filtered] = filtered;
  19.  
  20. obj.Text = filtered;
  21. end;
  22. end;
  23. end;
  24. end;
  25.  
  26. local newInstance = Instance.new;
  27. Instance = {
  28. new = function (class, parent)
  29. local obj = newInstance (class, parent);
  30.  
  31. if (pcall (function()return obj.Text;end)) then
  32. obj:getPropertyChangedSignal ('Parent'):connect (function () onPropertyChanged (obj) end);
  33. obj:getPropertyChangedSignal ('Text'):connect (function() onPropertyChanged (obj) end);
  34. end;
  35.  
  36. return obj;
  37. end;
  38. };
  39. end;
  40.  
  41.  
  42. --i used stravants Beautifier so it might look a bit wonky
  43. Meshes = {
  44. Blast = '20329976',
  45. Crown = '1323306',
  46. Ring = '3270017',
  47. Claw = '10681506',
  48. Crystal = '9756362',
  49. Coil = '9753878',
  50. Cloud = '1095708',
  51. }
  52. clangsounds = {
  53. '199149119',
  54. '199149109',
  55. '199149072',
  56. '199149025',
  57. '199148971'
  58. }
  59. hitsounds = {
  60. '199149137',
  61. '199149186',
  62. '199149221',
  63. '199149235',
  64. '199149269',
  65. '199149297'
  66. }
  67. blocksounds = {
  68. '199148933',
  69. '199148947'
  70. }
  71. armorsounds = {
  72. '199149321',
  73. '199149338',
  74. '199149367',
  75. '199149409',
  76. '199149452'
  77. }
  78. woosh = {
  79. Heavy1 = '320557353',
  80. Heavy2 = '320557382',
  81. Heavy3 = '320557453',
  82. Heavy4 = '199144226',
  83. Heavy5 = '203691447',
  84. Heavy6 = '203691467',
  85. Heavy7 = '203691492',
  86. Light1 = '320557413',
  87. Light2 = '320557487',
  88. Light3 = '199145095',
  89. Light4 = '199145146',
  90. Light5 = '199145887',
  91. Light6 = '199145913',
  92. Light7 = '199145841',
  93. Medium1 = '320557518',
  94. Medium2 = '320557537',
  95. Medium3 = '320557563',
  96. Medium4 = '199145204'
  97. }
  98. music = {--i like music a lot
  99. Breaking = '179281636',
  100. FinalReckoning = '357375770',
  101. NotDeadYet = '346175829',
  102. Intense = '151514610',
  103. JumpP1 = '160536628',
  104. JumpP2 = '60536666',
  105. SonsOfWar = '158929777',
  106. WrathOfSea = '165520893',
  107. ProtecTorsofEarth = '160542922',
  108. SkyTitans = '179282324',
  109. ArchAngel = '144043274',
  110. Anticipation = '168614529',
  111. TheMartyred = '186849544',
  112. AwakeP1 = '335631255',
  113. AwakeP2 = '335631297',
  114. ReadyAimFireP1 = '342455387',
  115. ReadyAimFireP2 = '342455399',
  116. DarkLordP1 = '209567483',
  117. DarkLordP2 = '209567529',
  118. BloodDrainP1 = '162914123',
  119. BloodDrainP2 = '162914203',
  120. DanceOfSwords = '320473062',
  121. Opal = '286415112',
  122. Calamity = '190454307',
  123. Hypnotica = '155968128',
  124. Nemisis = '160453802',
  125. Breathe = '276963903',
  126. GateToTheRift = '270655227',
  127. InfernalBeserking = '244143404',
  128. Trust = '246184492',
  129. AwakeningTheProject = '245121821',
  130. BloodPain = '242545577',
  131. Chaos = '247241693',
  132. NightmareFictionHighStake = '248062278',
  133. TheWhiteWeapon = '247236446',
  134. Gale = '256851659',
  135. ImperialCode = '256848383',
  136. Blitzkrieg = '306431437',
  137. RhapsodyRage = '348690251',
  138. TheGodFist = '348541501',
  139. BattleForSoul = '321185592',
  140. TheDarkColossus = '305976780',
  141. EmpireOfAngels = '302580452',
  142. Kronos = '302205297',
  143. Exorcist = '299796054',
  144. CrimsonFlames = '297799220',
  145. UltimatePower = '295753229',
  146. DrivingInTheDark = '295753229',
  147. AscendToPower = '293860654',
  148. GodOfTheSun = '293612495',
  149. DarkRider = '293861765',
  150. Vengeance = '293375555',
  151. SoundOfWar = '293376196',
  152. HellsCrusaders = '293012202',
  153. Legend = '293011823',
  154. RisingSouls = '290524959'
  155. }
  156. misc = {
  157. GroundSlam = '199145477',
  158. LaserSlash = '199145497',
  159. RailGunFire = '199145534',
  160. Charge1 = '199145659',
  161. Charge2 = '169380469',
  162. Charge3 = '169380479',
  163. EmptyGun = '203691822',
  164. GunShoot = '203691837',
  165. Stomp1 = '200632875',
  166. Stomp2 = '200632561',
  167. TelsaCannonCharge = '169445572',
  168. TelsaCannonShoot = '169445602',
  169. AncientHymm = '245313442'
  170. }
  171.  
  172. wait(1 / 60)
  173. local Player = owner
  174. local Character = Player.Character
  175. local Humanoid = Character.Humanoid
  176. local mouse = Player:GetMouse()
  177. local m = Instance.new('Model', Character)
  178. m.Name = "WeaponModel"
  179. local LeftArm = Character["Left Arm"]
  180. local RightArm = Character["Right Arm"]
  181. local LeftLeg = Character["Left Leg"]
  182. local RightLeg = Character["Right Leg"]
  183. local Head = Character.Head
  184. local Torso = Character.Torso
  185. local cam = game.Workspace.CurrentCamera
  186. local RootPart = Character.HumanoidRootPart
  187. local RootJoint = RootPart.RootJoint
  188. --cam.CameraSubject = Head
  189. local equipped = false
  190. local attack = false
  191. local Anim = 'Idle'
  192. local idle = 0
  193. local sprint = false
  194. local battlestance = false
  195. local attacktype = 1
  196. local state = 'none'
  197. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  198. local velocity = RootPart.Velocity.y
  199. local sine = 0
  200. local change = 1
  201. local on = false
  202. local grabbed = false
  203. local skill1 = false
  204. local skill2 = false
  205. local skill3 = false
  206. local skill4 = false
  207. local cooldown1 = 0
  208. local cooldown2 = 0
  209. local cooldown3 = 0
  210. local cooldown4 = 0
  211. local co1 = 10--how long it will take for skill to cooldown
  212. local co2 = 15
  213. local co3 = 15
  214. local co4 = 25
  215. local inputserv = game:GetService('UserInputService')
  216. local typing = false
  217. local crit = false
  218. local critchance = 2--critical chance percentage
  219. local critdamageaddmin = 3--minimum amount of critical damage being added to regular damage
  220. local critdamageaddmax = 7--maximum amount
  221. local maxstamina = 100--max amount of stamina
  222. local stamina = 0--stamina you start out with
  223. local skill1stam = 10--how much stamina is needed for a skill
  224. local skill2stam = 10
  225. local skill3stam = 20
  226. local skill4stam = 30
  227. local recovermana = 3--how much mana per second
  228. local defensevalue = 1--how much defense this character has
  229. local speedvalue = 1--how much speed this character has
  230. --speed is 16*speedvalue
  231. local mindamage = 5--self explanatory
  232. local maxdamage = 7--self explanatory
  233. local damagevalue = 1--how much damage this character has
  234. --damage is math.random(mindamage,maxdamage)*damagevalue
  235. --damage(hit, mindamage, maxdamage, 1, 1, RootPart)
  236. --asd
  237. local cn = CFrame.new-- make things easier :)
  238. local mr = math.rad
  239. local angles = CFrame.Angles
  240. local ud = UDim2.new
  241. local c3 = Color3.new
  242. local skillcolorscheme = c3(1, 1, 1)--color scheme for skills lol
  243. --asd
  244. local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  245. Humanoid.Animator:Destroy()
  246.  
  247. --Angles For RootJoint `~`
  248. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  249. --Save Shoulders/Hips
  250. RSH, LSH = nil, nil
  251. RHS, LHS = nil, nil
  252. --Shoulders
  253. RW = Instance.new("Weld")
  254. LW = Instance.new("Weld")
  255. --Hips
  256. RH = Instance.new("Weld")
  257. LH = Instance.new("Weld")
  258. --
  259. Player = Player
  260. ch = Character
  261. LHS = Torso["Left Hip"]
  262. RHS = Torso["Right Hip"]
  263. RSH = ch.Torso["Right Shoulder"]
  264. LSH = ch.Torso["Left Shoulder"]
  265. --
  266. RSH.Parent = nil
  267. LSH.Parent = nil
  268. --
  269. LHS.Parent = nil
  270. RHS.Parent = nil
  271. --
  272. RW.Name = "RW"
  273. RW.Part0 = ch.Torso
  274. RW.C0 = cn(1.5, 0.5, 0)
  275. RW.C1 = cn(0, 0.5, 0)
  276. RW.Part1 = ch["Right Arm"]
  277. RW.Parent = ch.Torso
  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. framesk1 = makeframe(scrn, .5, ud(.23, 0, .93, 0), ud(.26, 0, .06, 0), skillcolorscheme)
  357. framesk2 = makeframe(scrn, .5, ud(.5, 0, .93, 0), ud(.26, 0, .06, 0), skillcolorscheme)
  358. framesk3 = makeframe(scrn, .5, ud(.5, 0, .86, 0), ud(.26, 0, .06, 0), skillcolorscheme)
  359. framesk4 = makeframe(scrn, .5, ud(.23, 0, .86, 0), ud(.26, 0, .06, 0), skillcolorscheme)
  360. bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  361. bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  362. bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  363. bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  364. text1 = makelabel(framesk1, '[3] Skill3')
  365. text2 = makelabel(framesk2, '[4] Skill4')
  366. text3 = makelabel(framesk3, "[2] Skill2")
  367. text4 = makelabel(framesk4, '[1] Skill1')
  368. staminabar = makeframe(scrn, .5, ud(.23, 0, .82, 0), ud(.26, 0, .03, 0), c3(61 / 255, 171 / 255, 1))
  369. staminacover = makeframe(staminabar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(61 / 255, 171 / 255, 1))
  370. staminatext = makelabel(staminabar, 'Mana')
  371. healthbar = makeframe(scrn, .5, ud(.5, 0, .82, 0), ud(.26, 0, .03, 0), c3(1, 1, 0))
  372. healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(1, 46 / 255, 49 / 255))
  373. healthtext = makelabel(healthbar, 'Health')
  374.  
  375. local stats = Instance.new('Folder', Character)
  376. stats.Name = 'Stats'
  377. local block = Instance.new('BoolValue', stats)
  378. block.Name = 'Block'
  379. block.Value = false
  380. local stun = Instance.new('BoolValue', stats)
  381. stun.Name = 'Stun'
  382. stun.Value = false
  383. local defense = Instance.new('NumberValue', stats)
  384. defense.Name = 'Defence'
  385. defense.Value = defensevalue
  386. local speed = Instance.new('NumberValue', stats)
  387. speed.Name = 'Speed'
  388. speed.Value = speedvalue
  389. local damagea = Instance.new('NumberValue', stats)
  390. damagea.Name = 'Damage'
  391. damagea.Value = damagevalue
  392.  
  393. function atktype(s, e)
  394. coroutine.resume(coroutine.create(function()
  395. attacktype = e
  396. wait(1.5)
  397. attacktype = s
  398. end))
  399. end
  400.  
  401. function turncrit()
  402. coroutine.resume(coroutine.create(function()
  403. print'CRITICAL!'
  404. crit = true
  405. wait(.25)
  406. crit = false
  407. end))
  408. end
  409.  
  410. function subtractstamina(k)
  411. if stamina >= k then
  412. stamina = stamina - k
  413. end
  414. end
  415.  
  416. function clerp(a, b, t)
  417. return a:lerp(b, t)
  418. end
  419.  
  420. function randomizer(percent)
  421. local randomized = math.random(0, 100)
  422. if randomized <= percent then
  423. return true
  424. elseif randomized >= percent then
  425. return false
  426. end
  427. end
  428.  
  429. local RbxUtility = LoadLibrary("RbxUtility")
  430. local Create = RbxUtility.Create
  431.  
  432. function RemoveOutlines(part)
  433. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  434. end
  435.  
  436. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  437. local Part = Create("Part"){
  438. formFactor = FormFactor,
  439. Parent = Parent,
  440. Reflectance = Reflectance,
  441. Transparency = Transparency,
  442. CanCollide = false,
  443. Locked = true,
  444. BrickColor = BrickColor.new(tostring(BColor)),
  445. Name = Name,
  446. Size = Size,
  447. Material = Material,
  448. }
  449. RemoveOutlines(Part)
  450. return Part
  451. end
  452.  
  453. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  454. local Msh = Create(Mesh){
  455. Parent = Part,
  456. Offset = OffSet,
  457. Scale = Scale,
  458. }
  459. if Mesh == "SpecialMesh" then
  460. Msh.MeshType = MeshType
  461. Msh.MeshId = MeshId
  462. end
  463. return Msh
  464. end
  465.  
  466. function CreateWeld(Parent, Part0, Part1, C0, C1)
  467. local Weld = Create("Weld"){
  468. Parent = Parent,
  469. Part0 = Part0,
  470. Part1 = Part1,
  471. C0 = C0,
  472. C1 = C1,
  473. }
  474. return Weld
  475. end
  476.  
  477. function rayCast(pos, dir, maxl, ignore)
  478. return game:service("Workspace"):FindPartOnRay(Ray.new(pos, dir.unit * (maxl or 999.999)), ignore)
  479. end
  480. --Effects
  481. function makeeffect(par, size, pos1, trans, trans1, howmuch, delay1, id, type)
  482. local p = Instance.new('Part', par or workspace)
  483. p.CFrame = pos1
  484. p.Anchored = true
  485. p.Material = 'SmoothPlastic'
  486. p.CanCollide = false
  487. p.TopSurface = 0
  488. p.Size = Vector3.new(1, 1, 1)
  489. p.BottomSurface = 0
  490. p.Transparency = trans
  491. p.FormFactor = 'Custom'
  492. RemoveOutlines(p)
  493. local mesh = Instance.new('SpecialMesh', p)
  494. mesh.Scale = size
  495. if id ~= nil and type == nil then
  496. mesh.MeshId = 'rbxassetid://'..id
  497. elseif id == nil and type ~= nil then
  498. mesh.MeshType = type
  499. elseif id == nil and type == nil then
  500. mesh.MeshType = 'Brick'
  501. end
  502. coroutine.wrap(function()
  503. for i = 0, delay1, .1 do
  504. wait(1 / 60)
  505. p.CFrame = p.CFrame
  506. mesh.Scale = mesh.Scale + howmuch
  507. p.Transparency = p.Transparency + trans1
  508. end
  509. p:Destroy()
  510. end)()
  511. return p
  512. end
  513.  
  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. --damage effects
  557. function circle(color, pos1)
  558. local p = Instance.new('Part', m)
  559. p.BrickColor = BrickColor.new(color)
  560. p.CFrame = pos1
  561. p.Anchored = true
  562. p.Material = 'Plastic'
  563. p.CanCollide = false
  564. p.TopSurface = 0
  565. p.Size = Vector3.new(1, 1, 1)
  566. p.BottomSurface = 0
  567. p.Transparency = 0.35
  568. p.FormFactor = 'Custom'
  569. local mesh = Instance.new('CylinderMesh', p)
  570. mesh.Scale = Vector3.new(0, 0, 0)
  571. coroutine.wrap(function()
  572. for i = 0, 5, .1 do
  573. wait(1 / 60)
  574. p.CFrame = p.CFrame
  575. mesh.Scale = mesh.Scale + Vector3.new(.5, 0, .5)
  576. p.Transparency = p.Transparency + .025
  577. end
  578. p:Destroy()
  579. end)()
  580. end
  581. function firespaz1(color, pos1)
  582. local p = Instance.new('Part', m)
  583. p.BrickColor = BrickColor.new(color)
  584. p.CFrame = pos1
  585. p.Anchored = true
  586. p.Material = 'Plastic'
  587. p.CanCollide = false
  588. p.TopSurface = 0
  589. p.Size = Vector3.new(1, 1, 1)
  590. p.BottomSurface = 0
  591. p.Transparency = 0.5
  592. p.FormFactor = 'Custom'
  593. local mesh = Instance.new('BlockMesh', p)
  594. mesh.Scale = Vector3.new(1, 1, 1)
  595. coroutine.wrap(function()
  596. for i = 0, 15, .1 do
  597. wait(1 / 30)
  598. p.CFrame = p.CFrame * CFrame.new(0, .1, 0)
  599. mesh.Scale = mesh.Scale - Vector3.new(.1, .1, .1)
  600. p.Transparency = p.Transparency + .025
  601. end
  602. p:Destroy()
  603. end)()
  604. end
  605.  
  606. function pickrandom(tablesa)
  607. local randomized = tablesa[math.random(1, #tablesa)]
  608. return randomized
  609. end
  610. function sound(id, pitch, volume, par, last)
  611. local s = Instance.new('Sound', par or Torso)
  612. s.SoundId = 'rbxassetid://'..id
  613. s.Pitch = pitch or 1
  614. s.Volume = volume or 1
  615. wait()
  616. s:play()
  617. game.Debris:AddItem(s, last or 120)
  618. end
  619. function clangy(cframe)
  620. wait(1 / 60)
  621. local clang = {}
  622. local dis = 0
  623. local part = Instance.new('Part', nil)
  624. part.CFrame = cframe
  625. part.Anchored = true
  626. part.CanCollide = false
  627. part.BrickColor = BrickColor.new('New Yeller')
  628. part.FormFactor = 'Custom'
  629. part.Name = 'clanger'
  630. part.Size = Vector3.new(.2, .2, .2)
  631. part.TopSurface = 10
  632. part.BottomSurface = 10
  633. part.RightSurface = 10
  634. part.LeftSurface = 10
  635. part.BackSurface = 10
  636. part.FrontSurface = 10
  637. --part.Material='Neon'
  638. part:BreakJoints()
  639. local mesh = Instance.new('BlockMesh', part)
  640. coroutine.wrap(function()
  641. for i = 1, 7 do
  642. wait(1 / 60)
  643. dis = dis + .2
  644. local partc = part:clone()
  645. partc.Parent = workspace
  646. partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0)
  647. partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0)
  648. table.insert(clang, partc)
  649. end
  650. for i, v in pairs(clang) do
  651. coroutine.wrap(function()
  652. for i = 1, 10 do
  653. wait(.01)
  654. v.Transparency = v.Transparency + .1
  655. end
  656. v:destroy()
  657. end)()
  658. end
  659. end)()
  660. end
  661. --damage effects
  662. --Effects
  663. so = function(id, par, vol, pit)
  664. coroutine.resume(coroutine.create(function()
  665. local sou = Instance.new("Sound", par or workspace)
  666. sou.Volume = vol
  667. sou.Pitch = pit or 1
  668. sou.SoundId = id
  669. wait()
  670. sou:play()
  671. game:GetService("Debris"):AddItem(sou, 6)
  672. end))
  673. end
  674.  
  675. local function getclosest(obj, distance)
  676. local last, lastx = distance + 1
  677. for i, v in pairs(workspace:GetChildren()) do
  678. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  679. local t = v.Torso
  680. local dist = (t.Position - obj.Position).magnitude
  681. if dist <= distance then
  682. if dist < last then
  683. last = dist
  684. lastx = v
  685. end
  686. end
  687. end
  688. end
  689. return lastx
  690. end
  691.  
  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.  
  753.  
  754. function tagPlayer(h)
  755. coroutine.wrap(function()
  756. tag(h, Player)
  757. wait(1)
  758. untag(h)
  759. end)()
  760. end
  761. function damage(hit, mind, maxd, knock, type, prop)
  762. --[[
  763. to apply it to a Player directly, make the first arg go to the Players Torso
  764. 1 - normal type(damage and knockback)
  765. 2 - drain type(damage no knockback)
  766. 3 - lifesteal(absorbs hp) crit does not have an effect on how much life is absorbed
  767. 4 - heal(heals target)
  768. 5 - subtracts enemies defense
  769. 6 - subtracts enemies speed
  770. 7 -
  771. ]]
  772. if hit.Name:lower() == 'Hitbox' then
  773. local pos = CFrame.new(0, 1, -1)
  774. sound(pickrandom(clangsounds), math.random(100, 150) / 100, 1, Torso, 6)
  775. coroutine.wrap(function()
  776. for i = 1, 4 do
  777. clangy(Torso.CFrame * pos * CFrame.Angles(0, math.rad(math.random(0, 360)), 0))
  778. end
  779. end)()
  780. end
  781. if hit.Parent == nil then
  782. return
  783. end
  784. local h = hit.Parent:FindFirstChild("Humanoid")
  785. for i, v in pairs(hit.Parent:children()) do
  786. if v:IsA("Humanoid") then
  787. h = v
  788. end
  789. end
  790. if hit.Parent.Parent:FindFirstChild('Torso') ~= nil then
  791. h = hit.Parent.Parent:FindFirstChild('Humanoid')
  792. end
  793. if hit.Parent:IsA('Hat') then
  794. hit = hit.Parent.Parent:findFirstChild('Head')
  795. end
  796. local D = math.random(mind, maxd) * damagea.Value
  797. if h.Parent:FindFirstChild('Stats') then
  798. D = D / h.Parent:FindFirstChild('Stats').Defence.Value
  799. elseif not h.Parent:FindFirstChild('Stats') then
  800. D = D
  801. end
  802. if h then
  803. makegui(h.Parent.Head.CFrame, tostring(math.floor(D + .5)))
  804. end
  805. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  806. if type == 1 then
  807. tagPlayer(h)
  808. local asd = randomizer(critchance)
  809. if asd == true then
  810. turncrit()
  811. end
  812. if crit == false then
  813. h.Health = h.Health - D
  814. else
  815. h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
  816. end
  817. so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100)
  818. local vp = Instance.new('BodyVelocity')
  819. vp.P = 500
  820. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  821. vp.velocity = prop.CFrame.lookVector * knock + prop.Velocity / 1.05
  822. if knock > 0 then
  823. vp.Parent = hit.Parent.Torso
  824. end
  825. game:GetService("Debris"):AddItem(vp, .5)
  826. elseif type == 2 then
  827. so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100)
  828. local asd = randomizer(critchance)
  829. if asd == true then
  830. turncrit()
  831. end
  832. if crit == false then
  833. h.Health = h.Health - D
  834. else
  835. h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
  836. end
  837. tagPlayer(h)
  838. elseif type == 3 then
  839. tagPlayer(h)
  840. local asd = randomizer(critchance)
  841. if asd == true then
  842. turncrit()
  843. end
  844. if crit == false then
  845. h.Health = h.Health - D
  846. else
  847. h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
  848. end
  849. Character.Humanoid.Health = Character.Humanoid.Health + D / 2
  850. so("http://www.roblox.com/asset/?id=206083232", hit, 1, 1.5)
  851. for i = 1, 10 do
  852. firespaz1('Bright red', hit.CFrame * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)))
  853. end
  854. elseif type == 4 then
  855. h.Health = h.Health + D
  856. so("http://www.roblox.com/asset/?id=186883084", hit, 1, 1)
  857. circle('Dark green', h.Parent.Torso.CFrame * CFrame.new(0, -2.5, 0))
  858. end
  859. end
  860. end
  861.  
  862. function subtrackstamina(k)
  863. if stamina >= k then
  864. stamina = stamina - k
  865. end
  866. end
  867.  
  868. Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(2.39999986, 1.20000005, 1.39999998))
  869. 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))
  870. CreateMesh("SpecialMesh",Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  871. LLeg1Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Black","LLeg1Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024))
  872. 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))
  873. CreateMesh("SpecialMesh",LLeg1Connector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  874. LLeg2Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Black","LLeg2Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024))
  875. 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))
  876. CreateMesh("SpecialMesh",LLeg2Connector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  877. NeckHandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","NeckHandleConnector",Vector3.new(0.799999714, 0.800000012, 0.99999994))
  878. 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))
  879. CreateMesh("SpecialMesh",NeckHandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  880. RLeg2Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","RLeg2Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024))
  881.  
  882. 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))
  883. CreateMesh("SpecialMesh",RLeg2Connector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  884. RLeg1Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","RLeg1Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024))
  885. 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))
  886. CreateMesh("SpecialMesh",RLeg1Connector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  887. TailHandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","TailHandleConnector",Vector3.new(0.799999714, 0.800000012, 0.99999994))
  888. 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))
  889. CreateMesh("SpecialMesh",TailHandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  890. Wings=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","Wings",Vector3.new(1.38, 0.600000024, 0.400000006))
  891. 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))
  892. 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))
  893. HeadHandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","HeadHandleConnector",Vector3.new(0.799999774, 0.800000012, 1.19999993))
  894. 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))
  895. CreateMesh("SpecialMesh",HeadHandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  896. HeadHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Black","HeadHandle",Vector3.new(0.799999774, 0.800000012, 1.19999993))
  897. HeadHandleweld=CreateWeld(m,HeadHandleConnector,HeadHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(.5,.3,0))
  898. CreateMesh("SpecialMesh",HeadHandle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  899. BlinkPartL=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","BlinkPartL",Vector3.new(0.430000007, 0.349999994, 0.209999993))
  900. 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))
  901. CreateMesh("SpecialMesh",BlinkPartL,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  902. BlinkPartR=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","BlinkPartR",Vector3.new(0.430000007, 0.349999994, 0.209999919))
  903. 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))
  904. CreateMesh("SpecialMesh",BlinkPartR,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  905. Head=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Head",Vector3.new(1.59999979, 1, 1.19999993))
  906. 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))
  907. CreateMesh("SpecialMesh",Head,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  908. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","Part",Vector3.new(0.200000003, 1.39999998, 0.200000003))
  909. 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))
  910. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  911. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 1.39999998, 0.400000006))
  912. 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))
  913. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  914. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 1.39999998, 0.400000006))
  915. 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))
  916. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  917. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","Part",Vector3.new(0.200000003, 1.39999998, 0.200000003))
  918. 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))
  919. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  920. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Olivine","Part",Vector3.new(0.599999785, 0.400000006, 0.399999917))
  921. 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))
  922. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  923. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Olivine","Part",Vector3.new(0.599999785, 0.400000006, 0.399999917))
  924.  
  925. 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))
  926. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  927. LLeg1Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","LLeg1Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024))
  928. 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))
  929. CreateMesh("SpecialMesh",LLeg1Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  930. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024))
  931. 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))
  932. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  933. LLeg2Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","LLeg2Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024))
  934. 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))
  935. CreateMesh("SpecialMesh",LLeg2Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  936. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024))
  937. 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))
  938. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  939. RLeg1Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","RLeg1Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024))
  940. 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))
  941. CreateMesh("SpecialMesh",RLeg1Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  942. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024))
  943. 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))
  944. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  945. RLeg2Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","RLeg2Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024))
  946. 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))
  947. CreateMesh("SpecialMesh",RLeg2Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  948. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024))
  949. 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))
  950. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  951. NeckHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","NeckHandle",Vector3.new(0.799999714, 0.800000012, 0.99999994))
  952. 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))
  953. CreateMesh("SpecialMesh",NeckHandle,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,"Really black","Part",Vector3.new(1.5999999, 0.800000012, 0.99999994))
  955. 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))
  956. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  957. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.5999999, 1, 1.39999998))
  958. 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))
  959. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  960. TailHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","TailHandle",Vector3.new(0.799999714, 0.800000012, 0.99999994))
  961. 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))
  962. CreateMesh("SpecialMesh",TailHandle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  963. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.39999974, 0.800000012, 0.99999994))
  964. 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))
  965. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  966. Tail2HandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Tail2HandleConnector",Vector3.new(0.599999726, 0.800000012, 0.799999952))
  967. 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))
  968. CreateMesh("SpecialMesh",Tail2HandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  969. Tail2Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Tail2Handle",Vector3.new(0.599999726, 0.800000012, 0.799999952))
  970. 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))
  971. CreateMesh("SpecialMesh",Tail2Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  972. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.39999974, 0.800000012, 0.799999952))
  973. 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))
  974. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  975. Tail3HandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Tail3HandleConnector",Vector3.new(0.599999845, 0.800000012, 0.799999952))
  976. 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))
  977. CreateMesh("SpecialMesh",Tail3HandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  978. Tail3Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Tail3Handle",Vector3.new(0.599999845, 0.800000012, 0.799999952))
  979. 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))
  980. CreateMesh("SpecialMesh",Tail3Handle,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,"Bright red","Part",Vector3.new(1.79999983, 0.800000012, 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.04519272, 0.064440012, -0.0208930969, 1, 2.3010216e-009, 0, 2.3010216e-009, 1, 0, 0, 0, 1.00000012))
  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,"Black","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.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))
  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,"Bright red","Part",Vector3.new(1.79999983, 0.600000024, 0.200000003))
  988. 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))
  989. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  990. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.39999986, 0.800000012, 0.799999952))
  991. 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))
  992. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  993.  
  994. mouse.Button1Down:connect(function()
  995. end)
  996.  
  997. mouse.KeyDown:connect(function(k)
  998. k = k:lower()
  999. if k == "f" and attack == false and Flying == false then
  1000. Humanoid.CameraOffset = Vector3.new(0, -1, 0)
  1001. Humanoid.WalkSpeed = 63
  1002. Flying = true
  1003. elseif k == "f" and attack == false and Flying == true then
  1004. Humanoid.CameraOffset = Vector3.new(0, -2, 0)
  1005. Humanoid.WalkSpeed = 16
  1006. Flying = false
  1007. end
  1008. end)
  1009.  
  1010.  
  1011. inputserv.InputBegan:connect(function(k)
  1012. if k.KeyCode == Enum.KeyCode.One and typing == false and cooldown3 >= co1 and stamina >= skill1stam then
  1013. elseif k.KeyCode == Enum.KeyCode.Two and typing == false and cooldown3 >= co2 and stamina >= skill2stam then
  1014. elseif k.KeyCode == Enum.KeyCode.Three and typing == false and cooldown3 >= co3 and stamina >= skill3stam then
  1015. elseif k.KeyCode == Enum.KeyCode.Four and typing == false and cooldown3 >= co4 and stamina >= skill4stam then
  1016. end
  1017. end)
  1018.  
  1019. inputserv.InputBegan:connect(function(k)
  1020. if k.KeyCode == Enum.KeyCode.Slash then
  1021. local fin = nil
  1022. typing = true
  1023. fin = inputserv.InputBegan:connect(function(k)
  1024. if k.KeyCode == Enum.KeyCode.Return or k.UserInputType == Enum.UserInputType.MouseButton1 then
  1025. typing = false
  1026. fin:disconnect()
  1027. end
  1028. end)
  1029. end
  1030. end)
  1031.  
  1032. function updateskills()
  1033. if cooldown1 <= co1 then
  1034. cooldown1 = cooldown1 + 1 / 30
  1035. end
  1036. if cooldown2 <= co2 then
  1037. cooldown2 = cooldown2 + 1 / 30
  1038. end
  1039. if cooldown3 <= co3 then
  1040. cooldown3 = cooldown3 + 1 / 30
  1041. end
  1042. if cooldown4 <= co4 then
  1043. cooldown4 = cooldown4 + 1 / 30
  1044. end
  1045. if stamina <= maxstamina then
  1046. stamina = stamina + recovermana / 30
  1047. end
  1048. end
  1049.  
  1050. coroutine.resume(coroutine.create(function(Part,Weld)
  1051. while Part.Parent~=nil do
  1052. wait(5)
  1053. for i=0,1,0.2 do
  1054. wait()
  1055. BlinkPartR.Mesh.Scale = Vector3.new(.7-1*i,1,1)
  1056. end
  1057. for i=0,1,0.2 do
  1058. wait()
  1059. BlinkPartR.Mesh.Scale = Vector3.new(.7+.3*i,1,1)
  1060. end
  1061. end
  1062. end),BlinkPartR,BlinkPartRweld)
  1063.  
  1064. coroutine.resume(coroutine.create(function(Part,Weld)
  1065. while Part.Parent~=nil do
  1066. wait(5)
  1067. for i=0,1,0.2 do
  1068. wait()
  1069. BlinkPartL.Mesh.Scale = Vector3.new(.7-1*i,1,1)
  1070. end
  1071. for i=0,1,0.2 do
  1072. wait()
  1073. BlinkPartL.Mesh.Scale = Vector3.new(.7+.3*i,1,1)
  1074. end
  1075. end
  1076. end),BlinkPartL,BlinkPartLweld)
  1077.  
  1078. game:GetService'RunService'.Heartbeat:connect(function()
  1079. updateskills()
  1080. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1081. velocity = RootPart.Velocity.y
  1082. sine = sine + change
  1083. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1084. if equipped == true or equipped == false then
  1085. if RootPart.Velocity.y > 1 and hit == nil and stun.Value ~= true then
  1086. Anim = "Jump"
  1087. if attack == false then
  1088. Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 2) * angles(math.rad(50), math.rad(0), math.rad(0)), .3)
  1089. NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3)
  1090. HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  1091. LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3)
  1092. LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3)
  1093. RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3)
  1094. RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3)
  1095. TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3)
  1096. Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3)
  1097. Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3)
  1098. end
  1099. elseif RootPart.Velocity.y < -1 and hit == nil and stun.Value ~= true then
  1100. Anim = "Fall"
  1101. if attack == false then
  1102. Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 1) * angles(math.rad(20), math.rad(0), math.rad(0)), .3)
  1103. NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-15)), .3)
  1104. HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), .3)
  1105. LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  1106. LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  1107. RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  1108. RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  1109. TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3)
  1110. Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3)
  1111. Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3)
  1112. end
  1113. elseif Torsovelocity < 1 and hit ~= nil and stun.Value ~= true then
  1114. Anim = "Idle"
  1115. if attack == false and Flying == false then
  1116. change = 1
  1117. Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1118. 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)
  1119. 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)
  1120. 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)
  1121. 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)
  1122. 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)
  1123. 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)
  1124. 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)
  1125. 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)
  1126. 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)
  1127. elseif attack == false and Flying == true then
  1128. 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)
  1129. 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)
  1130. 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)
  1131. 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)
  1132. 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)
  1133. 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)
  1134. 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)
  1135. 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)
  1136. 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)
  1137. 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)
  1138. end
  1139. elseif Torsovelocity > 2 and hit ~= nil and stun.Value ~= true then
  1140. Anim = "Walk"
  1141. if attack == false and Flying == false then
  1142. change = 1
  1143. 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)
  1144. 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)
  1145. 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)
  1146. 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)
  1147. LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30*math.cos(sine/5))), .3)
  1148. RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30*math.cos(sine/5))), .3)
  1149. 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)
  1150. TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(3*math.cos(sine/15))), .3)
  1151. Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2*math.cos(sine/15))), .3)
  1152. Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(3*math.cos(sine/15))), .3)
  1153. elseif attack == false and Flying == true then
  1154. change = 1
  1155. 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)
  1156. 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)
  1157. 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)
  1158. 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)
  1159. 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)
  1160. 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)
  1161. 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)
  1162. 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)
  1163. 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)
  1164. 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)
  1165. end
  1166. end
  1167. end
  1168. end)
  1169.  
  1170. local d = owner.Character:GetChildren()
  1171. for i=1, #d do
  1172. if (d[i].className == "Accessory") then
  1173. d[i]:remove()
  1174. end
  1175. end
  1176.  
  1177. local plr = owner
  1178. plr.Character.Humanoid.MaxHealth = math.huge
  1179. Instance.new("ForceField",plr.Character).Visible = false
  1180.  
  1181. function firework()
  1182. local varx = math.random(-15,15)
  1183. wait()
  1184. local vary = math.random(-15,15)
  1185. wait()
  1186. local ran = math.random(0,6)
  1187. wait()
  1188. if ran == 0 then
  1189. color1 = Color3.fromRGB(175,0,255) -- purple colors
  1190. color2 = Color3.fromRGB(22,22,22)
  1191. elseif ran == 1 then
  1192. color1 = Color3.fromRGB(22,22,22)
  1193. color2 = Color3.fromRGB(175,0,255)
  1194. elseif ran == 2 then
  1195. color1 = Color3.fromRGB(255,255,255)
  1196. color2 = Color3.fromRGB(175,0,255)
  1197. elseif ran == 3 then
  1198. color1 = Color3.fromRGB(175,0,255)
  1199. color2 = Color3.fromRGB(255,255,255)
  1200. elseif ran == 4 then
  1201. color1 = Color3.fromRGB(175,0,255)
  1202. color2 = Color3.fromRGB(255,0,255)
  1203. elseif ran == 5 then
  1204. color1 = Color3.fromRGB(0,0,255)
  1205. color2 = Color3.fromRGB(175,0,255)
  1206. elseif ran == 6 then
  1207. color1 = Color3.fromRGB(125,0,255)
  1208. color2 = Color3.fromRGB(185,85,255)
  1209. end
  1210. local ParticleEmittera = Instance.new("ParticleEmitter")
  1211. local ParticleEmitter1 = Instance.new("ParticleEmitter")
  1212. local ParticleEmitter2 = Instance.new("ParticleEmitter")
  1213. local ParticleEmitter3 = Instance.new("ParticleEmitter")
  1214. local ParticleEmitter4 = Instance.new("ParticleEmitter")
  1215. local ParticleEmitter5 = Instance.new("ParticleEmitter")
  1216. wait()
  1217. local SoundPitch =0.9+math.random()*.5
  1218. wait()
  1219. local firework = Instance.new("Part",workspace)
  1220. local sound1 = Instance.new("Sound",firework)
  1221. sound1.SoundId = "rbxassetid://858818415"
  1222. sound1.Volume = 5
  1223. sound1.Pitch = SoundPitch
  1224. local sound2 = Instance.new("Sound",firework)
  1225. sound2.SoundId = "rbxassetid://884087543"
  1226. sound2.Volume = 5
  1227. sound2.Pitch = SoundPitch
  1228. local sound3 = Instance.new("Sound",firework)
  1229. sound3.SoundId = "rbxassetid://858818261"
  1230. sound3.Volume = 10
  1231. sound3.Pitch = 0.9+math.random()*.5
  1232. sound1:Play()
  1233. sound2:Play()
  1234. ParticleEmittera.Parent = firework
  1235. ParticleEmittera.Speed = NumberRange.new(65, 65)
  1236. ParticleEmittera.Color = ColorSequence.new(color1,color1)
  1237. ParticleEmittera.Enabled = false
  1238. ParticleEmittera.LightEmission = 1
  1239. ParticleEmittera.LightInfluence = 0
  1240. ParticleEmittera.Texture = "rbxassetid://1280736246"
  1241. ParticleEmittera.Transparency = NumberSequence.new(0.5,0.5)
  1242. ParticleEmittera.Size = NumberSequence.new(3,3)
  1243. ParticleEmittera.Lifetime = NumberRange.new(3, 5)
  1244. ParticleEmittera.Rate = 100
  1245. ParticleEmittera.RotSpeed = NumberRange.new(10, 10)
  1246. ParticleEmittera.SpreadAngle = Vector2.new(360, 360)
  1247. ParticleEmittera.VelocitySpread = 360
  1248. ParticleEmitter1.Parent = firework
  1249. ParticleEmitter1.Speed = NumberRange.new(65, 65)
  1250. ParticleEmitter1.Color = ColorSequence.new(color2,color2)
  1251. ParticleEmitter1.Enabled = false
  1252. ParticleEmitter1.LightEmission = 1
  1253. ParticleEmitter1.LightInfluence = 0
  1254. ParticleEmitter1.Texture = "rbxassetid://1280736246"
  1255. ParticleEmitter1.Transparency = NumberSequence.new(0.5,0.5)
  1256. ParticleEmitter1.Size = NumberSequence.new(3,3)
  1257. ParticleEmitter1.Lifetime = NumberRange.new(3, 5)
  1258. ParticleEmitter1.Rate = 100
  1259. ParticleEmitter1.RotSpeed = NumberRange.new(10, 10)
  1260. ParticleEmitter1.SpreadAngle = Vector2.new(360, 360)
  1261. ParticleEmitter1.VelocitySpread = 360
  1262. ParticleEmitter2.Parent = firework
  1263. ParticleEmitter2.Speed = NumberRange.new(65, 65)
  1264. ParticleEmitter2.Color = ColorSequence.new(color1,color1)
  1265. ParticleEmitter2.Enabled = false
  1266. ParticleEmitter2.LightEmission = 1
  1267. ParticleEmitter2.LightInfluence = 0
  1268. ParticleEmitter2.Texture = "rbxassetid://1280736246"
  1269. ParticleEmitter2.Transparency = NumberSequence.new(0.5,0.5)
  1270. ParticleEmitter2.Size = NumberSequence.new(3,3)
  1271. ParticleEmitter2.Lifetime = NumberRange.new(3, 5)
  1272. ParticleEmitter2.Rate = 100
  1273. ParticleEmitter2.RotSpeed = NumberRange.new(10, 10)
  1274. ParticleEmitter2.SpreadAngle = Vector2.new(360, 360)
  1275. ParticleEmitter2.VelocitySpread = 360
  1276. ParticleEmitter3.Parent = firework
  1277. ParticleEmitter3.Speed = NumberRange.new(65, 65)
  1278. ParticleEmitter3.Color = ColorSequence.new(color2,color2)
  1279. ParticleEmitter3.Enabled = false
  1280. ParticleEmitter3.LightEmission = 1
  1281. ParticleEmitter3.LightInfluence = 0
  1282. ParticleEmitter3.Texture = "rbxassetid://1280736246"
  1283. ParticleEmitter3.Transparency = NumberSequence.new(0.5,0.5)
  1284. ParticleEmitter3.Size = NumberSequence.new(3,3)
  1285. ParticleEmitter3.Lifetime = NumberRange.new(3, 5)
  1286. ParticleEmitter3.Rate = 100
  1287. ParticleEmitter3.RotSpeed = NumberRange.new(10, 10)
  1288. ParticleEmitter3.SpreadAngle = Vector2.new(360, 360)
  1289. ParticleEmitter3.VelocitySpread = 360
  1290. ParticleEmitter4.Parent = firework
  1291. ParticleEmitter4.Speed = NumberRange.new(65, 65)
  1292. ParticleEmitter4.Color = ColorSequence.new(color1,color1)
  1293. ParticleEmitter4.Enabled = false
  1294. ParticleEmitter4.LightEmission = 1
  1295. ParticleEmitter4.LightInfluence = 0
  1296. ParticleEmitter4.Texture = "rbxassetid://1280736246"
  1297. ParticleEmitter4.Transparency = NumberSequence.new(0.5,0.5)
  1298. ParticleEmitter4.Size = NumberSequence.new(3,3)
  1299. ParticleEmitter4.Lifetime = NumberRange.new(3, 5)
  1300. ParticleEmitter4.Rate = 100
  1301. ParticleEmitter4.RotSpeed = NumberRange.new(10, 10)
  1302. ParticleEmitter4.SpreadAngle = Vector2.new(360, 360)
  1303. ParticleEmitter4.VelocitySpread = 360
  1304. ParticleEmitter5.Parent = firework
  1305. ParticleEmitter5.Speed = NumberRange.new(65, 65)
  1306. ParticleEmitter5.Color = ColorSequence.new(color2,color2)
  1307. ParticleEmitter5.Enabled = false
  1308. ParticleEmitter5.LightEmission = 1
  1309. ParticleEmitter5.LightInfluence = 0
  1310. ParticleEmitter5.Texture = "rbxassetid://1280736246"
  1311. ParticleEmitter5.Transparency = NumberSequence.new(0.5,0.5)
  1312. ParticleEmitter5.Size = NumberSequence.new(3,3)
  1313. ParticleEmitter5.Lifetime = NumberRange.new(3, 5)
  1314. ParticleEmitter5.Rate = 100
  1315. ParticleEmitter5.RotSpeed = NumberRange.new(10, 10)
  1316. ParticleEmitter5.SpreadAngle = Vector2.new(360, 360)
  1317. ParticleEmitter5.VelocitySpread = 360
  1318. firework.CFrame = mouse.Hit
  1319. firework.Color = color1
  1320. firework.Size = Vector3.new(1.1, 2.613, 0.964)
  1321. firework.Orientation = Vector3.new(varx,0,vary)
  1322. local ParticleEmitter0 = Instance.new("ParticleEmitter")
  1323. ParticleEmitter0.Parent = firework
  1324. ParticleEmitter0.Speed = NumberRange.new(-10, -10)
  1325. ParticleEmitter0.LightEmission = 1
  1326. ParticleEmitter0.LightInfluence = 0
  1327. ParticleEmitter0.Texture = "rbxassetid://1028077058"
  1328. ParticleEmitter0.Transparency = NumberSequence.new(0.5,0.5)
  1329. ParticleEmitter0.Size = NumberSequence.new(2,2)
  1330. ParticleEmitter0.Lifetime = NumberRange.new(0.25, 1)
  1331. ParticleEmitter0.Rate = 25
  1332. ParticleEmitter0.SpreadAngle = Vector2.new(10, 10)
  1333. ParticleEmitter0.VelocitySpread = 10
  1334. local g=Instance.new("BodyThrust",firework)
  1335. g.Force = Vector3.new(0,600,0)
  1336. wait(1.5)
  1337. firework.Anchored = true
  1338. firework.CanCollide = false
  1339. firework.Transparency = 1
  1340. ParticleEmitter0.Enabled = false
  1341. wait()
  1342. sound3:Play()
  1343. ParticleEmittera.Enabled = true
  1344. ParticleEmitter1.Enabled = true
  1345. ParticleEmitter2.Enabled = true
  1346. ParticleEmitter3.Enabled = true
  1347. ParticleEmitter4.Enabled = true
  1348. ParticleEmitter5.Enabled = true
  1349. wait(.25)
  1350. ParticleEmittera.Enabled = false
  1351. ParticleEmitter1.Enabled = false
  1352. ParticleEmitter2.Enabled = false
  1353. ParticleEmitter3.Enabled = false
  1354. ParticleEmitter4.Enabled = false
  1355. ParticleEmitter5.Enabled = false
  1356. wait(3)
  1357. firework.Parent = nil
  1358. end
  1359.  
  1360. function firedoeswork()
  1361. local varx = math.random(-15,15)
  1362. wait()
  1363. local vary = math.random(-15,15)
  1364. wait()
  1365. local ran = math.random(0,6)
  1366. wait()
  1367. local x = math.random(-50,50)
  1368. wait()
  1369. local z = math.random(-50,50)
  1370. if ran == 0 then
  1371. color1 = Color3.fromRGB(175,0,255) -- purple colors
  1372. color2 = Color3.fromRGB(22,22,22)
  1373. elseif ran == 1 then
  1374. color1 = Color3.fromRGB(22,22,22)
  1375. color2 = Color3.fromRGB(175,0,255)
  1376. elseif ran == 2 then
  1377. color1 = Color3.fromRGB(255,255,255)
  1378. color2 = Color3.fromRGB(175,0,255)
  1379. elseif ran == 3 then
  1380. color1 = Color3.fromRGB(175,0,255)
  1381. color2 = Color3.fromRGB(255,255,255)
  1382. elseif ran == 4 then
  1383. color1 = Color3.fromRGB(175,0,255)
  1384. color2 = Color3.fromRGB(255,0,255)
  1385. elseif ran == 5 then
  1386. color1 = Color3.fromRGB(0,0,255)
  1387. color2 = Color3.fromRGB(175,0,255)
  1388. elseif ran == 6 then
  1389. color1 = Color3.fromRGB(125,0,255)
  1390. color2 = Color3.fromRGB(185,85,255)
  1391. end
  1392. local ParticleEmittera = Instance.new("ParticleEmitter")
  1393. local ParticleEmitter1 = Instance.new("ParticleEmitter")
  1394. local ParticleEmitter2 = Instance.new("ParticleEmitter")
  1395. local ParticleEmitter3 = Instance.new("ParticleEmitter")
  1396. local ParticleEmitter4 = Instance.new("ParticleEmitter")
  1397. local ParticleEmitter5 = Instance.new("ParticleEmitter")
  1398. wait()
  1399. local SoundPitch =0.9+math.random()*.5
  1400. wait()
  1401. local firework = Instance.new("Part",workspace)
  1402. local sound1 = Instance.new("Sound",firework)
  1403. sound1.SoundId = "rbxassetid://858818415"
  1404. sound1.Volume = 5
  1405. sound1.Pitch = SoundPitch
  1406. local sound2 = Instance.new("Sound",firework)
  1407. sound2.SoundId = "rbxassetid://884087543"
  1408. sound2.Volume = 5
  1409. sound2.Pitch = SoundPitch
  1410. local sound3 = Instance.new("Sound",firework)
  1411. sound3.SoundId = "rbxassetid://858818261"
  1412. sound3.Volume = 10
  1413. sound3.Pitch = 0.9+math.random()*.5
  1414. sound1:Play()
  1415. sound2:Play()
  1416. ParticleEmittera.Parent = firework
  1417. ParticleEmittera.Speed = NumberRange.new(65, 65)
  1418. ParticleEmittera.Color = ColorSequence.new(color1,color1)
  1419. ParticleEmittera.Enabled = false
  1420. ParticleEmittera.LightEmission = 1
  1421. ParticleEmittera.LightInfluence = 0
  1422. ParticleEmittera.Texture = "rbxassetid://1280736246"
  1423. ParticleEmittera.Transparency = NumberSequence.new(0.5,0.5)
  1424. ParticleEmittera.Size = NumberSequence.new(3,3)
  1425. ParticleEmittera.Lifetime = NumberRange.new(3, 5)
  1426. ParticleEmittera.Rate = 100
  1427. ParticleEmittera.RotSpeed = NumberRange.new(10, 10)
  1428. ParticleEmittera.SpreadAngle = Vector2.new(360, 360)
  1429. ParticleEmittera.VelocitySpread = 360
  1430. ParticleEmitter1.Parent = firework
  1431. ParticleEmitter1.Speed = NumberRange.new(65, 65)
  1432. ParticleEmitter1.Color = ColorSequence.new(color2,color2)
  1433. ParticleEmitter1.Enabled = false
  1434. ParticleEmitter1.LightEmission = 1
  1435. ParticleEmitter1.LightInfluence = 0
  1436. ParticleEmitter1.Texture = "rbxassetid://1280736246"
  1437. ParticleEmitter1.Transparency = NumberSequence.new(0.5,0.5)
  1438. ParticleEmitter1.Size = NumberSequence.new(3,3)
  1439. ParticleEmitter1.Lifetime = NumberRange.new(3, 5)
  1440. ParticleEmitter1.Rate = 100
  1441. ParticleEmitter1.RotSpeed = NumberRange.new(10, 10)
  1442. ParticleEmitter1.SpreadAngle = Vector2.new(360, 360)
  1443. ParticleEmitter1.VelocitySpread = 360
  1444. ParticleEmitter2.Parent = firework
  1445. ParticleEmitter2.Speed = NumberRange.new(65, 65)
  1446. ParticleEmitter2.Color = ColorSequence.new(color1,color1)
  1447. ParticleEmitter2.Enabled = false
  1448. ParticleEmitter2.LightEmission = 1
  1449. ParticleEmitter2.LightInfluence = 0
  1450. ParticleEmitter2.Texture = "rbxassetid://1280736246"
  1451. ParticleEmitter2.Transparency = NumberSequence.new(0.5,0.5)
  1452. ParticleEmitter2.Size = NumberSequence.new(3,3)
  1453. ParticleEmitter2.Lifetime = NumberRange.new(3, 5)
  1454. ParticleEmitter2.Rate = 100
  1455. ParticleEmitter2.RotSpeed = NumberRange.new(10, 10)
  1456. ParticleEmitter2.SpreadAngle = Vector2.new(360, 360)
  1457. ParticleEmitter2.VelocitySpread = 360
  1458. ParticleEmitter3.Parent = firework
  1459. ParticleEmitter3.Speed = NumberRange.new(65, 65)
  1460. ParticleEmitter3.Color = ColorSequence.new(color2,color2)
  1461. ParticleEmitter3.Enabled = false
  1462. ParticleEmitter3.LightEmission = 1
  1463. ParticleEmitter3.LightInfluence = 0
  1464. ParticleEmitter3.Texture = "rbxassetid://1280736246"
  1465. ParticleEmitter3.Transparency = NumberSequence.new(0.5,0.5)
  1466. ParticleEmitter3.Size = NumberSequence.new(3,3)
  1467. ParticleEmitter3.Lifetime = NumberRange.new(3, 5)
  1468. ParticleEmitter3.Rate = 100
  1469. ParticleEmitter3.RotSpeed = NumberRange.new(10, 10)
  1470. ParticleEmitter3.SpreadAngle = Vector2.new(360, 360)
  1471. ParticleEmitter3.VelocitySpread = 360
  1472. ParticleEmitter4.Parent = firework
  1473. ParticleEmitter4.Speed = NumberRange.new(65, 65)
  1474. ParticleEmitter4.Color = ColorSequence.new(color1,color1)
  1475. ParticleEmitter4.Enabled = false
  1476. ParticleEmitter4.LightEmission = 1
  1477. ParticleEmitter4.LightInfluence = 0
  1478. ParticleEmitter4.Texture = "rbxassetid://1280736246"
  1479. ParticleEmitter4.Transparency = NumberSequence.new(0.5,0.5)
  1480. ParticleEmitter4.Size = NumberSequence.new(3,3)
  1481. ParticleEmitter4.Lifetime = NumberRange.new(3, 5)
  1482. ParticleEmitter4.Rate = 100
  1483. ParticleEmitter4.RotSpeed = NumberRange.new(10, 10)
  1484. ParticleEmitter4.SpreadAngle = Vector2.new(360, 360)
  1485. ParticleEmitter4.VelocitySpread = 360
  1486. ParticleEmitter5.Parent = firework
  1487. ParticleEmitter5.Speed = NumberRange.new(65, 65)
  1488. ParticleEmitter5.Color = ColorSequence.new(color2,color2)
  1489. ParticleEmitter5.Enabled = false
  1490. ParticleEmitter5.LightEmission = 1
  1491. ParticleEmitter5.LightInfluence = 0
  1492. ParticleEmitter5.Texture = "rbxassetid://1280736246"
  1493. ParticleEmitter5.Transparency = NumberSequence.new(0.5,0.5)
  1494. ParticleEmitter5.Size = NumberSequence.new(3,3)
  1495. ParticleEmitter5.Lifetime = NumberRange.new(3, 5)
  1496. ParticleEmitter5.Rate = 100
  1497. ParticleEmitter5.RotSpeed = NumberRange.new(10, 10)
  1498. ParticleEmitter5.SpreadAngle = Vector2.new(360, 360)
  1499. ParticleEmitter5.VelocitySpread = 360
  1500. --
  1501. firework.CFrame = plr.Character.Head.CFrame + Vector3.new(x,-4,z)
  1502. firework.Color = color1
  1503. firework.Size = Vector3.new(1.1, 2.613, 0.964)
  1504. firework.Orientation = Vector3.new(varx,0,vary)
  1505. --
  1506. local ParticleEmitter0 = Instance.new("ParticleEmitter")
  1507. ParticleEmitter0.Parent = firework
  1508. ParticleEmitter0.Speed = NumberRange.new(-10, -10)
  1509. ParticleEmitter0.LightEmission = 1
  1510. ParticleEmitter0.LightInfluence = 0
  1511. ParticleEmitter0.Texture = "rbxassetid://1028077058"
  1512. ParticleEmitter0.Transparency = NumberSequence.new(0.5,0.5)
  1513. ParticleEmitter0.Size = NumberSequence.new(2,2)
  1514. ParticleEmitter0.Lifetime = NumberRange.new(0.25, 1)
  1515. ParticleEmitter0.Rate = 25
  1516. ParticleEmitter0.SpreadAngle = Vector2.new(10, 10)
  1517. ParticleEmitter0.VelocitySpread = 10
  1518. local g=Instance.new("BodyThrust",firework)
  1519. g.Force = Vector3.new(0,600,0)
  1520. wait(1.5)
  1521. firework.Anchored = true
  1522. firework.CanCollide = false
  1523. firework.Transparency = 1
  1524. ParticleEmitter0.Enabled = false
  1525. wait()
  1526. sound3:Play()
  1527. ParticleEmittera.Enabled = true
  1528. ParticleEmitter1.Enabled = true
  1529. ParticleEmitter2.Enabled = true
  1530. ParticleEmitter3.Enabled = true
  1531. ParticleEmitter4.Enabled = true
  1532. ParticleEmitter5.Enabled = true
  1533. wait(.25)
  1534. ParticleEmittera.Enabled = false
  1535. ParticleEmitter1.Enabled = false
  1536. ParticleEmitter2.Enabled = false
  1537. ParticleEmitter3.Enabled = false
  1538. ParticleEmitter4.Enabled = false
  1539. ParticleEmitter5.Enabled = false
  1540. wait(3)
  1541. firework.Parent = nil
  1542. end
  1543.  
  1544. local p = owner
  1545. local lol5 = Instance.new("Sound",p.Character.Head)
  1546. lol5.Name = "Fire"
  1547. lol5.SoundId = "http://www.roblox.com/asset?id=257001241"
  1548. lol5.Pitch = 1.3
  1549. lol5.Volume = 5
  1550. lol5.TimePosition = 6.6662961134570650756
  1551. lol6 = Instance.new("Sound",p.Character.Head)
  1552. lol6.Name = "Reload"
  1553. lol6.SoundId = "http://www.roblox.com/asset?id=166032807"
  1554. lol6.Pitch = 1.8
  1555. lol6.Volume = 0
  1556. local lol7 = Instance.new("Sound",p.Character.Head)
  1557. lol7.Name = "HitFade"
  1558. lol7.Pitch = .6
  1559. lol7.Volume = 10
  1560. lol7.SoundId = "http://www.roblox.com/asset?id=163570653"
  1561. -----------------
  1562. --| Constants |--
  1563. -----------------
  1564.  
  1565. local SHOT_SPEED = 150
  1566. local SHOT_TIME = 5
  1567.  
  1568. local NOZZLE_OFFSET = Vector3.new(0, -1.6, -2)
  1569.  
  1570. -----------------
  1571. --| Variables |--
  1572. -----------------
  1573. plr = owner
  1574. local PlayersService = game:GetService('Players')
  1575. local DebrisService = game:GetService('Debris')
  1576.  
  1577. Handle = plr.Character.Head
  1578. local FireSound = Handle:WaitForChild('Fire')
  1579. local ReloadSound = Handle:WaitForChild('Reload')
  1580. local HitFadeSound = Handle:WaitForChild('HitFade')
  1581.  
  1582. local Character = plr.Character
  1583. local Humanoid = plr.Character.Humanoid
  1584. local Player = plr
  1585.  
  1586. local BaseShot = nil
  1587.  
  1588. PointLight = Instance.new("PointLight")
  1589. PointLight.Color = Color3.fromRGB(125,0,255)
  1590. PointLight.Range = 15
  1591. PointLight.Brightness = 10
  1592.  
  1593. -----------------
  1594. --| Functions |--
  1595. -----------------
  1596.  
  1597. -- Returns a character ancestor and its Humanoid, or nil
  1598. local function FindCharacterAncestor(subject)
  1599. if subject and subject ~= workspace then
  1600. local humanoid = subject:FindFirstChild('Humanoid')
  1601. if humanoid then
  1602. return subject, humanoid
  1603. else
  1604. return FindCharacterAncestor(subject.Parent)
  1605. end
  1606. end
  1607. return nil
  1608. end
  1609.  
  1610. -- Removes any old creator tags and applies new ones to the specified target
  1611. local function ApplyTags(target)
  1612. while target:FindFirstChild('creator') do
  1613. target.creator:Destroy()
  1614. end
  1615.  
  1616. local creatorTag = Instance.new('ObjectValue')
  1617. creatorTag.Value = Player
  1618. creatorTag.Name = 'creator' --NOTE: Must be called 'creator' for website stats
  1619.  
  1620. local iconTag = Instance.new('StringValue')
  1621. iconTag.Name = 'icon'
  1622.  
  1623. iconTag.Parent = creatorTag
  1624. creatorTag.Parent = target
  1625. DebrisService:AddItem(creatorTag, 4)
  1626. end
  1627.  
  1628. -- Returns all objects under instance with Transparency
  1629. local function GetTransparentsRecursive(instance, partsTable)
  1630. local partsTable = partsTable or {}
  1631. for _, child in pairs(instance:GetChildren()) do
  1632. if child:IsA('BasePart') or child:IsA('Decal') then
  1633. table.insert(partsTable, child)
  1634. end
  1635. GetTransparentsRecursive(child, partsTable)
  1636. end
  1637. return partsTable
  1638. end
  1639.  
  1640. local function SelectionBoxify(instance)
  1641. local selectionBox = Instance.new('SelectionBox')
  1642. selectionBox.Adornee = instance
  1643. selectionBox.Color = BrickColor.new('Hot pink')
  1644. selectionBox.Parent = instance
  1645. return selectionBox
  1646. end
  1647.  
  1648. local function Light(instance)
  1649. local light = PointLight:Clone()
  1650. light.Range = light.Range + 2
  1651. light.Parent = instance
  1652. end
  1653.  
  1654. local function FadeOutObjects(objectsWithTransparency, fadeIncrement)
  1655. repeat
  1656. local lastObject = nil
  1657. for _, object in pairs(objectsWithTransparency) do
  1658. object.Transparency = object.Transparency + fadeIncrement
  1659. lastObject = object
  1660. end
  1661. wait()
  1662. until lastObject.Transparency >= 1 or not lastObject
  1663. end
  1664.  
  1665. local function Dematerialize(character, humanoid, firstPart)
  1666. humanoid.WalkSpeed = 0
  1667.  
  1668. local parts = {}
  1669. for _, child in pairs(character:GetChildren()) do
  1670. if child:IsA('BasePart') then
  1671. child.Anchored = true
  1672. table.insert(parts, child)
  1673. elseif child:IsA('LocalScript') or child:IsA('Script') then
  1674. child:Destroy()
  1675. end
  1676. end
  1677.  
  1678. local selectionBoxes = {}
  1679.  
  1680. local firstSelectionBox = SelectionBoxify(firstPart)
  1681. Light(firstPart)
  1682. wait(0.05)
  1683.  
  1684. for _, part in pairs(parts) do
  1685. if part ~= firstPart then
  1686. table.insert(selectionBoxes, SelectionBoxify(part))
  1687. Light(part)
  1688. end
  1689. end
  1690.  
  1691. local objectsWithTransparency = GetTransparentsRecursive(character)
  1692. FadeOutObjects(objectsWithTransparency, 0.1)
  1693.  
  1694. wait(0.5)
  1695.  
  1696. humanoid.Health = 0
  1697. DebrisService:AddItem(character, 2)
  1698.  
  1699. local fadeIncrement = 0.05
  1700. delay(0.2, function()
  1701. FadeOutObjects({firstSelectionBox}, fadeIncrement)
  1702. if character then
  1703. character:Destroy()
  1704. end
  1705. end)
  1706. ParticleEmmiter1.Enabled = false
  1707. FadeOutObjects(selectionBoxes, fadeIncrement)
  1708. wait(.8)
  1709. ParticleEmmiter1:Destroy()
  1710. end
  1711.  
  1712. local function OnTouched(shot, otherPart)
  1713. local character, humanoid = FindCharacterAncestor(otherPart)
  1714. if character and humanoid and character ~= Character then
  1715. ApplyTags(humanoid)
  1716. if shot then
  1717. local hitFadeSound = shot:FindFirstChild(HitFadeSound.Name)
  1718. if hitFadeSound then
  1719. hitFadeSound.Parent = humanoid.Torso
  1720. hitFadeSound.TimePosition = 0.1
  1721. ParticleEmmiter1 = Instance.new("ParticleEmitter")
  1722. ParticleEmmiter1.Parent = humanoid.Torso
  1723. ParticleEmmiter1.Speed = NumberRange.new(10, 10)
  1724. ParticleEmmiter1.Color = ColorSequence.new(Color3.fromRGB(125, 0, 255),Color3.fromRGB(95, 0, 200))
  1725. ParticleEmmiter1.LightEmission = 1
  1726. ParticleEmmiter1.LightInfluence = 0
  1727. ParticleEmmiter1.Texture = "http://www.roblox.com/asset/?id=1280736246"
  1728. ParticleEmmiter1.Transparency = NumberSequence.new(1,0.68800002336502,0.8870000243187,1)
  1729. ParticleEmmiter1.Size = NumberSequence.new(3,3)
  1730. ParticleEmmiter1.Lifetime = NumberRange.new(0.40000000596046, 0.80000001192093)
  1731. ParticleEmmiter1.LockedToPart = true
  1732. ParticleEmmiter1.Rate = 250
  1733. ParticleEmmiter1.SpreadAngle = Vector2.new(360, 360)
  1734. ParticleEmmiter1.VelocitySpread = 360
  1735. hitFadeSound:Play()
  1736. end
  1737. shot:Destroy()
  1738. end
  1739. Dematerialize(character, humanoid, otherPart)
  1740. end
  1741. end
  1742.  
  1743.  
  1744. function keydown()
  1745.  
  1746. FireSound:Play()
  1747. FireSound.TimePosition = 6.6662961134570650756
  1748. local gay = Instance.new("Part",workspace)
  1749. gay.Transparency = 1
  1750. gay.Anchored = true
  1751. gay.CanCollide = false
  1752. gay.CFrame = mouse.Hit
  1753. Humanoid.TargetPoint = gay.Position
  1754.  
  1755. local handleCFrame = Handle.CFrame
  1756. local firingPoint = handleCFrame.p + handleCFrame:vectorToWorldSpace(NOZZLE_OFFSET)
  1757. local shotCFrame = CFrame.new(firingPoint, Humanoid.TargetPoint)
  1758.  
  1759. local laserShotClone = BaseShot:Clone()
  1760. laserShotClone.CFrame = shotCFrame + (shotCFrame.lookVector * (BaseShot.Size.Z / 2))
  1761. local bodyVelocity = Instance.new('BodyVelocity')
  1762. bodyVelocity.velocity = shotCFrame.lookVector * SHOT_SPEED
  1763. bodyVelocity.Parent = laserShotClone
  1764. laserShotClone.Touched:connect(function(otherPart)
  1765. OnTouched(laserShotClone, otherPart)
  1766. end)
  1767. DebrisService:AddItem(laserShotClone, SHOT_TIME)
  1768. laserShotClone.Parent = plr.Character
  1769. local ParticleEmitter0 = Instance.new("ParticleEmitter")
  1770. ParticleEmitter0.Speed = NumberRange.new(0, 0)
  1771. ParticleEmitter0.Color = ColorSequence.new(Color3.fromRGB(125, 0, 255),Color3.fromRGB(95, 0, 200))
  1772. ParticleEmitter0.LightEmission = 1
  1773. ParticleEmitter0.LightInfluence = 1
  1774. ParticleEmitter0.Texture = "http://www.roblox.com/asset/?id=1280736246"
  1775. ParticleEmitter0.Transparency = NumberSequence.new(1,0.68800002336502,0.8870000243187,1)
  1776. ParticleEmitter0.Size = NumberSequence.new(3,3)
  1777. ParticleEmitter0.Lifetime = NumberRange.new(0.20000000298023, 0.40000000596046)
  1778. ParticleEmitter0.Rate = 250
  1779. ParticleEmitter0.SpreadAngle = Vector2.new(360, 360)
  1780. ParticleEmitter0.VelocitySpread = 360
  1781. ParticleEmitter0.Parent = laserShotClone
  1782.  
  1783. wait(0.001) -- FireSound length
  1784.  
  1785. ReloadSound:Play()
  1786. wait(0.001) -- ReloadSound length
  1787. gay:Destroy()
  1788.  
  1789. end
  1790.  
  1791. --------------------
  1792. --| Script Logic |--
  1793. --------------------
  1794.  
  1795. BaseShot = Instance.new('Part')
  1796. BaseShot.Name = 'Effect'
  1797. BaseShot.FormFactor = Enum.FormFactor.Custom
  1798. BaseShot.Size = Vector3.new(0.2, 0.2, 3)
  1799. BaseShot.CanCollide = false
  1800. BaseShot.Color = Color3.fromRGB(125,0,255)
  1801. BaseShot.Transparency = 1
  1802. BaseShot.Material = "Neon"
  1803. Light(BaseShot)
  1804. HitFadeSound:Clone().Parent = BaseShot
  1805.  
  1806. mouse = plr:GetMouse()
  1807.  
  1808. function dropexplosion()
  1809. local plr = owner
  1810. local mouse = plr:GetMouse()
  1811. local Part0 = Instance.new("Part")
  1812. local Part1 = Instance.new("Part")
  1813. local Part2 = Instance.new("Part")
  1814. local Part3 = Instance.new("Part")
  1815. local ParticleEmitter4 = Instance.new("ParticleEmitter")
  1816. local ParticleEmitter5 = Instance.new("ParticleEmitter")
  1817. local ParticleEmitter4a = Instance.new("ParticleEmitter")
  1818. local ParticleEmitter5a = Instance.new("ParticleEmitter")
  1819. local ParticleEmitter4b = Instance.new("ParticleEmitter")
  1820. local ParticleEmitter5b = Instance.new("ParticleEmitter")
  1821. local Part6 = Instance.new("Part")
  1822. local ParticleEmitter7 = Instance.new("ParticleEmitter")
  1823. local Part8 = Instance.new("Part")
  1824. local Part9 = Instance.new("Part")
  1825. local Part10 = Instance.new("Part")
  1826. local antispam = false
  1827. local touch = false
  1828. local sound1 = Instance.new("Sound")
  1829. local sound2 = Instance.new("Sound")
  1830. local toucher = false
  1831. Part3.Name = "HitPart"
  1832. Part3.Transparency = 1
  1833. Part3.Parent = workspace
  1834. Part3.CFrame = mouse.Hit
  1835. Part3.Orientation = Vector3.new(90, 0, 0)
  1836. Part3.Rotation = Vector3.new(90, 0, 0)
  1837. Part3.Size = Vector3.new(1, 1, 1)
  1838. Part3.Anchored = false
  1839. Part3.CanCollide = true
  1840. Part3.Touched:connect(function(part)
  1841. if toucher == false then
  1842. wait()
  1843. toucher = true
  1844. Mat = part.Material
  1845. Color = part.Color
  1846. return
  1847. else return
  1848. end
  1849. end)
  1850. repeat wait() until toucher == true
  1851. Part3.Anchored = true
  1852. Part3.CanCollide = false
  1853. Part3.BottomSurface = Enum.SurfaceType.Smooth
  1854. Part3.TopSurface = Enum.SurfaceType.Smooth
  1855. Part0.Name = "GroundPart1"
  1856. Part0.CanCollide = false
  1857. Part0.Parent = workspace
  1858. Part0.Orientation = Vector3.new(43.7000008, 69.7999954, 0)
  1859. Part0.Position = Part3.Position + Vector3.new(-4.79191017, -0.534395099, -1.54843795)
  1860. Part0.Rotation = Vector3.new(70.1299973, 42.7299995, -61.9599991)
  1861. Part0.Color = Color
  1862. Part0.Size = Vector3.new(6.01000214, 5.5, 4.91000032)
  1863. Part0.Anchored = true
  1864. Part0.BottomSurface = Enum.SurfaceType.Smooth
  1865. Part0.Material = Mat
  1866. Part0.TopSurface = Enum.SurfaceType.Smooth
  1867. Part1.Name = "GroundPart2"
  1868. Part1.CanCollide = false
  1869. Part1.Parent = workspace
  1870. Part1.Orientation = Vector3.new(43.7000008, -44.4899979, 0)
  1871. Part1.Position = Part3.Position + Vector3.new(3.2295146, -0.810723543, -3.21858191)
  1872. Part1.Rotation = Vector3.new(53.25, -30.4399986, 34.1599998)
  1873. Part1.Color = Color
  1874. Part1.Size = Vector3.new(6.01000214, 5.5, 4.1099987)
  1875. Part1.Anchored = true
  1876. Part1.BottomSurface = Enum.SurfaceType.Smooth
  1877. Part1.Material = Mat
  1878. Part1.TopSurface = Enum.SurfaceType.Smooth
  1879. Part2.Name = "GroundPart3"
  1880. Part2.CanCollide = false
  1881. Part2.Parent = workspace
  1882. Part2.Orientation = Vector3.new(-35.2900009, 0, 0)
  1883. Part2.Position = Part3.Position + Vector3.new(-0.0850079656, -0.452380568, 5.17579603)
  1884. Part2.Rotation = Vector3.new(-35.2900009, 0, 0)
  1885. Part2.Color = Color
  1886. Part2.Size = Vector3.new(6.01000214, 4.99000216, 5.75000048)
  1887. Part2.Anchored = true
  1888. Part2.BottomSurface = Enum.SurfaceType.Smooth
  1889. Part2.Material = Mat
  1890. Part2.TopSurface = Enum.SurfaceType.Smooth
  1891. ParticleEmitter4.Parent = Part3
  1892. ParticleEmitter4.Speed = NumberRange.new(90, 90)
  1893. ParticleEmitter4.Color = ColorSequence.new(Color3.new(0.6, 0, 1),Color3.new(0.6, 0, 1))
  1894. ParticleEmitter4.Enabled = false
  1895. ParticleEmitter4.LightEmission = 1
  1896. ParticleEmitter4.Texture = "http://www.roblox.com/asset/?id=1280736246"
  1897. ParticleEmitter4.Transparency = NumberSequence.new(1,0.68800002336502,0.8870000243187,1)
  1898. ParticleEmitter4.Size = NumberSequence.new(20,20)
  1899. ParticleEmitter4.Lifetime = NumberRange.new(1, 2)
  1900. ParticleEmitter4.Rate = 250
  1901. ParticleEmitter4.SpreadAngle = Vector2.new(0, 180)
  1902. ParticleEmitter5.Parent = Part3
  1903. ParticleEmitter5.Speed = NumberRange.new(90, 90)
  1904. ParticleEmitter5.Color = ColorSequence.new(Color3.new(0.6, 0, 1),Color3.new(0.6, 0, 1))
  1905. ParticleEmitter5.Enabled = false
  1906. ParticleEmitter5.LightEmission = 1
  1907. ParticleEmitter5.LightInfluence = 0
  1908. ParticleEmitter5.Texture = "http://www.roblox.com/asset/?id=1280736246"
  1909. ParticleEmitter5.Transparency = NumberSequence.new(1,0.68800002336502,0.8870000243187,1)
  1910. ParticleEmitter5.Size = NumberSequence.new(20,20)
  1911. ParticleEmitter5.EmissionDirection = Enum.NormalId.Front
  1912. ParticleEmitter5.Lifetime = NumberRange.new(1, 2)
  1913. ParticleEmitter5.Rate = 250
  1914. ParticleEmitter5.SpreadAngle = Vector2.new(50, 50)
  1915. ParticleEmitter5.VelocitySpread = 50
  1916. ParticleEmitter4a.Parent = Part3
  1917. ParticleEmitter4a.Speed = NumberRange.new(90, 90)
  1918. ParticleEmitter4a.Color = ColorSequence.new(Color3.new(0.6, 0, 1),Color3.new(0.6, 0, 1))
  1919. ParticleEmitter4a.Enabled = false
  1920. ParticleEmitter4a.LightEmission = 1
  1921. ParticleEmitter4a.Texture = "http://www.roblox.com/asset/?id=1280736246"
  1922. ParticleEmitter4a.Transparency = NumberSequence.new(1,0.68800002336502,0.8870000243187,1)
  1923. ParticleEmitter4a.Size = NumberSequence.new(20,20)
  1924. ParticleEmitter4a.Lifetime = NumberRange.new(1, 2)
  1925. ParticleEmitter4a.Rate = 250
  1926. ParticleEmitter4a.SpreadAngle = Vector2.new(0, 180)
  1927. ParticleEmitter5a.Parent = Part3
  1928. ParticleEmitter5a.Speed = NumberRange.new(90, 90)
  1929. ParticleEmitter5a.Color = ColorSequence.new(Color3.new(0.6, 0, 1),Color3.new(0.6, 0, 1))
  1930. ParticleEmitter5a.Enabled = false
  1931. ParticleEmitter5a.LightEmission = 1
  1932. ParticleEmitter5a.LightInfluence = 0
  1933. ParticleEmitter5a.Texture = "http://www.roblox.com/asset/?id=1280736246"
  1934. ParticleEmitter5a.Transparency = NumberSequence.new(1,0.68800002336502,0.8870000243187,1)
  1935. ParticleEmitter5a.Size = NumberSequence.new(20,20)
  1936. ParticleEmitter5a.EmissionDirection = Enum.NormalId.Front
  1937. ParticleEmitter5a.Lifetime = NumberRange.new(1, 2)
  1938. ParticleEmitter5a.Rate = 250
  1939. ParticleEmitter5a.SpreadAngle = Vector2.new(50, 50)
  1940. ParticleEmitter5a.VelocitySpread = 50
  1941. ParticleEmitter4b.Parent = Part3
  1942. ParticleEmitter4b.Speed = NumberRange.new(90, 90)
  1943. ParticleEmitter4b.Color = ColorSequence.new(Color3.new(0.6, 0, 1),Color3.new(0.6, 0, 1))
  1944. ParticleEmitter4b.Enabled = false
  1945. ParticleEmitter4b.LightEmission = 1
  1946. ParticleEmitter4b.Texture = "http://www.roblox.com/asset/?id=1280736246"
  1947. ParticleEmitter4b.Transparency = NumberSequence.new(1,0.68800002336502,0.8870000243187,1)
  1948. ParticleEmitter4b.Size = NumberSequence.new(20,20)
  1949. ParticleEmitter4b.Lifetime = NumberRange.new(1, 2)
  1950. ParticleEmitter4b.Rate = 250
  1951. ParticleEmitter4b.SpreadAngle = Vector2.new(0, 180)
  1952. ParticleEmitter5b.Parent = Part3
  1953. ParticleEmitter5b.Speed = NumberRange.new(90, 90)
  1954. ParticleEmitter5b.Color = ColorSequence.new(Color3.new(0.6, 0, 1),Color3.new(0.6, 0, 1))
  1955. ParticleEmitter5b.Enabled = false
  1956. ParticleEmitter5b.LightEmission = 1
  1957. ParticleEmitter5b.LightInfluence = 0
  1958. ParticleEmitter5b.Texture = "http://www.roblox.com/asset/?id=1280736246"
  1959. ParticleEmitter5b.Transparency = NumberSequence.new(1,0.68800002336502,0.8870000243187,1)
  1960. ParticleEmitter5b.Size = NumberSequence.new(20,20)
  1961. ParticleEmitter5b.EmissionDirection = Enum.NormalId.Front
  1962. ParticleEmitter5b.Lifetime = NumberRange.new(1, 2)
  1963. ParticleEmitter5b.Rate = 250
  1964. ParticleEmitter5b.SpreadAngle = Vector2.new(50, 50)
  1965. ParticleEmitter5b.VelocitySpread = 50
  1966. sound1.Volume = 10
  1967. sound1.Parent = Part3
  1968. sound1.SoundId = "rbxassetid://1842360200"
  1969. sound2.Volume = 10
  1970. sound2.Parent = Part3
  1971. sound2.SoundId = "rbxassetid://161107566"
  1972. Part6.Name = "FallPart"
  1973. Part6.Parent = workspace
  1974. Part6.Position = Part3.Position + Vector3.new(0, 73.1500092, 0)
  1975. Part6.Color = Color3.new(0.384314, 0.145098, 0.819608)
  1976. Part6.Size = Vector3.new(1, 1, 1)
  1977. Part6.Anchored = true
  1978. Part6.BottomSurface = Enum.SurfaceType.Smooth
  1979. Part6.BrickColor = BrickColor.new("Royal purple")
  1980. Part6.Material = Enum.Material.Neon
  1981. Part6.TopSurface = Enum.SurfaceType.Smooth
  1982. Part6.brickColor = BrickColor.new("Royal purple")
  1983. ParticleEmitter7.Parent = Part6
  1984. ParticleEmitter7.Speed = NumberRange.new(20, 20)
  1985. ParticleEmitter7.Color = ColorSequence.new(Color3.new(0.6, 0, 1),Color3.new(0.6, 0, 1))
  1986. ParticleEmitter7.LightEmission = 1
  1987. ParticleEmitter7.Enabled = false
  1988. ParticleEmitter7.Texture = "http://www.roblox.com/asset/?id=1280736246"
  1989. ParticleEmitter7.Transparency = NumberSequence.new(1,0.68800002336502,0.8870000243187,1)
  1990. ParticleEmitter7.Size = NumberSequence.new(3,3)
  1991. ParticleEmitter7.Lifetime = NumberRange.new(0.80000001192093, 1.3999999761581)
  1992. ParticleEmitter7.Rate = 250
  1993. ParticleEmitter7.SpreadAngle = Vector2.new(50, 50)
  1994. ParticleEmitter7.VelocitySpread = 50
  1995. Part8.Name = "ThrowPart1"
  1996. Part8.Parent = workspace
  1997. Part8.Orientation = Vector3.new(43.7000008, 69.7999954, 0)
  1998. Part8.Position = Part3.Position + Vector3.new(-9.69961834, 9.33336163, -2.60139155)
  1999. Part8.Rotation = Vector3.new(70.1299973, 42.7299995, -61.9599991)
  2000. Part8.Color = Color
  2001. Part8.Size = Vector3.new(5.15000153, 3.76000071, 3.54000092)
  2002. Part8.Anchored = true
  2003. Part8.BottomSurface = Enum.SurfaceType.Smooth
  2004. Part8.Material = Mat
  2005. Part8.TopSurface = Enum.SurfaceType.Smooth
  2006. Part9.Name = "ThrowPart2"
  2007. Part9.Parent = workspace
  2008. Part9.Orientation = Vector3.new(43.7000008, -45.1800003, 0)
  2009. Part9.Position = Part3.Position + Vector3.new(4.32038021, 9.33336163, -5.15139008)
  2010. Part9.Rotation = Vector3.new(53.579998, -30.8499985, 34.7999992)
  2011. Part9.Color = Color
  2012. Part9.Size = Vector3.new(5.15000153, 3.76000071, 3.54000092)
  2013. Part9.Anchored = true
  2014. Part9.BottomSurface = Enum.SurfaceType.Smooth
  2015. Part9.Material = Mat
  2016. Part9.TopSurface = Enum.SurfaceType.Smooth
  2017. Part10.Name = "ThrowPart3"
  2018. Part10.Parent = workspace
  2019. Part10.Orientation = Vector3.new(43.7000008, -179, 0)
  2020. Part10.Position = Part3.Position + Vector3.new(-0.229619771, 9.33336163, 7.62861347)
  2021. Part10.Rotation = Vector3.new(136.300003, -0.729999959, 179.309998)
  2022. Part10.Color = Color
  2023. Part10.Size = Vector3.new(5.15000153, 3.76000071, 3.54000092)
  2024. Part10.Anchored = true
  2025. Part10.BottomSurface = Enum.SurfaceType.Smooth
  2026. Part10.Material = Mat
  2027. Part10.TopSurface = Enum.SurfaceType.Smooth
  2028. Part0.Anchored = true
  2029. Part1.Anchored = true
  2030. Part2.Anchored = true
  2031. Part3.Anchored = true
  2032. Part6.Anchored = false
  2033. Part8.Anchored = true
  2034. Part9.Anchored = true
  2035. Part10.Anchored = true
  2036. Part0.Transparency = 1
  2037. Part1.Transparency = 1
  2038. Part2.Transparency = 1
  2039. Part3.Transparency = 1
  2040. Part6.Transparency = 0
  2041. Part8.Transparency = 1
  2042. Part9.Transparency = 1
  2043. Part10.Transparency = 1
  2044. Part8.Velocity = Vector3.new(-90, 100, -20)
  2045. Part9.Velocity = Vector3.new(40, 100, -50)
  2046. Part10.Velocity = Vector3.new(-10, 100, 80)
  2047. Part8.CanCollide = false
  2048. Part9.CanCollide = false
  2049. Part10.CanCollide = false
  2050. ParticleEmitter7.Enabled = true
  2051. Part6.Touched:connect(function(touche)
  2052. touch = true
  2053. end)
  2054. repeat wait() until touch == true
  2055. ParticleEmitter5.Enabled = true
  2056. ParticleEmitter4.Enabled = true
  2057. ParticleEmitter5a.Enabled = true
  2058. ParticleEmitter4a.Enabled = true
  2059. ParticleEmitter5b.Enabled = true
  2060. ParticleEmitter4b.Enabled = true
  2061. Part0.Transparency = 0
  2062. Part1.Transparency = 0
  2063. Part2.Transparency = 0
  2064. --sound--
  2065. local e = Instance.new("Explosion",workspace)
  2066. e.Visible = false
  2067. e.Position = Part3.Position
  2068. e.BlastRadius = 45
  2069. e.BlastPressure = math.huge
  2070. sound2:Play()
  2071. sound1:Play()
  2072. wait()
  2073. Part8.Transparency = 0
  2074. Part9.Transparency = 0
  2075. Part10.Transparency = 0
  2076. Part8.Anchored = false
  2077. Part9.Anchored = false
  2078. Part10.Anchored = false
  2079. wait(.5)
  2080. ParticleEmitter5.Enabled = false
  2081. ParticleEmitter4.Enabled = false
  2082. ParticleEmitter5a.Enabled = false
  2083. ParticleEmitter4a.Enabled = false
  2084. ParticleEmitter5b.Enabled = false
  2085. ParticleEmitter4b.Enabled = false
  2086. wait(2.5)
  2087. Part0.Parent = nil
  2088. wait()
  2089. Part1.Parent = nil
  2090. wait()
  2091. Part2.Parent = nil
  2092. wait()
  2093. Part6.Parent = nil
  2094. wait()
  2095. Part8.Parent = nil
  2096. wait()
  2097. Part9.Parent = nil
  2098. wait()
  2099. Part10.Parent = nil
  2100. wait(2.5)
  2101. Part3.Parent = nil
  2102.  
  2103. end
  2104.  
  2105. function keygui()
  2106. -- the gui colors you may change if you like, if you can, if not then enjoy my pink gui
  2107. -- Objects
  2108.  
  2109. local DraggoGui = Instance.new("ScreenGui")
  2110. local Frame = Instance.new("Frame")
  2111. local PitchBox = Instance.new("TextBox")
  2112. local IDLabel = Instance.new("TextLabel")
  2113. local PitchLabel = Instance.new("TextLabel")
  2114. local IDBox = Instance.new("TextBox")
  2115. local VolumeLabel = Instance.new("TextLabel")
  2116. local VolumeBox = Instance.new("TextBox")
  2117. local VisualiserLabel = Instance.new("TextLabel")
  2118. local VisualiserBox = Instance.new("TextButton")
  2119. local ApplyButton = Instance.new("TextButton")
  2120. local CancelButton = Instance.new("TextButton")
  2121. local ChangeButton = Instance.new("TextButton")
  2122.  
  2123. -- Properties
  2124.  
  2125. DraggoGui.Name = "DraggoGui"
  2126. DraggoGui.Parent = owner.PlayerGui
  2127.  
  2128. Frame.Parent = DraggoGui
  2129. Frame.AnchorPoint = Vector2.new(0.5, 0.5)
  2130. Frame.BackgroundColor3 = Color3.new(0.988235, 0.631373, 1)
  2131. Frame.BackgroundTransparency = 0.30000001192093
  2132. Frame.BorderColor3 = Color3.new(0.992157, 0.827451, 1)
  2133. Frame.BorderSizePixel = 30
  2134. Frame.Position = UDim2.new(0.5, 0, 0.5, 0)
  2135. Frame.Size = UDim2.new(0.899999976, 0, 0.800000012, 0)
  2136.  
  2137. PitchBox.Name = "PitchBox"
  2138. PitchBox.Parent = Frame
  2139. PitchBox.BackgroundColor3 = Color3.new(1, 1, 1)
  2140. PitchBox.BackgroundTransparency = 0.20000000298023
  2141. PitchBox.BorderSizePixel = 0
  2142. PitchBox.Position = UDim2.new(0.300000012, 0, 0.209999993, 0)
  2143. PitchBox.Size = UDim2.new(0.600000024, 0, 0.150000006, 0)
  2144. PitchBox.Font = Enum.Font.SourceSans
  2145. PitchBox.PlaceholderColor3 = Color3.new(1, 0.796079, 0.992157)
  2146. PitchBox.PlaceholderText = "Enter A Pitch"
  2147. PitchBox.Text = ""
  2148. PitchBox.TextColor3 = Color3.new(0.960784, 0.513726, 1)
  2149. PitchBox.TextScaled = true
  2150. PitchBox.TextSize = 14
  2151. PitchBox.TextWrapped = true
  2152.  
  2153. IDLabel.Name = "IDLabel"
  2154. IDLabel.Parent = Frame
  2155. IDLabel.AnchorPoint = Vector2.new(1, 0)
  2156. IDLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  2157. IDLabel.BackgroundTransparency = 1
  2158. IDLabel.BorderSizePixel = 0
  2159. IDLabel.Position = UDim2.new(0.280000001, 0, 0.0399999991, 0)
  2160. IDLabel.Size = UDim2.new(0.25, 0, 0.150000006, 0)
  2161. IDLabel.Font = Enum.Font.SourceSans
  2162. IDLabel.Text = "Song Id:"
  2163. IDLabel.TextColor3 = Color3.new(1, 1, 1)
  2164. IDLabel.TextScaled = true
  2165. IDLabel.TextSize = 14
  2166. IDLabel.TextStrokeColor3 = Color3.new(0.988235, 0.647059, 1)
  2167. IDLabel.TextStrokeTransparency = 0
  2168. IDLabel.TextWrapped = true
  2169.  
  2170. PitchLabel.Name = "PitchLabel"
  2171. PitchLabel.Parent = Frame
  2172. PitchLabel.AnchorPoint = Vector2.new(1, 0)
  2173. PitchLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  2174. PitchLabel.BackgroundTransparency = 1
  2175. PitchLabel.BorderSizePixel = 0
  2176. PitchLabel.Position = UDim2.new(0.280000001, 0, 0.209999993, 0)
  2177. PitchLabel.Size = UDim2.new(0.25, 0, 0.150000006, 0)
  2178. PitchLabel.Font = Enum.Font.SourceSans
  2179. PitchLabel.Text = "Pitch:"
  2180. PitchLabel.TextColor3 = Color3.new(1, 1, 1)
  2181. PitchLabel.TextScaled = true
  2182. PitchLabel.TextSize = 14
  2183. PitchLabel.TextStrokeColor3 = Color3.new(0.988235, 0.647059, 1)
  2184. PitchLabel.TextStrokeTransparency = 0
  2185. PitchLabel.TextWrapped = true
  2186.  
  2187. IDBox.Name = "IDBox"
  2188. IDBox.Parent = Frame
  2189. IDBox.BackgroundColor3 = Color3.new(1, 1, 1)
  2190. IDBox.BackgroundTransparency = 0.20000000298023
  2191. IDBox.BorderSizePixel = 0
  2192. IDBox.Position = UDim2.new(0.300000012, 0, 0.0399999991, 0)
  2193. IDBox.Size = UDim2.new(0.600000024, 0, 0.150000006, 0)
  2194. IDBox.Font = Enum.Font.SourceSans
  2195. IDBox.PlaceholderColor3 = Color3.new(1, 0.796079, 0.992157)
  2196. IDBox.PlaceholderText = "Enter An ID"
  2197. IDBox.Text = ""
  2198. IDBox.TextColor3 = Color3.new(0.960784, 0.513726, 1)
  2199. IDBox.TextScaled = true
  2200. IDBox.TextSize = 14
  2201. IDBox.TextWrapped = true
  2202.  
  2203. VolumeLabel.Name = "VolumeLabel"
  2204. VolumeLabel.Parent = Frame
  2205. VolumeLabel.AnchorPoint = Vector2.new(1, 0)
  2206. VolumeLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  2207. VolumeLabel.BackgroundTransparency = 1
  2208. VolumeLabel.BorderSizePixel = 0
  2209. VolumeLabel.Position = UDim2.new(0.280000001, 0, 0.379999995, 0)
  2210. VolumeLabel.Size = UDim2.new(0.25, 0, 0.150000006, 0)
  2211. VolumeLabel.Font = Enum.Font.SourceSans
  2212. VolumeLabel.Text = "Volume:"
  2213. VolumeLabel.TextColor3 = Color3.new(1, 1, 1)
  2214. VolumeLabel.TextScaled = true
  2215. VolumeLabel.TextSize = 14
  2216. VolumeLabel.TextStrokeColor3 = Color3.new(0.988235, 0.647059, 1)
  2217. VolumeLabel.TextStrokeTransparency = 0
  2218. VolumeLabel.TextWrapped = true
  2219.  
  2220. VolumeBox.Name = "VolumeBox"
  2221. VolumeBox.Parent = Frame
  2222. VolumeBox.BackgroundColor3 = Color3.new(1, 1, 1)
  2223. VolumeBox.BackgroundTransparency = 0.20000000298023
  2224. VolumeBox.BorderSizePixel = 0
  2225. VolumeBox.Position = UDim2.new(0.300000012, 0, 0.379999995, 0)
  2226. VolumeBox.Size = UDim2.new(0.600000024, 0, 0.150000006, 0)
  2227. VolumeBox.Font = Enum.Font.SourceSans
  2228. VolumeBox.PlaceholderColor3 = Color3.new(1, 0.796079, 0.992157)
  2229. VolumeBox.PlaceholderText = "Enter A Volume"
  2230. VolumeBox.Text = ""
  2231. VolumeBox.TextColor3 = Color3.new(0.960784, 0.513726, 1)
  2232. VolumeBox.TextScaled = true
  2233. VolumeBox.TextSize = 14
  2234. VolumeBox.TextWrapped = true
  2235.  
  2236. VisualiserLabel.Name = "VisualiserLabel"
  2237. VisualiserLabel.Parent = Frame
  2238. VisualiserLabel.AnchorPoint = Vector2.new(1, 0)
  2239. VisualiserLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  2240. VisualiserLabel.BackgroundTransparency = 1
  2241. VisualiserLabel.BorderSizePixel = 0
  2242. VisualiserLabel.Position = UDim2.new(0.280000001, 0, 0.550000012, 0)
  2243. VisualiserLabel.Size = UDim2.new(0.25, 0, 0.150000006, 0)
  2244. VisualiserLabel.Font = Enum.Font.SourceSans
  2245. VisualiserLabel.Text = "Visualiser:"
  2246. VisualiserLabel.TextColor3 = Color3.new(1, 1, 1)
  2247. VisualiserLabel.TextScaled = true
  2248. VisualiserLabel.TextSize = 14
  2249. VisualiserLabel.TextStrokeColor3 = Color3.new(0.988235, 0.647059, 1)
  2250. VisualiserLabel.TextStrokeTransparency = 0
  2251. VisualiserLabel.TextWrapped = true
  2252.  
  2253. VisualiserBox.Name = "VisualiserBox"
  2254. VisualiserBox.Parent = Frame
  2255. VisualiserBox.BackgroundColor3 = Color3.new(1, 1, 1)
  2256. VisualiserBox.BackgroundTransparency = 0.20000000298023
  2257. VisualiserBox.BorderSizePixel = 0
  2258. VisualiserBox.Position = UDim2.new(0.300000012, 0, 0.550000012, 0)
  2259. VisualiserBox.Size = UDim2.new(0.600000024, 0, 0.150000006, 0)
  2260. VisualiserBox.Font = Enum.Font.SourceSans
  2261. VisualiserBox.Text = "Off"
  2262. VisualiserBox.TextColor3 = Color3.new(0.960784, 0.513726, 1)
  2263. VisualiserBox.TextScaled = true
  2264. VisualiserBox.TextSize = 14
  2265. VisualiserBox.TextWrapped = true
  2266.  
  2267. ApplyButton.Name = "ApplyButton"
  2268. ApplyButton.Parent = Frame
  2269. ApplyButton.AnchorPoint = Vector2.new(0, 1)
  2270. ApplyButton.BackgroundColor3 = Color3.new(1, 0.886275, 0.992157)
  2271. ApplyButton.BackgroundTransparency = 0.20000000298023
  2272. ApplyButton.BorderColor3 = Color3.new(1, 0.380392, 0.992157)
  2273. ApplyButton.BorderSizePixel = 10
  2274. ApplyButton.Position = UDim2.new(0.699999988, 0, 0.949999988, 0)
  2275. ApplyButton.Size = UDim2.new(0.25, 0, 0.150000006, 0)
  2276. ApplyButton.Font = Enum.Font.SourceSans
  2277. ApplyButton.Text = "Apply"
  2278. ApplyButton.TextColor3 = Color3.new(1, 0.541176, 0.980392)
  2279. ApplyButton.TextScaled = true
  2280. ApplyButton.TextSize = 14
  2281. ApplyButton.TextWrapped = true
  2282.  
  2283. CancelButton.Name = "CancelButton"
  2284. CancelButton.Parent = Frame
  2285. CancelButton.AnchorPoint = Vector2.new(1, 1)
  2286. CancelButton.BackgroundColor3 = Color3.new(1, 0.886275, 0.992157)
  2287. CancelButton.BackgroundTransparency = 0.20000000298023
  2288. CancelButton.BorderColor3 = Color3.new(1, 0.380392, 0.992157)
  2289. CancelButton.BorderSizePixel = 10
  2290. CancelButton.Position = UDim2.new(0.300000012, 0, 0.949999988, 0)
  2291. CancelButton.Size = UDim2.new(0.25, 0, 0.150000006, 0)
  2292. CancelButton.Font = Enum.Font.SourceSans
  2293. CancelButton.Text = "Cancel"
  2294. CancelButton.TextColor3 = Color3.new(1, 0.541176, 0.980392)
  2295. CancelButton.TextScaled = true
  2296. CancelButton.TextSize = 14
  2297. CancelButton.TextWrapped = true
  2298.  
  2299. ChangeButton.Name = "ChangeButton"
  2300. ChangeButton.Parent = Frame
  2301. ChangeButton.AnchorPoint = Vector2.new(0.5, 1)
  2302. ChangeButton.BackgroundColor3 = Color3.new(1, 0.886275, 0.992157)
  2303. ChangeButton.BackgroundTransparency = 0.20000000298023
  2304. ChangeButton.BorderColor3 = Color3.new(1, 0.380392, 0.992157)
  2305. ChangeButton.BorderSizePixel = 10
  2306. ChangeButton.Position = UDim2.new(0.5, 0, 0.949999988, 0)
  2307. ChangeButton.Size = UDim2.new(0.25, 0, 0.150000006, 0)
  2308. ChangeButton.Font = Enum.Font.SourceSans
  2309. ChangeButton.Text = "Change"
  2310. ChangeButton.TextColor3 = Color3.new(1, 0.541176, 0.980392)
  2311. ChangeButton.TextScaled = true
  2312. ChangeButton.TextSize = 14
  2313. ChangeButton.TextWrapped = true
  2314.  
  2315. -- Scripts
  2316.  
  2317.  
  2318. wait()
  2319. if plr.Character.Head:FindFirstChild("Sound") then
  2320. IDBox.Text = id
  2321. PitchBox.Text = pitch
  2322. VolumeBox.Text = volume
  2323. if vis == false then
  2324. VisualiserBox.Text = "Off"
  2325. else
  2326. VisualiserBox.Text = "On"
  2327. end
  2328. end
  2329.  
  2330. VisualiserBox.MouseButton1Click:connect(function()
  2331. if VisualiserBox.Text == "On" then
  2332. VisualiserBox.Text = "Off"
  2333. else
  2334. VisualiserBox.Text = "On"
  2335. end
  2336. end)
  2337. CancelButton.MouseButton1Click:connect(function()
  2338. DraggoGui.Parent = nil
  2339. end)
  2340. ApplyButton.MouseButton1Click:connect(function()
  2341. local a = IDBox.Text
  2342. a=a+1-1
  2343. if a ~= id then
  2344. if plr.Character.Head:FindFirstChild("Sound") then
  2345. plr.Character.Head:FindFirstChild("Sound"):Destroy()
  2346. end
  2347. sound = Instance.new("Sound",plr.Character.Head)
  2348. sound.SoundId = "rbxassetid://"..a
  2349. id=a
  2350. end
  2351. local b = PitchBox.Text
  2352. b=b-1+1
  2353. pitch = b
  2354. sound.Pitch = b
  2355. local c = VolumeBox.Text
  2356. c=c-1+1
  2357. sound.Volume = c
  2358. volume = c
  2359. if VisualiserBox.Text == "On" then
  2360. vis = true
  2361. oldRange = 10
  2362. oldBright = 1
  2363. cube.Transparency = 0
  2364. plr.Character.Torso:FindFirstChild("PointLight").Range = 10
  2365. else
  2366. vis = false
  2367. oldBright = 0
  2368. oldRange = 0
  2369. plr.Character.Torso:FindFirstChild("PointLight").Range = 0
  2370. cube.Transparency = 1
  2371. end
  2372. sound.Looped = true
  2373. sound:Play()
  2374. wait()
  2375. DraggoGui.Parent = nil
  2376. end)
  2377. ChangeButton.MouseButton1Click:connect(function()
  2378. local a = IDBox.Text
  2379. a=a+1-1
  2380. if a ~= id then
  2381. sound = plr.Character.Head:FindFirstChild("Sound")
  2382. sound.SoundId = "rbxassetid://"..a
  2383. id=a
  2384. end
  2385. local b = PitchBox.Text
  2386. b=b-1+1
  2387. pitch = b
  2388. sound.Pitch = b
  2389. local c = VolumeBox.Text
  2390. c=c-1+1
  2391. sound.Volume = c
  2392. volume = c
  2393. if VisualiserBox.Text == "On" then
  2394. vis = true
  2395. oldRange = 10
  2396. oldBright = 1
  2397. cube.Transparency = 0
  2398. plr.Character.Torso:FindFirstChild("PointLight").Range = 10
  2399. else
  2400. vis = false
  2401. oldBright = 0
  2402. oldRange = 0
  2403. plr.Character.Torso:FindFirstChild("PointLight").Range = 0
  2404. cube.Transparency = 1
  2405. end
  2406. wait()
  2407. DraggoGui.Parent = nil
  2408. end)
  2409. end
  2410.  
  2411.  
  2412. local plr = owner
  2413. mouse = plr:GetMouse()
  2414. mouse.Button1Down:connect(function()
  2415. if plr.Character.Parent ~= workspace.Camera then
  2416. if mouse ~= nil then
  2417. if mouse.Target ~= nil then
  2418. part = mouse.Target
  2419. bp = Instance.new("BodyPosition",part)
  2420. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  2421. bp.Position = part.Position
  2422. particles = Instance.new("ParticleEmitter",part)
  2423. particles.Color = ColorSequence.new(Color3.new(0.6,0,1))
  2424. particles.Size = NumberSequence.new(3)
  2425. particles.LightInfluence = 0
  2426. particles.LightEmission = 1
  2427. particles.Texture = "http://www.roblox.com/asset/?id=1280736246"
  2428. particles.VelocitySpread = 360
  2429. particles.Speed = NumberRange.new(0)
  2430. particles.RotSpeed = NumberRange.new(0)
  2431. particles.Rotation = NumberRange.new(0)
  2432. particles.Rate = 250
  2433. particles.Lifetime = NumberRange.new(.2,.4)
  2434. particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(.12,.688,0),NumberSequenceKeypoint.new(.891,.887,0),NumberSequenceKeypoint.new(1,1,0)})
  2435. dwn = true
  2436. end
  2437. end
  2438. while dwn == true do
  2439. wait()
  2440. bp.Position = mouse.hit.p
  2441. if part then
  2442. if part.Parent:FindFirstChildOfClass("Humanoid") then
  2443. part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
  2444. end
  2445. end
  2446. end
  2447. end
  2448. end)
  2449. mouse.Button1Up:connect(function()
  2450. dwn = false
  2451. if part then if part.Parent:FindFirstChildOfClass("Humanoid") then part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part = nil end
  2452. if bp then bp:Destroy() end
  2453. if particles then particles:Destroy() end
  2454. end)
  2455.  
  2456.  
  2457. mouse.KeyDown:connect(function(key)
  2458. if key == "c" then
  2459. local clone = part:Clone()
  2460. clone.Parent = workspace
  2461. clone.Anchored = false
  2462. clone:ClearAllChildren()
  2463. clone.CanCollide = true
  2464. bp.Parent = clone
  2465. particles.Parent = clone
  2466. if part.Parent:FindFirstChildOfClass("Humanoid") then
  2467. part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false
  2468. end
  2469. part:Destroy()
  2470. part = clone
  2471. end
  2472. end)
  2473.  
  2474. CV="Lapis"
  2475. p = owner
  2476. char = p.Character
  2477. local txt = Instance.new("BillboardGui", char.WeaponModel.Head)
  2478. txt.Adornee = char.WeaponModel.Head
  2479. txt.Name = "_status"
  2480. txt.Size = UDim2.new(2, 0, 1.2, 0)
  2481. txt.StudsOffset = Vector3.new(0, 2.5, 0)
  2482. local text = Instance.new("TextLabel", txt)
  2483. text.AnchorPoint = Vector2.new(0.5,0.5)
  2484. text.TextYAlignment = "Bottom"
  2485. text.Size = UDim2.new(5, 0, 3, 0)
  2486. text.Position = UDim2.new(0.5,0,0.5,0)
  2487. text.FontSize = "Size18"
  2488. text.TextScaled = true
  2489. text.TextTransparency = 0
  2490. text.BackgroundTransparency = 1
  2491. text.TextTransparency = 0
  2492. text.TextStrokeTransparency = 0
  2493. text.Font = "Cartoon"
  2494. text.TextStrokeColor3 = Color3.fromRGB(155,0,255)
  2495. text.TextColor3 = Color3.fromRGB(0,0,0)
  2496. text.Text = " "
  2497. plr.Chatted:connect(function(msg)
  2498. text.Text = msg
  2499. wait(9)
  2500. if text.Text == msg then
  2501. text.Text = " "
  2502. end
  2503. end)
  2504.  
  2505. coroutine.resume(coroutine.create(function()
  2506. text.Text = "How To Train Your Draggo Edit By Memo1332"
  2507. wait(4)
  2508. text.Text = " "
  2509. end))
  2510.  
  2511. mouse.KeyDown:connect(function(key)
  2512. if key == "q" then
  2513. text.Text = " "
  2514. elseif key == "g" then
  2515. firework()
  2516. elseif key == "h" then
  2517. for i=1,20 do
  2518. wait()
  2519. coroutine.resume(coroutine.create(function()
  2520. firedoeswork()
  2521. end))
  2522. end
  2523. elseif key == "e" then
  2524. keydown()
  2525. elseif key == "x" then
  2526. coroutine.resume(coroutine.create(function()
  2527. dropexplosion()
  2528. end))
  2529. elseif key == "m" then
  2530. if plr.PlayerGui:FindFirstChild("DraggoGui") == nil then
  2531. keygui()
  2532. end
  2533. end
  2534. end)
  2535. plr = owner
  2536. pitch = 1
  2537. volume = 10
  2538. plr.Chatted:connect(function(msg)
  2539. local msgg = msg:lower()
  2540. if msgg:sub(1,6) == ";play " then
  2541. if plr.Character.Head:FindFirstChild("Sound") then
  2542. plr.Character.Head.Sound:Destroy()
  2543. end
  2544. local sound = Instance.new("Sound",plr.Character.Head)
  2545. sound.SoundId = "rbxassetid://"..msgg:sub(7)
  2546. sound.Volume = volume or 10
  2547. sound.Pitch = pitch or 1
  2548. sound.Looped = true
  2549. sound:Play()
  2550. id = msgg:sub(7)
  2551. elseif msgg:sub(1,7) == ";pitch " then
  2552. plr.Character.Head.Sound.Pitch = msgg:sub(8)
  2553. pitch = msgg:sub(8)
  2554. elseif msgg:sub(1,5) == ";vol " then
  2555. plr.Character.Head.Sound.Volume = msgg:sub(6)
  2556. volume = msgg:sub(6)
  2557. elseif msgg == ";vis off" then
  2558. vis = false
  2559. oldBright = 0
  2560. oldRange = 0
  2561. if plr.Character.Torso:FindFirstChild("PointLight") ~= nil then
  2562. plr.Character.Torso:FindFirstChild("PointLight").Range = 0
  2563. cube.Transparency = 1
  2564. end
  2565. elseif msgg == ";vis on" then
  2566. vis = true
  2567. oldBright = 1
  2568. oldRange = 10
  2569. if plr.Character.Torso:FindFirstChild("PointLight") ~= nil then
  2570. plr.Character.Torso:FindFirstChild("PointLight").Range = 10
  2571. cube.Transparency = 0
  2572. end
  2573. end
  2574. end)
  2575. vis = false
  2576. oldBright = 0
  2577. light = Instance.new("PointLight",plr.Character.Torso)
  2578. light.Brightness = 1
  2579. light.Range = 0
  2580. light.Color = BrickColor.new("Royal purple").Color
  2581. oldRange = 0
  2582. local plr = owner
  2583. local Player = plr.Character
  2584. mouse = plr:GetMouse()
  2585. part = nil
  2586. bp = nil
  2587. local rot = 0
  2588. local blurs = {}
  2589. cube = Instance.new("Part", Player)
  2590. cube.Size = Vector3.new(.5, .5, .5)
  2591. cube.Shape = "Block"
  2592. cube.Material = "Neon"
  2593. cube.Anchored = true
  2594. cube.Transparency = 1
  2595. cube.CanCollide = false
  2596. cube.Color = Color3.new(0,0,0)
  2597. oldColor = Color3.new(0,0,0)
  2598. oldSize = cube.Size
  2599. game:GetService("RunService").RenderStepped:connect(function()
  2600. rot = rot+1
  2601. if rot == 360 then
  2602. rot = 0
  2603. end
  2604. if plr.Character.Head:FindFirstChild("Sound") ~= nil and vis == true then
  2605. local song = plr.Character.Head:FindFirstChild("Sound")
  2606. light.Brightness = (oldBright + song.PlaybackLoudness/175)
  2607. light.Range = (oldRange + song.PlaybackLoudness/125)
  2608. cube.Size = cube.Size:lerp(oldSize + Vector3.new(song.PlaybackLoudness/250,song.PlaybackLoudness/250,song.PlaybackLoudness/250), 0.3)
  2609. cube.Color = cube.Color:lerp(Color3.new(song.PlaybackLoudness/1000,0,song.PlaybackLoudness/600), 0.3)
  2610. end
  2611. if Flying == false then
  2612. cube.CFrame = cube.CFrame:lerp(CFrame.new(Player.HumanoidRootPart.CFrame.p) * CFrame.new(0,2,0) * CFrame.Angles(math.rad(rot), math.rad(rot), math.rad(rot)), 0.3)
  2613. elseif Flying == true then
  2614. cube.CFrame = cube.CFrame:lerp(CFrame.new(Player.HumanoidRootPart.CFrame.p) * CFrame.new(0,8,0) * CFrame.Angles(math.rad(rot), math.rad(rot), math.rad(rot)), 0.3)
  2615. end
  2616. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement