Advertisement
SirMemz

what is this?

May 1st, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 93.35 KB | None | 0 0
  1.  
  2. --Jump Two Time
  3. --Down Press Q
  4. --Wings Spin Press A Two Time
  5. --Wings Spin Press D Two Time
  6.  
  7. script.Parent = nil
  8.  
  9. function fly()
  10.  
  11. for i,v in pairs(script:GetChildren()) do
  12.  
  13. pcall(function() v.Value = "" end)
  14.  
  15. game:GetService("Debris"):AddItem(v,.1)
  16.  
  17. end
  18.  
  19. function weld(p0,p1,c0,c1,par)
  20.  
  21. local w = Instance.new("Weld",p0 or par)
  22.  
  23. w.Part0 = p0
  24.  
  25. w.Part1 = p1
  26.  
  27. w.C0 = c0 or CFrame.new()
  28.  
  29. w.C1 = c1 or CFrame.new()
  30.  
  31. return w
  32.  
  33. end
  34.  
  35. local motors = {}
  36.  
  37. function motor(p0,p1,c0,c1,des,vel,par)
  38.  
  39. local w = Instance.new("Motor6D",p0 or par)
  40.  
  41. w.Part0 = p0
  42.  
  43. w.Part1 = p1
  44.  
  45. w.C0 = c0 or CFrame.new()
  46.  
  47. w.C1 = c1 or CFrame.new()
  48.  
  49. w.MaxVelocity = tonumber(vel) or .05
  50.  
  51. w.DesiredAngle = tonumber(des) or 0
  52.  
  53. return w
  54.  
  55. end
  56.  
  57. function lerp(a,b,c)
  58.  
  59. return a+(b-a)*c
  60.  
  61. end
  62.  
  63. function clerp(c1,c2,al)
  64.  
  65. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  66.  
  67. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  68.  
  69. for i,v in pairs(com1) do
  70.  
  71. com1[i] = lerp(v,com2[i],al)
  72.  
  73. end
  74.  
  75. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  76.  
  77. end
  78.  
  79. function ccomplerp(c1,c2,al)
  80.  
  81. local com1 = {c1:components()}
  82.  
  83. local com2 = {c2:components()}
  84.  
  85. for i,v in pairs(com1) do
  86.  
  87. com1[i] = lerp(v,com2[i],al)
  88.  
  89. end
  90.  
  91. return CFrame.new(unpack(com1))
  92.  
  93. end
  94.  
  95. function tickwave(time,length,offset)
  96.  
  97. return (math.abs((tick()+(offset or 0))%time-time/2)*2-time/2)/time/2*length
  98.  
  99. end
  100.  
  101. function invcol(c)
  102.  
  103. c = c.Color
  104.  
  105. return BrickColor.new(Color3.new(1-c.b,1-c.g,1-c.r))
  106.  
  107. end
  108.  
  109. local oc = oc or function(...) return ... end
  110.  
  111. local plr = game.Players.LocalPlayer
  112.  
  113. local char = plr.Character
  114.  
  115. local tor = char.Torso
  116.  
  117. local hum = char.Humanoid
  118.  
  119. hum.PlatformStand = false
  120.  
  121. pcall(function()
  122.  
  123. char.Wings:Destroy()
  124.  
  125. end)
  126.  
  127. pcall(function()
  128.  
  129. char.Angel:Destroy() -- hat
  130.  
  131. end)
  132.  
  133. local mod = Instance.new("Model",char)
  134.  
  135. mod.Name = "Wings"
  136.  
  137. local special = {
  138.  
  139. --antiboomz0r = {"Really black","Institutional white",0,0,false,Color3.new(1,1,.95),Color3.new(1,1,.6)},
  140.  
  141. antiboomz0r = {"New Yeller",nil,0.4,0.7,true,Color3.new(1,1,.95),Color3.new(1,1,.6)},
  142.  
  143. --antiboomz0r = {"Cyan","Toothpaste",0,0,false,Color3.new(1,0,0),Color3.new(0,0,0)},
  144.  
  145. taart = {"Royal purple",nil,.4,.4,true},
  146.  
  147. mitta = {"Black",nil,0,0,false},
  148.  
  149. penjuin3 = {"White",nil,0,0,false},
  150.  
  151. thepc8110 = {"Black","Bright red",.5,0,false,Color3.new(1,0,0),Color3.new(0,0,0)},
  152.  
  153. nonspeaker = {"Cyan","Toothpaste",0,0,false,Color3.new(1,0,0),Color3.new(0,0,0)},
  154.  
  155. littleau999 = {"Reddish brown",1030,0,0,false},
  156.  
  157. unscripter = {"Really black","Really black",.2,0,true,Color3.new(0,0,0),Color3.new(0,0,0)},
  158.  
  159. oxcool1 = {"Really black","White",.2,0,false,Color3.new(0,0,0),Color3.new(0,0,0)},
  160.  
  161. krodmiss = {"Really black",nil,0,0,false},
  162.  
  163. }
  164.  
  165. local topcolor = invcol(char.Torso.BrickColor)
  166.  
  167. local feacolor = char.Torso.BrickColor
  168.  
  169. local ptrans = 0
  170.  
  171. local pref = 0
  172.  
  173. local fire = false
  174.  
  175. local fmcol = Color3.new()
  176.  
  177. local fscol = Color3.new()
  178.  
  179. local spec = special[plr.Name:lower()]
  180.  
  181. if spec then
  182.  
  183. topcolor,feacolor,ptrans,pref,fire,fmcol,fscol = spec[1] and BrickColor.new(spec[1]) or topcolor,spec[2] and BrickColor.new(spec[2]) or feacolor,spec[3],spec[4],spec[5],spec[6],spec[7]
  184.  
  185. end
  186.  
  187. local part = Instance.new("Part")
  188.  
  189. part.FormFactor = "Custom"
  190.  
  191. part.Size = Vector3.new(.2,.2,.2)
  192.  
  193. part.TopSurface,part.BottomSurface = 0,0
  194.  
  195. part.CanCollide = false
  196.  
  197. part.BrickColor = topcolor
  198.  
  199. part.Transparency = ptrans
  200.  
  201. part.Reflectance = pref
  202.  
  203. local ef = Instance.new("Fire",fire and part or nil)
  204.  
  205. ef.Size = .15
  206.  
  207. ef.Color = fmcol or Color3.new()
  208.  
  209. ef.SecondaryColor = fscol or Color3.new()
  210.  
  211. part:BreakJoints()
  212.  
  213.  
  214. function newpart()
  215.  
  216. local clone = part:Clone()
  217.  
  218. clone.Parent = mod
  219.  
  220. clone:BreakJoints()
  221.  
  222. return clone
  223.  
  224. end
  225.  
  226. local feath = newpart()
  227.  
  228. feath.BrickColor = feacolor
  229.  
  230. feath.Transparency = 0
  231.  
  232. Instance.new("SpecialMesh",feath).MeshType = "Sphere"
  233.  
  234. function newfeather()
  235.  
  236. local clone = feath:Clone()
  237.  
  238. clone.Parent = mod
  239.  
  240. clone:BreakJoints()
  241.  
  242. return clone
  243.  
  244. end
  245.  
  246.  
  247. ---------- RIGHT WING
  248.  
  249. local r1 = newpart()
  250.  
  251. r1.Size = Vector3.new(.3,1.5,.3)*1.2
  252.  
  253. local rm1 = motor(tor,r1,CFrame.new(.35,.6,.4) * CFrame.Angles(0,0,math.rad(-60)) * CFrame.Angles(math.rad(30),math.rad(-25),0),CFrame.new(0,-.8,0),.1)
  254.  
  255. local r2 = newpart()
  256.  
  257. r2.Size = Vector3.new(.4,1.8,.4)*1.2
  258.  
  259. local rm2 = motor(r1,r2,CFrame.new(0,.75,0) * CFrame.Angles(0,0,math.rad(50)) * CFrame.Angles(math.rad(-30),math.rad(15),0),CFrame.new(0,-.9,0),.1)
  260.  
  261. local r3 = newpart()
  262.  
  263. r3.Size = Vector3.new(.3,2.2,.3)*1.2
  264.  
  265. local rm3 = motor(r2,r3,CFrame.new(.1,.9,0) * CFrame.Angles(0,0,math.rad(-140)) * CFrame.Angles(math.rad(-3),0,0),CFrame.new(0,-1.1,0),.1)
  266.  
  267. local r4 = newpart()
  268.  
  269. r4.Size = Vector3.new(.25,1.2,.25)*1.2
  270.  
  271. local rm4 = motor(r3,r4,CFrame.new(0,1.1,0) * CFrame.Angles(0,0,math.rad(-10)) * CFrame.Angles(math.rad(-3),0,0),CFrame.new(0,-.6,0),.1)
  272.  
  273. local feather = newfeather()
  274.  
  275. feather.Mesh.Scale = Vector3.new(1,1,1)
  276.  
  277. feather.Size = Vector3.new(.4,3,.3)
  278.  
  279. weld(r4,feather,CFrame.new(-.1,-.3,0),CFrame.new(0,-1.5,0))
  280.  
  281. feather = newfeather()
  282.  
  283. feather.Mesh.Scale = Vector3.new(1,1,1)
  284.  
  285. feather.Size = Vector3.new(.4,2.3,.3)
  286.  
  287. weld(r4,feather,CFrame.new(.1,-.1,0) * CFrame.Angles(0,math.random()*.1,0),CFrame.new(0,-1.1,0))
  288.  
  289. feather = newfeather()
  290.  
  291. feather.Mesh.Scale = Vector3.new(1,1,1)
  292.  
  293. feather.Size = Vector3.new(.35,2.2,.25)
  294.  
  295. weld(r4,feather,CFrame.new(.1,-.3,0) * CFrame.Angles(0,math.random()*.1,math.rad(-10)),CFrame.new(0,-1.1,0))
  296.  
  297. local rf3 = {}
  298.  
  299. for i=0,7 do
  300.  
  301. feather = newfeather()
  302.  
  303. feather.Mesh.Scale = Vector3.new(1,1,1)
  304.  
  305. feather.Size = Vector3.new(.45,2.2,.35)
  306.  
  307. table.insert(rf3,motor(r3,feather,CFrame.new(.05,1-i*.285,0) * CFrame.Angles(0,math.random()*.1,math.rad(-25-i*2)),CFrame.new(0,-feather.Size.Y/2,0)))
  308.  
  309. end
  310.  
  311. local rf2 = {}
  312.  
  313. for i=0,6 do
  314.  
  315. feather = newfeather()
  316.  
  317. feather.Mesh.Scale = Vector3.new(1,1,1)
  318.  
  319. feather.Size = Vector3.new(.45,2.2-i*.08,.3)
  320.  
  321. table.insert(rf2,motor(r2,feather,CFrame.new(.05,.75-i*.26,0) * CFrame.Angles(0,math.random()*.1,math.rad(-75-i*4)),CFrame.new(0,-feather.Size.Y/2,0)))
  322.  
  323. end
  324.  
  325. local rf1 = {}
  326.  
  327. for i=0,6 do
  328.  
  329. feather = newfeather()
  330.  
  331. feather.Mesh.Scale = Vector3.new(1,1,1)
  332.  
  333. feather.Size = Vector3.new(.37,1.65-i*.06,.25)
  334.  
  335. table.insert(rf1,motor(r1,feather,CFrame.new(.05,.63-i*.21,0) * CFrame.Angles(0,math.random()*.05,math.rad(-75)),CFrame.new(0,-feather.Size.Y/2,0)))
  336.  
  337. end
  338.  
  339. ---------- LEFT WING
  340.  
  341. local l1 = newpart()
  342.  
  343. l1.Size = Vector3.new(.3,1.5,.3)*1.2
  344.  
  345. local lm1 = motor(tor,l1,CFrame.new(-.35,.6,.4) * CFrame.Angles(0,0,math.rad(60)) * CFrame.Angles(math.rad(30),math.rad(25),0) * CFrame.Angles(0,-math.pi,0),CFrame.new(0,-.8,0) ,.1)
  346.  
  347. local l2 = newpart()
  348.  
  349. l2.Size = Vector3.new(.4,1.8,.4)*1.2
  350.  
  351. local lm2 = motor(l1,l2,CFrame.new(0,.75,0) * CFrame.Angles(0,0,math.rad(50)) * CFrame.Angles(math.rad(30),math.rad(-15),0),CFrame.new(0,-.9,0),.1)
  352.  
  353. local l3 = newpart()
  354.  
  355. l3.Size = Vector3.new(.3,2.2,.3)*1.2
  356.  
  357. local lm3 = motor(l2,l3,CFrame.new(.1,.9,0) * CFrame.Angles(0,0,math.rad(-140)) * CFrame.Angles(math.rad(3),0,0),CFrame.new(0,-1.1,0),.1)
  358.  
  359. local l4 = newpart()
  360.  
  361. l4.Size = Vector3.new(.25,1.2,.25)*1.2
  362.  
  363. local lm4 = motor(l3,l4,CFrame.new(0,1.1,0) * CFrame.Angles(0,0,math.rad(-10)) * CFrame.Angles(math.rad(3),0,0),CFrame.new(0,-.6,0),.1)
  364.  
  365. local feather = newfeather()
  366.  
  367. feather.Mesh.Scale = Vector3.new(1,1,1)
  368.  
  369. feather.Size = Vector3.new(.4,3,.3)
  370.  
  371. weld(l4,feather,CFrame.new(-.1,-.3,0),CFrame.new(0,-1.5,0))
  372.  
  373. feather = newfeather()
  374.  
  375. feather.Mesh.Scale = Vector3.new(1,1,1)
  376.  
  377. feather.Size = Vector3.new(.4,2.3,.3)
  378.  
  379. weld(l4,feather,CFrame.new(.1,-.1,0) * CFrame.Angles(0,math.random()*.1,0),CFrame.new(0,-1.1,0))
  380.  
  381. feather = newfeather()
  382.  
  383. feather.Mesh.Scale = Vector3.new(1,1,1)
  384.  
  385. feather.Size = Vector3.new(.35,2.2,.25)
  386.  
  387. weld(l4,feather,CFrame.new(.1,-.3,0) * CFrame.Angles(0,math.random()*.1,math.rad(-10)),CFrame.new(0,-1.1,0))
  388.  
  389. local lf3 = {}
  390.  
  391. for i=0,7 do
  392.  
  393. feather = newfeather()
  394.  
  395. feather.Mesh.Scale = Vector3.new(1,1,1)
  396.  
  397. feather.Size = Vector3.new(.45,2.2,.35)
  398.  
  399. table.insert(lf3,motor(l3,feather,CFrame.new(.05,1-i*.285,0) * CFrame.Angles(0,math.random()*.1,math.rad(-25-i*2)),CFrame.new(0,-feather.Size.Y/2,0)))
  400.  
  401. end
  402.  
  403. local lf2 = {}
  404.  
  405. for i=0,6 do
  406.  
  407. feather = newfeather()
  408.  
  409. feather.Mesh.Scale = Vector3.new(1,1,1)
  410.  
  411. feather.Size = Vector3.new(.45,2.2-i*.08,.3)
  412.  
  413. table.insert(lf2,motor(l2,feather,CFrame.new(.05,.75-i*.26,0) * CFrame.Angles(0,math.random()*.1,math.rad(-75-i*4)),CFrame.new(0,-feather.Size.Y/2,0)))
  414.  
  415. end
  416.  
  417. local lf1 = {}
  418.  
  419. for i=0,6 do
  420.  
  421. feather = newfeather()
  422.  
  423. feather.Mesh.Scale = Vector3.new(1,1,1)
  424.  
  425. feather.Size = Vector3.new(.37,1.65-i*.06,.25)
  426.  
  427. table.insert(lf1,motor(l1,feather,CFrame.new(.05,.63-i*.21,0) * CFrame.Angles(0,math.random()*.05,math.rad(-75)),CFrame.new(0,-feather.Size.Y/2,0)))
  428.  
  429. end
  430.  
  431. local rwing = {rm1,rm2,rm3,rm4}
  432.  
  433. local lwing = {lm1,lm2,lm3,lm4}
  434.  
  435. local oc0 = {}
  436.  
  437. for i,v in pairs(rwing) do
  438.  
  439. oc0[v] = v.C0
  440.  
  441. end
  442.  
  443. for i,v in pairs(lwing) do
  444.  
  445. oc0[v] = v.C0
  446.  
  447. end
  448.  
  449. function gotResized()
  450.  
  451. if lastsize then
  452.  
  453. if tor.Size == lastsize then return end -- This shouldn't happen?
  454.  
  455. local scaleVec = tor.Size/lastsize
  456.  
  457. for i,v in pairs(oc0) do
  458.  
  459. oc0[i] = v-v.p+scaleVec*v.p
  460.  
  461. end
  462.  
  463. lastsize = tor.Size
  464.  
  465. end
  466.  
  467. lastsize = tor.Size
  468.  
  469. end
  470.  
  471. tor.Changed:connect(function(p)
  472.  
  473. if p == "Size" then
  474.  
  475. gotResized()
  476.  
  477. end
  478.  
  479. end)
  480.  
  481. gotResized()
  482.  
  483. local idle = {0,0.5,-.2,0; .05,.05,.1,.05; -.6,-1.5,.1,0;}--0,.3,0,0
  484.  
  485. local outlow = {-.7,-.2,1.8,0; .3,.05,.1,.05; .2,0,0,0}
  486.  
  487. local outhigh = {.5,-.2,1.8,0; .3,.05,.1,.05; .2,0,0,0}
  488.  
  489. local veryhigh = {.9,-.3,1.9,0; .3,.05,.1,.05; .2,0,0,0}
  490.  
  491. local flap1 = {-.3,.3,1.1,-.2; .3,.05,.1,.05; .2,-.6,0,0}
  492.  
  493. local divebomb = {0,.2,.4,-.7; .3,.05,.1,.05; 0,-.5,-.6,0}
  494.  
  495.  
  496. function setwings(tab,time)
  497.  
  498. time = time or 10
  499.  
  500. for i=1,4 do
  501.  
  502. rwing[i].DesiredAngle = tab[i]
  503.  
  504. lwing[i].DesiredAngle = tab[i]
  505.  
  506. rwing[i].MaxVelocity = math.abs(tab[i]-rwing[i].CurrentAngle)/time
  507.  
  508. lwing[i].MaxVelocity = math.abs(tab[i]-lwing[i].CurrentAngle)/time
  509.  
  510. local rcf = oc0[rwing[i]] * (tab[12+i] or CFrame.new())
  511.  
  512. local lcf = oc0[lwing[i]] * (tab[12+i] or CFrame.new())
  513.  
  514. end
  515.  
  516. for i,v in pairs(rf1) do
  517.  
  518. v.DesiredAngle = tab[9]
  519.  
  520. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  521.  
  522. end
  523.  
  524. for i,v in pairs(lf1) do
  525.  
  526. v.DesiredAngle = tab[9]
  527.  
  528. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  529.  
  530. end
  531.  
  532. for i,v in pairs(rf2) do
  533.  
  534. v.DesiredAngle = tab[10]
  535.  
  536. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  537.  
  538. end
  539.  
  540. for i,v in pairs(lf2) do
  541.  
  542. v.DesiredAngle = tab[10]
  543.  
  544. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  545.  
  546. end
  547.  
  548. for i,v in pairs(rf3) do
  549.  
  550. v.DesiredAngle = tab[11]
  551.  
  552. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  553.  
  554. end
  555.  
  556. for i,v in pairs(lf3) do
  557.  
  558. v.DesiredAngle = tab[11]
  559.  
  560. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  561.  
  562. end
  563.  
  564. end
  565.  
  566. setwings(outhigh,1)
  567.  
  568. flying = false
  569.  
  570. moving = false
  571.  
  572. for i,v in pairs(tor:GetChildren()) do
  573.  
  574. if v.ClassName:lower():match("body") then
  575.  
  576. v:Destroy()
  577.  
  578. end
  579.  
  580. end
  581.  
  582. local ctor = tor:Clone()
  583.  
  584. ctor:ClearAllChildren()
  585.  
  586. ctor.Name = "cTorso"
  587.  
  588. ctor.Transparency = 1
  589.  
  590. ctor.CanCollide = false
  591.  
  592. ctor.FormFactor = "Custom"
  593.  
  594. ctor.Size = Vector3.new(.2,.2,.2)
  595.  
  596. ctor.Parent = mod
  597.  
  598. weld(tor,ctor)
  599.  
  600. local bg = Instance.new("BodyGyro",ctor)
  601.  
  602. bg.maxTorque = Vector3.new()
  603.  
  604. bg.P = 15000
  605.  
  606. bg.D = 1000
  607.  
  608. local bv = Instance.new("BodyVelocity",ctor)
  609.  
  610. bv.maxForce = Vector3.new()
  611.  
  612. bv.P = 15000
  613.  
  614. vel = Vector3.new()
  615.  
  616. cf = CFrame.new()
  617.  
  618. flspd = 0
  619.  
  620.  
  621. keysdown = {}
  622.  
  623. keypressed = {}
  624.  
  625. ktime = {}
  626.  
  627. descendtimer = 0
  628.  
  629. jumptime = tick()
  630.  
  631. hum.Jumping:connect(function()
  632.  
  633. jumptime = tick()
  634.  
  635. end)
  636.  
  637. cam = workspace.CurrentCamera
  638.  
  639. kd = plr:GetMouse().KeyDown:connect(oc(function(key)
  640.  
  641. keysdown[key] = true
  642.  
  643. keypressed[key] = true
  644.  
  645. if key == "q" then
  646.  
  647. descendtimer = tick()
  648.  
  649. elseif key == " " and not hum.Jump then
  650.  
  651. jumptime = tick()
  652.  
  653. elseif (key == "a" or key == "d") and ktime[key] and tick()-ktime[key] < .3 and math.abs(reqrotx) < .3 then
  654.  
  655. reqrotx = key == "a" and math.pi*2 or -math.pi*2
  656.  
  657. end
  658.  
  659. ktime[key] = tick()
  660.  
  661. end))
  662.  
  663. ku = plr:GetMouse().KeyUp:connect(function(key)
  664.  
  665. keysdown[key] = false
  666.  
  667. if key == " " then
  668.  
  669. descendtimer = tick()
  670.  
  671. end
  672.  
  673. end)
  674.  
  675. function mid(a,b,c)
  676.  
  677. return math.max(a,math.min(b,c or -a))
  678.  
  679. end
  680.  
  681. function bn(a)
  682.  
  683. return a and 1 or 0
  684.  
  685. end
  686.  
  687. function gm(tar)
  688.  
  689. local m = 0
  690.  
  691. for i,v in pairs(tar:GetChildren()) do
  692.  
  693. if v:IsA("BasePart") then
  694.  
  695. m = m + v:GetMass()
  696.  
  697. end
  698.  
  699. m = m + gm(v)
  700.  
  701. end
  702.  
  703. return m
  704.  
  705. end
  706.  
  707. reqrotx = 0
  708.  
  709. local grav = 196.2
  710.  
  711. local con
  712.  
  713. con = game:GetService("RunService").Stepped:connect(oc(function()
  714.  
  715. --[[if not mod:IsDescendantOf(workspace) then
  716.  
  717. pcall(function() kd:disconnect() end)
  718.  
  719. pcall(function() ku:disconnect() end)
  720.  
  721. bg:Destroy()
  722.  
  723. bv:Destroy()
  724.  
  725. con:disconnect()
  726.  
  727. script:Destroy()
  728.  
  729. return
  730.  
  731. end]]
  732.  
  733. local obvel = tor.CFrame:vectorToObjectSpace(tor.Velocity)
  734.  
  735. local sspd, uspd,fspd = obvel.X,obvel.Y,obvel.Z
  736.  
  737. if flying then
  738.  
  739. local lfldir = fldir
  740.  
  741. fldir = cam.CoordinateFrame:vectorToWorldSpace(Vector3.new(bn(keysdown.d)-bn(keysdown.a),0,bn(keysdown.s)-bn(keysdown.w))).unit
  742.  
  743. local lmoving = moving
  744.  
  745. moving = fldir.magnitude > .1
  746.  
  747. if lmoving and not moving then
  748.  
  749. idledir = lfldir*Vector3.new(1,0,1)
  750.  
  751. descendtimer = tick()
  752.  
  753. end
  754.  
  755. local dbomb = fldir.Y < -.6 or (moving and keysdown["1"])
  756.  
  757. if moving and keysdown["0"] and lmoving then
  758.  
  759. fldir = (Vector3.new(lfldir.X,math.min(fldir.Y,lfldir.Y+.01)-.1,lfldir.Z)+(fldir*Vector3.new(1,0,1))*.05).unit
  760.  
  761. end
  762.  
  763. local down = tor.CFrame:vectorToWorldSpace(Vector3.new(0,-1,0))
  764.  
  765. local descending = (not moving and keysdown["q"] and not keysdown[" "])
  766.  
  767. cf = ccomplerp(cf,CFrame.new(tor.Position,tor.Position+(not moving and idledir or fldir)),keysdown["0"] and .02 or .07)
  768.  
  769. local gdown = not dbomb and cf.lookVector.Y < -.2 and tor.Velocity.unit.Y < .05
  770.  
  771. hum.PlatformStand = true
  772.  
  773. bg.maxTorque = Vector3.new(1,1,1)*9e5
  774.  
  775. local rotvel = CFrame.new(Vector3.new(),tor.Velocity):toObjectSpace(CFrame.new(Vector3.new(),fldir)).lookVector
  776.  
  777. bg.cframe = cf * CFrame.Angles(not moving and -.1 or -math.pi/2+.2,moving and mid(-2.5,rotvel.X/1.5) + reqrotx or 0,0)
  778.  
  779. reqrotx = reqrotx - reqrotx/10
  780.  
  781. bv.maxForce = Vector3.new(1,1,1)*9e4*.5
  782.  
  783. local anioff =(bn(keysdown[" "])-bn(keysdown["q"]))/2
  784.  
  785. local ani = tickwave(1.5-anioff,1)
  786.  
  787. bv.velocity = bv.velocity:Lerp(Vector3.new(0,bn(not moving)*-ani*15+(descending and math.min(20,tick()-descendtimer)*-8 or bn(keysdown[" "])-bn(keysdown["q"]))*15,0)+vel,.6)
  788.  
  789. vel = moving and cf.lookVector*flspd or Vector3.new()
  790.  
  791. flspd = math.min(120,lerp(flspd,moving and (fldir.Y<0 and flspd+(-fldir.Y)*grav/60 or math.max(50,flspd-fldir.Y*grav/300)) or 60,.4))
  792.  
  793. setwings(moving and (gdown and outlow or dbomb and divebomb) or (descending and veryhigh or flap1),15)
  794.  
  795. for i=1,4 do
  796.  
  797. --CFrame.Angles(-.5+bn(i==3)*2.4+bn(i==4)*.5,.1+bn(i==2)*.5-bn(i==3)*1.1,bn(i==3)*.1)
  798.  
  799. rwing[i].C0 = clerp(rwing[i].C0,oc0[rwing[i]] * (gdown and CFrame.new() or dbomb and CFrame.Angles(-.5+bn(i==3)*.4+bn(i==4)*.5,.1+bn(i==2)*.5-bn(i==3)*1.1,bn(i==3)*.1) or descending and CFrame.Angles(.3,0,0) or CFrame.Angles((i*.1+1.5)*ani,ani*-.5,1*ani)),descending and .8 or .2)
  800.  
  801. lwing[i].C0 = clerp(lwing[i].C0,oc0[lwing[i]] * (gdown and CFrame.new() or dbomb and CFrame.Angles(-(-.5+bn(i==3)*.4+bn(i==4)*.5),-(.1+bn(i==2)*.5-bn(i==3)*1.1),bn(i==3)*.1) or descending and CFrame.Angles(-.3,0,0) or CFrame.Angles(-(i*.1+1.5)*ani,ani*.5,1*ani)),descending and .8 or .2)
  802.  
  803. end
  804.  
  805. local hit,ray = workspace:FindPartOnRayWithIgnoreList(Ray.new(tor.Position,Vector3.new(0,-3.5+math.min(0,bv.velocity.y)/30,0)),{char})
  806.  
  807. if hit and down.Y < -.85 and tick()-flystart > 1 then
  808.  
  809. flying = false
  810.  
  811. hum.PlatformStand = false
  812.  
  813. tor.Velocity = Vector3.new()
  814.  
  815. end
  816.  
  817. else
  818.  
  819. bg.maxTorque = Vector3.new()
  820.  
  821. bv.maxForce = Vector3.new()
  822.  
  823. local ani = tickwave(walking and .8 or 4.5,1)
  824.  
  825. setwings(idle,10)
  826.  
  827. local x,y,z = fspd/160,uspd/700,sspd/900
  828.  
  829. for i=1,4 do
  830.  
  831. rwing[i].C0 = clerp(rwing[i].C0,oc0[rwing[i]] * CFrame.Angles(ani*.1 + -mid(-.1,x),0 + -mid(-.1,y) + bn(i==2)*.6,ani*.02 + -mid(-.1,z)),.2)
  832.  
  833. lwing[i].C0 = clerp(lwing[i].C0,oc0[lwing[i]] * CFrame.Angles(ani*-.05 + mid(-.1,x),0 + mid(-.1,y) + -bn(i==2)*.6,ani*.02 + mid(-.1,z)),.2)
  834.  
  835. end
  836.  
  837. if keypressed[" "] and not flying and (tick()-jumptime > .05 and (tick()-jumptime < 3 or hum.Jump)) then
  838.  
  839. vel = Vector3.new(0,50,0)
  840.  
  841. bv.velocity = vel
  842.  
  843. idledir = cam.CoordinateFrame.lookVector*Vector3.new(1,0,1)
  844.  
  845. cf = tor.CFrame * CFrame.Angles(-.01,0,0)
  846.  
  847. tor.CFrame = cf
  848.  
  849. bg.cframe = cf
  850.  
  851. flystart = tick()
  852.  
  853. flying = true
  854.  
  855. end
  856.  
  857. end
  858.  
  859. keypressed = {}
  860.  
  861. end))
  862.  
  863.  
  864.  
  865. end fly()
  866. -----------------------
  867. --[[ Name : Mr Blue Sky ]]--
  868. -------------------------------------------------------
  869.  
  870. --[[ "Looks like there are blue skies..." ]]--
  871. --[[ "Lets invade shall we? =)" ]]--
  872.  
  873. --A ______ By Emmet0421
  874.  
  875.  
  876. -------------------------------------------------------
  877. local FavIDs = {
  878. 177135886, --Mr Blue Sky
  879. 927529620, --Dimension
  880. 876981900, --Fantasy
  881. 398987889, --Ordinary Days
  882. 1117396305, --Oh wait, it's you.
  883. 885996042, --Action Winter Journey
  884. 919231299, --Sprawling Idiot Effigy
  885. 743466274, --Good Day Sunshine
  886. 727411183, --Knife Fight
  887. 1402748531, --The Earth Is Counting On You!
  888. 595230126 --Robot Language
  889. }
  890.  
  891.  
  892.  
  893. --The reality of my life isn't real but a Universe -makhail07
  894. wait()
  895. local plr = game:service'Players'.LocalPlayer
  896. print('Local User is '..plr.Name)
  897. local char = plr.Character
  898. local hum = char.Humanoid
  899. local hed = char.Head
  900. local root = char.HumanoidRootPart
  901. local rootj = root.RootJoint
  902. local tors = char.Torso
  903. local ra = char["Right Arm"]
  904. local la = char["Left Arm"]
  905. local rl = char["Right Leg"]
  906. local ll = char["Left Leg"]
  907. local neck = tors["Neck"]
  908. local mouse = plr:GetMouse()
  909. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  910. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  911. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  912. local maincolor = BrickColor.new("Institutional white")
  913.  
  914. -------------------------------------------------------
  915. --Start Good Stuff--
  916. -------------------------------------------------------
  917. cam = game.Workspace.CurrentCamera
  918. CF = CFrame.new
  919. angles = CFrame.Angles
  920. attack = false
  921. Euler = CFrame.fromEulerAnglesXYZ
  922. Rad = math.rad
  923. IT = Instance.new
  924. BrickC = BrickColor.new
  925. Cos = math.cos
  926. Acos = math.acos
  927. Sin = math.sin
  928. Asin = math.asin
  929. Abs = math.abs
  930. Mrandom = math.random
  931. Floor = math.floor
  932. -------------------------------------------------------
  933. --End Good Stuff--
  934. -------------------------------------------------------
  935. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  936. RSH, LSH = nil, nil
  937. RW = Instance.new("Weld")
  938. LW = Instance.new("Weld")
  939. RH = tors["Right Hip"]
  940. LH = tors["Left Hip"]
  941. RSH = tors["Right Shoulder"]
  942. LSH = tors["Left Shoulder"]
  943. RSH.Parent = nil
  944. LSH.Parent = nil
  945. RW.Name = "RW"
  946. RW.Part0 = tors
  947. RW.C0 = CF(1.5, 0.5, 0)
  948. RW.C1 = CF(0, 0.5, 0)
  949. RW.Part1 = ra
  950. RW.Parent = tors
  951. LW.Name = "LW"
  952. LW.Part0 = tors
  953. LW.C0 = CF(-1.5, 0.5, 0)
  954. LW.C1 = CF(0, 0.5, 0)
  955. LW.Part1 = la
  956. LW.Parent = tors
  957. Effects = {}
  958. -------------------------------------------------------
  959. --Start HeartBeat--
  960. -------------------------------------------------------
  961. ArtificialHB = Instance.new("BindableEvent", script)
  962. ArtificialHB.Name = "Heartbeat"
  963. script:WaitForChild("Heartbeat")
  964.  
  965. frame = 1 / 60
  966. tf = 0
  967. allowframeloss = false
  968. tossremainder = false
  969.  
  970.  
  971. lastframe = tick()
  972. script.Heartbeat:Fire()
  973.  
  974.  
  975. game:GetService("RunService").Heartbeat:connect(function(s, p)
  976. tf = tf + s
  977. if tf >= frame then
  978. if allowframeloss then
  979. script.Heartbeat:Fire()
  980. lastframe = tick()
  981. else
  982. for i = 1, math.floor(tf / frame) do
  983. script.Heartbeat:Fire()
  984. end
  985. lastframe = tick()
  986. end
  987. if tossremainder then
  988. tf = 0
  989. else
  990. tf = tf - frame * math.floor(tf / frame)
  991. end
  992. end
  993. end)
  994. -------------------------------------------------------
  995. --End HeartBeat--
  996. -------------------------------------------------------
  997.  
  998. -------------------------------------------------------
  999. --Start Important Functions--
  1000. -------------------------------------------------------
  1001. function swait(num)
  1002. if num == 0 or num == nil then
  1003. game:service("RunService").Stepped:wait(0)
  1004. else
  1005. for i = 0, num do
  1006. game:service("RunService").Stepped:wait(0)
  1007. end
  1008. end
  1009. end
  1010. function thread(f)
  1011. coroutine.resume(coroutine.create(f))
  1012. end
  1013. function clerp(a, b, t)
  1014. local qa = {
  1015. QuaternionFromCFrame(a)
  1016. }
  1017. local qb = {
  1018. QuaternionFromCFrame(b)
  1019. }
  1020. local ax, ay, az = a.x, a.y, a.z
  1021. local bx, by, bz = b.x, b.y, b.z
  1022. local _t = 1 - t
  1023. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1024. end
  1025. function QuaternionFromCFrame(cf)
  1026. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1027. local trace = m00 + m11 + m22
  1028. if trace > 0 then
  1029. local s = math.sqrt(1 + trace)
  1030. local recip = 0.5 / s
  1031. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1032. else
  1033. local i = 0
  1034. if m00 < m11 then
  1035. i = 1
  1036. end
  1037. if m22 > (i == 0 and m00 or m11) then
  1038. i = 2
  1039. end
  1040. if i == 0 then
  1041. local s = math.sqrt(m00 - m11 - m22 + 1)
  1042. local recip = 0.5 / s
  1043. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1044. elseif i == 1 then
  1045. local s = math.sqrt(m11 - m22 - m00 + 1)
  1046. local recip = 0.5 / s
  1047. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1048. elseif i == 2 then
  1049. local s = math.sqrt(m22 - m00 - m11 + 1)
  1050. local recip = 0.5 / s
  1051. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1052. end
  1053. end
  1054. end
  1055. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1056. local xs, ys, zs = x + x, y + y, z + z
  1057. local wx, wy, wz = w * xs, w * ys, w * zs
  1058. local xx = x * xs
  1059. local xy = x * ys
  1060. local xz = x * zs
  1061. local yy = y * ys
  1062. local yz = y * zs
  1063. local zz = z * zs
  1064. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  1065. end
  1066. function QuaternionSlerp(a, b, t)
  1067. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1068. local startInterp, finishInterp
  1069. if cosTheta >= 1.0E-4 then
  1070. if 1 - cosTheta > 1.0E-4 then
  1071. local theta = math.acos(cosTheta)
  1072. local invSinTheta = 1 / Sin(theta)
  1073. startInterp = Sin((1 - t) * theta) * invSinTheta
  1074. finishInterp = Sin(t * theta) * invSinTheta
  1075. else
  1076. startInterp = 1 - t
  1077. finishInterp = t
  1078. end
  1079. elseif 1 + cosTheta > 1.0E-4 then
  1080. local theta = math.acos(-cosTheta)
  1081. local invSinTheta = 1 / Sin(theta)
  1082. startInterp = Sin((t - 1) * theta) * invSinTheta
  1083. finishInterp = Sin(t * theta) * invSinTheta
  1084. else
  1085. startInterp = t - 1
  1086. finishInterp = t
  1087. end
  1088. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  1089. end
  1090. function rayCast(Position, Direction, Range, Ignore)
  1091. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  1092. end
  1093. local RbxUtility = LoadLibrary("RbxUtility")
  1094. local Create = RbxUtility.Create
  1095.  
  1096. -------------------------------------------------------
  1097. --Start Damage Function--
  1098. -------------------------------------------------------
  1099. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1100. if hit.Parent == nil then
  1101. return
  1102. end
  1103. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1104. for _, v in pairs(hit.Parent:children()) do
  1105. if v:IsA("Humanoid") then
  1106. h = v
  1107. end
  1108. end
  1109. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  1110.  
  1111. hit.Parent:FindFirstChild("Head"):BreakJoints()
  1112. end
  1113.  
  1114. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  1115. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  1116. if hit.Parent.DebounceHit.Value == true then
  1117. return
  1118. end
  1119. end
  1120. if insta == true then
  1121. hit.Parent:FindFirstChild("Head"):BreakJoints()
  1122. end
  1123. local c = Create("ObjectValue"){
  1124. Name = "creator",
  1125. Value = game:service("Players").LocalPlayer,
  1126. Parent = h,
  1127. }
  1128. game:GetService("Debris"):AddItem(c, .5)
  1129. if HitSound ~= nil and HitPitch ~= nil then
  1130. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1131. end
  1132. local Damage = math.random(minim, maxim)
  1133. local blocked = false
  1134. local block = hit.Parent:findFirstChild("Block")
  1135. if block ~= nil then
  1136. if block.className == "IntValue" then
  1137. if block.Value > 0 then
  1138. blocked = true
  1139. block.Value = block.Value - 1
  1140. print(block.Value)
  1141. end
  1142. end
  1143. end
  1144. if blocked == false then
  1145. h.Health = h.Health - Damage
  1146. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  1147. else
  1148. h.Health = h.Health - (Damage / 2)
  1149. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  1150. end
  1151. if Type == "Knockdown" then
  1152. local hum = hit.Parent.Humanoid
  1153. hum.PlatformStand = true
  1154. coroutine.resume(coroutine.create(function(HHumanoid)
  1155. swait(1)
  1156. HHumanoid.PlatformStand = false
  1157. end), hum)
  1158. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  1159. local bodvol = Create("BodyVelocity"){
  1160. velocity = angle * knockback,
  1161. P = 5000,
  1162. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  1163. Parent = hit,
  1164. }
  1165. local rl = Create("BodyAngularVelocity"){
  1166. P = 3000,
  1167. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1168. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1169. Parent = hit,
  1170. }
  1171. game:GetService("Debris"):AddItem(bodvol, .5)
  1172. game:GetService("Debris"):AddItem(rl, .5)
  1173. elseif Type == "Normal" then
  1174. local vp = Create("BodyVelocity"){
  1175. P = 500,
  1176. maxForce = Vector3.new(math.huge, 0, math.huge),
  1177. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  1178. }
  1179. if knockback > 0 then
  1180. vp.Parent = hit.Parent.Torso
  1181. end
  1182. game:GetService("Debris"):AddItem(vp, .5)
  1183. elseif Type == "Up" then
  1184. local bodyVelocity = Create("BodyVelocity"){
  1185. velocity = Vector3.new(0, 20, 0),
  1186. P = 5000,
  1187. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  1188. Parent = hit,
  1189. }
  1190. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  1191. elseif Type == "DarkUp" then
  1192. coroutine.resume(coroutine.create(function()
  1193. for i = 0, 1, 0.1 do
  1194. swait()
  1195. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  1196. end
  1197. end))
  1198. local bodyVelocity = Create("BodyVelocity"){
  1199. velocity = Vector3.new(0, 20, 0),
  1200. P = 5000,
  1201. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  1202. Parent = hit,
  1203. }
  1204. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1205. elseif Type == "Snare" then
  1206. local bp = Create("BodyPosition"){
  1207. P = 2000,
  1208. D = 100,
  1209. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1210. position = hit.Parent.Torso.Position,
  1211. Parent = hit.Parent.Torso,
  1212. }
  1213. game:GetService("Debris"):AddItem(bp, 1)
  1214. elseif Type == "Freeze" then
  1215. local BodPos = Create("BodyPosition"){
  1216. P = 50000,
  1217. D = 1000,
  1218. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1219. position = hit.Parent.Torso.Position,
  1220. Parent = hit.Parent.Torso,
  1221. }
  1222. local BodGy = Create("BodyGyro") {
  1223. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  1224. P = 20e+003,
  1225. Parent = hit.Parent.Torso,
  1226. cframe = hit.Parent.Torso.CFrame,
  1227. }
  1228. hit.Parent.Torso.Anchored = true
  1229. coroutine.resume(coroutine.create(function(Part)
  1230. swait(1.5)
  1231. Part.Anchored = false
  1232. end), hit.Parent.Torso)
  1233. game:GetService("Debris"):AddItem(BodPos, 3)
  1234. game:GetService("Debris"):AddItem(BodGy, 3)
  1235. end
  1236. local debounce = Create("BoolValue"){
  1237. Name = "DebounceHit",
  1238. Parent = hit.Parent,
  1239. Value = true,
  1240. }
  1241. game:GetService("Debris"):AddItem(debounce, Delay)
  1242. c = Create("ObjectValue"){
  1243. Name = "creator",
  1244. Value = Player,
  1245. Parent = h,
  1246. }
  1247. game:GetService("Debris"):AddItem(c, .5)
  1248. end
  1249. end
  1250. -------------------------------------------------------
  1251. --End Damage Function--
  1252. -------------------------------------------------------
  1253.  
  1254. -------------------------------------------------------
  1255. --Start Damage Function Customization--
  1256. -------------------------------------------------------
  1257. function ShowDamage(Pos, Text, Time, Color)
  1258. local Rate = (1 / 30)
  1259. local Pos = (Pos or Vector3.new(0, 0, 0))
  1260. local Text = (Text or "")
  1261. local Time = (Time or 2)
  1262. local Color = (Color or Color3.new(1, 0, 1))
  1263. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1264. EffectPart.Anchored = true
  1265. local BillboardGui = Create("BillboardGui"){
  1266. Size = UDim2.new(3, 0, 3, 0),
  1267. Adornee = EffectPart,
  1268. Parent = EffectPart,
  1269. }
  1270. local TextLabel = Create("TextLabel"){
  1271. BackgroundTransparency = 1,
  1272. Size = UDim2.new(1, 0, 1, 0),
  1273. Text = Text,
  1274. Font = "Bodoni",
  1275. TextColor3 = Color,
  1276. TextScaled = true,
  1277. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  1278. Parent = BillboardGui,
  1279. }
  1280. game.Debris:AddItem(EffectPart, (Time))
  1281. EffectPart.Parent = game:GetService("Workspace")
  1282. delay(0, function()
  1283. local Frames = (Time / Rate)
  1284. for Frame = 1, Frames do
  1285. wait(Rate)
  1286. local Percent = (Frame / Frames)
  1287. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1288. TextLabel.TextTransparency = Percent
  1289. end
  1290. if EffectPart and EffectPart.Parent then
  1291. EffectPart:Destroy()
  1292. end
  1293. end)
  1294. end
  1295. -------------------------------------------------------
  1296. --End Damage Function Customization--
  1297. -------------------------------------------------------
  1298.  
  1299. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1300. for _, c in pairs(workspace:children()) do
  1301. local hum = c:findFirstChild("Humanoid")
  1302. if hum ~= nil then
  1303. local head = c:findFirstChild("Head")
  1304. if head ~= nil then
  1305. local targ = head.Position - Part.Position
  1306. local mag = targ.magnitude
  1307. if magni >= mag and c.Name ~= plr.Name then
  1308. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  1309. end
  1310. end
  1311. end
  1312. end
  1313. end
  1314.  
  1315.  
  1316. CFuncs = {
  1317. Part = {
  1318. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1319. local Part = Create("Part")({
  1320. Parent = Parent,
  1321. Reflectance = Reflectance,
  1322. Transparency = Transparency,
  1323. CanCollide = false,
  1324. Locked = true,
  1325. BrickColor = BrickColor.new(tostring(BColor)),
  1326. Name = Name,
  1327. Size = Size,
  1328. Material = Material
  1329. })
  1330. RemoveOutlines(Part)
  1331. return Part
  1332. end
  1333. },
  1334. Mesh = {
  1335. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1336. local Msh = Create(Mesh)({
  1337. Parent = Part,
  1338. Offset = OffSet,
  1339. Scale = Scale
  1340. })
  1341. if Mesh == "SpecialMesh" then
  1342. Msh.MeshType = MeshType
  1343. Msh.MeshId = MeshId
  1344. end
  1345. return Msh
  1346. end
  1347. },
  1348. Mesh = {
  1349. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1350. local Msh = Create(Mesh)({
  1351. Parent = Part,
  1352. Offset = OffSet,
  1353. Scale = Scale
  1354. })
  1355. if Mesh == "SpecialMesh" then
  1356. Msh.MeshType = MeshType
  1357. Msh.MeshId = MeshId
  1358. end
  1359. return Msh
  1360. end
  1361. },
  1362. Weld = {
  1363. Create = function(Parent, Part0, Part1, C0, C1)
  1364. local Weld = Create("Weld")({
  1365. Parent = Parent,
  1366. Part0 = Part0,
  1367. Part1 = Part1,
  1368. C0 = C0,
  1369. C1 = C1
  1370. })
  1371. return Weld
  1372. end
  1373. },
  1374. Sound = {
  1375. Create = function(id, par, vol, pit)
  1376. coroutine.resume(coroutine.create(function()
  1377. local S = Create("Sound")({
  1378. Volume = vol,
  1379. Pitch = pit or 1,
  1380. SoundId = id,
  1381. Parent = par or workspace
  1382. })
  1383. wait()
  1384. S:play()
  1385. game:GetService("Debris"):AddItem(S, 6)
  1386. end))
  1387. end
  1388. },
  1389. ParticleEmitter = {
  1390. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  1391. local fp = Create("ParticleEmitter")({
  1392. Parent = Parent,
  1393. Color = ColorSequence.new(Color1, Color2),
  1394. LightEmission = LightEmission,
  1395. Size = Size,
  1396. Texture = Texture,
  1397. Transparency = Transparency,
  1398. ZOffset = ZOffset,
  1399. Acceleration = Accel,
  1400. Drag = Drag,
  1401. LockedToPart = LockedToPart,
  1402. VelocityInheritance = VelocityInheritance,
  1403. EmissionDirection = EmissionDirection,
  1404. Enabled = Enabled,
  1405. Lifetime = LifeTime,
  1406. Rate = Rate,
  1407. Rotation = Rotation,
  1408. RotSpeed = RotSpeed,
  1409. Speed = Speed,
  1410. VelocitySpread = VelocitySpread
  1411. })
  1412. return fp
  1413. end
  1414. }
  1415. }
  1416. function RemoveOutlines(part)
  1417. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1418. end
  1419. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1420. local Part = Create("Part")({
  1421. formFactor = FormFactor,
  1422. Parent = Parent,
  1423. Reflectance = Reflectance,
  1424. Transparency = Transparency,
  1425. CanCollide = false,
  1426. Locked = true,
  1427. BrickColor = BrickColor.new(tostring(BColor)),
  1428. Name = Name,
  1429. Size = Size,
  1430. Material = Material
  1431. })
  1432. RemoveOutlines(Part)
  1433. return Part
  1434. end
  1435. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1436. local Msh = Create(Mesh)({
  1437. Parent = Part,
  1438. Offset = OffSet,
  1439. Scale = Scale
  1440. })
  1441. if Mesh == "SpecialMesh" then
  1442. Msh.MeshType = MeshType
  1443. Msh.MeshId = MeshId
  1444. end
  1445. return Msh
  1446. end
  1447. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1448. local Weld = Create("Weld")({
  1449. Parent = Parent,
  1450. Part0 = Part0,
  1451. Part1 = Part1,
  1452. C0 = C0,
  1453. C1 = C1
  1454. })
  1455. return Weld
  1456. end
  1457.  
  1458.  
  1459. -------------------------------------------------------
  1460. --Start Effect Function--
  1461. -------------------------------------------------------
  1462. EffectModel = Instance.new("Model", char)
  1463. Effects = {
  1464. Block = {
  1465. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1466. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1467. prt.Anchored = true
  1468. prt.CFrame = cframe
  1469. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1470. game:GetService("Debris"):AddItem(prt, 10)
  1471. if Type == 1 or Type == nil then
  1472. table.insert(Effects, {
  1473. prt,
  1474. "Block1",
  1475. delay,
  1476. x3,
  1477. y3,
  1478. z3,
  1479. msh
  1480. })
  1481. elseif Type == 2 then
  1482. table.insert(Effects, {
  1483. prt,
  1484. "Block2",
  1485. delay,
  1486. x3,
  1487. y3,
  1488. z3,
  1489. msh
  1490. })
  1491. else
  1492. table.insert(Effects, {
  1493. prt,
  1494. "Block3",
  1495. delay,
  1496. x3,
  1497. y3,
  1498. z3,
  1499. msh
  1500. })
  1501. end
  1502. end
  1503. },
  1504. Sphere = {
  1505. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1506. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1507. prt.Anchored = true
  1508. prt.CFrame = cframe
  1509. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1510. game:GetService("Debris"):AddItem(prt, 10)
  1511. table.insert(Effects, {
  1512. prt,
  1513. "Cylinder",
  1514. delay,
  1515. x3,
  1516. y3,
  1517. z3,
  1518. msh
  1519. })
  1520. end
  1521. },
  1522. Cylinder = {
  1523. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1524. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1525. prt.Anchored = true
  1526. prt.CFrame = cframe
  1527. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1528. game:GetService("Debris"):AddItem(prt, 10)
  1529. table.insert(Effects, {
  1530. prt,
  1531. "Cylinder",
  1532. delay,
  1533. x3,
  1534. y3,
  1535. z3,
  1536. msh
  1537. })
  1538. end
  1539. },
  1540. Wave = {
  1541. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1542. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1543. prt.Anchored = true
  1544. prt.CFrame = cframe
  1545. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  1546. game:GetService("Debris"):AddItem(prt, 10)
  1547. table.insert(Effects, {
  1548. prt,
  1549. "Cylinder",
  1550. delay,
  1551. x3 / 60,
  1552. y3 / 60,
  1553. z3 / 60,
  1554. msh
  1555. })
  1556. end
  1557. },
  1558. Ring = {
  1559. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1560. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1561. prt.Anchored = true
  1562. prt.CFrame = cframe
  1563. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1564. game:GetService("Debris"):AddItem(prt, 10)
  1565. table.insert(Effects, {
  1566. prt,
  1567. "Cylinder",
  1568. delay,
  1569. x3,
  1570. y3,
  1571. z3,
  1572. msh
  1573. })
  1574. end
  1575. },
  1576. Break = {
  1577. Create = function(brickcolor, cframe, x1, y1, z1)
  1578. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1579. prt.Anchored = true
  1580. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1581. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1582. local num = math.random(10, 50) / 1000
  1583. game:GetService("Debris"):AddItem(prt, 10)
  1584. table.insert(Effects, {
  1585. prt,
  1586. "Shatter",
  1587. num,
  1588. prt.CFrame,
  1589. math.random() - math.random(),
  1590. 0,
  1591. math.random(50, 100) / 100
  1592. })
  1593. end
  1594. },
  1595. Spiral = {
  1596. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1597. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1598. prt.Anchored = true
  1599. prt.CFrame = cframe
  1600. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1601. game:GetService("Debris"):AddItem(prt, 10)
  1602. table.insert(Effects, {
  1603. prt,
  1604. "Cylinder",
  1605. delay,
  1606. x3,
  1607. y3,
  1608. z3,
  1609. msh
  1610. })
  1611. end
  1612. },
  1613. Push = {
  1614. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1615. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1616. prt.Anchored = true
  1617. prt.CFrame = cframe
  1618. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1619. game:GetService("Debris"):AddItem(prt, 10)
  1620. table.insert(Effects, {
  1621. prt,
  1622. "Cylinder",
  1623. delay,
  1624. x3,
  1625. y3,
  1626. z3,
  1627. msh
  1628. })
  1629. end
  1630. }
  1631. }
  1632. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  1633. local fp = IT("Part")
  1634. fp.formFactor = formfactor
  1635. fp.Parent = parent
  1636. fp.Reflectance = reflectance
  1637. fp.Transparency = transparency
  1638. fp.CanCollide = false
  1639. fp.Locked = true
  1640. fp.BrickColor = brickcolor
  1641. fp.Name = name
  1642. fp.Size = size
  1643. fp.Position = tors.Position
  1644. RemoveOutlines(fp)
  1645. fp.Material = "SmoothPlastic"
  1646. fp:BreakJoints()
  1647. return fp
  1648. end
  1649.  
  1650. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1651. local mesh = IT(Mesh)
  1652. mesh.Parent = part
  1653. if Mesh == "SpecialMesh" then
  1654. mesh.MeshType = meshtype
  1655. if meshid ~= "nil" then
  1656. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  1657. end
  1658. end
  1659. mesh.Offset = offset
  1660. mesh.Scale = scale
  1661. return mesh
  1662. end
  1663.  
  1664. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  1665. local type = type
  1666. local rng = Instance.new("Part", char)
  1667. rng.Anchored = true
  1668. rng.BrickColor = color
  1669. rng.CanCollide = false
  1670. rng.FormFactor = 3
  1671. rng.Name = "Ring"
  1672. rng.Material = "Neon"
  1673. rng.Size = Vector3.new(1, 1, 1)
  1674. rng.Transparency = 0
  1675. rng.TopSurface = 0
  1676. rng.BottomSurface = 0
  1677. rng.CFrame = pos
  1678. local rngm = Instance.new("SpecialMesh", rng)
  1679. rngm.MeshType = MType
  1680. rngm.Scale = scale
  1681. local scaler2 = 1
  1682. if type == "Add" then
  1683. scaler2 = 1 * value
  1684. elseif type == "Divide" then
  1685. scaler2 = 1 / value
  1686. end
  1687. coroutine.resume(coroutine.create(function()
  1688. for i = 0, 10 / bonuspeed, 0.1 do
  1689. swait()
  1690. if type == "Add" then
  1691. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1692. elseif type == "Divide" then
  1693. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1694. end
  1695. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1696. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  1697. end
  1698. rng:Destroy()
  1699. end))
  1700. end
  1701.  
  1702. function Eviscerate(dude)
  1703. if dude.Name ~= char then
  1704. local bgf = IT("BodyGyro", dude.Head)
  1705. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1706. local val = IT("BoolValue", dude)
  1707. val.Name = "IsHit"
  1708. local ds = coroutine.wrap(function()
  1709. dude:WaitForChild("Head"):BreakJoints()
  1710. wait(0.5)
  1711. target = nil
  1712. coroutine.resume(coroutine.create(function()
  1713. for i, v in pairs(dude:GetChildren()) do
  1714. if v:IsA("Accessory") then
  1715. v:Destroy()
  1716. end
  1717. if v:IsA("Humanoid") then
  1718. v:Destroy()
  1719. end
  1720. if v:IsA("CharacterMesh") then
  1721. v:Destroy()
  1722. end
  1723. if v:IsA("Model") then
  1724. v:Destroy()
  1725. end
  1726. if v:IsA("Part") or v:IsA("MeshPart") then
  1727. for x, o in pairs(v:GetChildren()) do
  1728. if o:IsA("Decal") then
  1729. o:Destroy()
  1730. end
  1731. end
  1732. coroutine.resume(coroutine.create(function()
  1733. v.Material = "Neon"
  1734. v.CanCollide = false
  1735. local PartEmmit1 = IT("ParticleEmitter", v)
  1736. PartEmmit1.LightEmission = 1
  1737. PartEmmit1.Texture = "rbxassetid://284205403"
  1738. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1739. PartEmmit1.Rate = 150
  1740. PartEmmit1.Lifetime = NumberRange.new(1)
  1741. PartEmmit1.Size = NumberSequence.new({
  1742. NumberSequenceKeypoint.new(0, 0.75, 0),
  1743. NumberSequenceKeypoint.new(1, 0, 0)
  1744. })
  1745. PartEmmit1.Transparency = NumberSequence.new({
  1746. NumberSequenceKeypoint.new(0, 0, 0),
  1747. NumberSequenceKeypoint.new(1, 1, 0)
  1748. })
  1749. PartEmmit1.Speed = NumberRange.new(0, 0)
  1750. PartEmmit1.VelocitySpread = 30000
  1751. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  1752. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  1753. local BodPoss = IT("BodyPosition", v)
  1754. BodPoss.P = 3000
  1755. BodPoss.D = 1000
  1756. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1757. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1758. v.Color = maincolor.Color
  1759. coroutine.resume(coroutine.create(function()
  1760. for i = 0, 49 do
  1761. swait(1)
  1762. v.Transparency = v.Transparency + 0.08
  1763. end
  1764. wait(0.5)
  1765. PartEmmit1.Enabled = false
  1766. wait(3)
  1767. v:Destroy()
  1768. dude:Destroy()
  1769. end))
  1770. end))
  1771. end
  1772. end
  1773. end))
  1774. end)
  1775. ds()
  1776. end
  1777. end
  1778.  
  1779. function FindNearestHead(Position, Distance, SinglePlayer)
  1780. if SinglePlayer then
  1781. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  1782. end
  1783. local List = {}
  1784. for i, v in pairs(workspace:GetChildren()) do
  1785. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  1786. table.insert(List, v)
  1787. end
  1788. end
  1789. return List
  1790. end
  1791.  
  1792. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  1793. local type = type
  1794. local rng = Instance.new("Part", char)
  1795. rng.Anchored = true
  1796. rng.BrickColor = color
  1797. rng.CanCollide = false
  1798. rng.FormFactor = 3
  1799. rng.Name = "Ring"
  1800. rng.Material = "Neon"
  1801. rng.Size = Vector3.new(1, 1, 1)
  1802. rng.Transparency = 0
  1803. rng.TopSurface = 0
  1804. rng.BottomSurface = 0
  1805. rng.CFrame = pos
  1806. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  1807. local rngm = Instance.new("SpecialMesh", rng)
  1808. rngm.MeshType = MType
  1809. rngm.Scale = Vector3.new(x1, y1, z1)
  1810. local scaler2 = 1
  1811. local speeder = FastSpeed
  1812. if type == "Add" then
  1813. scaler2 = 1 * value
  1814. elseif type == "Divide" then
  1815. scaler2 = 1 / value
  1816. end
  1817. coroutine.resume(coroutine.create(function()
  1818. for i = 0, 10 / bonuspeed, 0.1 do
  1819. swait()
  1820. if type == "Add" then
  1821. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1822. elseif type == "Divide" then
  1823. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1824. end
  1825. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  1826. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  1827. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1828. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  1829. end
  1830. rng:Destroy()
  1831. end))
  1832. end
  1833.  
  1834. function SoulSteal(dude)
  1835. if dude.Name ~= char then
  1836. local bgf = IT("BodyGyro", dude.Head)
  1837. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1838. local val = IT("BoolValue", dude)
  1839. val.Name = "IsHit"
  1840. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  1841. local soulst = coroutine.wrap(function()
  1842. local soul = Instance.new("Part",dude)
  1843. soul.Size = Vector3.new(1,1,1)
  1844. soul.CanCollide = false
  1845. soul.Anchored = false
  1846. soul.Position = torso.Position
  1847. soul.Transparency = 1
  1848. local PartEmmit1 = IT("ParticleEmitter", soul)
  1849. PartEmmit1.LightEmission = 1
  1850. PartEmmit1.Texture = "rbxassetid://569507414"
  1851. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1852. PartEmmit1.Rate = 250
  1853. PartEmmit1.Lifetime = NumberRange.new(1.6)
  1854. PartEmmit1.Size = NumberSequence.new({
  1855. NumberSequenceKeypoint.new(0, 1, 0),
  1856. NumberSequenceKeypoint.new(1, 0, 0)
  1857. })
  1858. PartEmmit1.Transparency = NumberSequence.new({
  1859. NumberSequenceKeypoint.new(0, 0, 0),
  1860. NumberSequenceKeypoint.new(1, 1, 0)
  1861. })
  1862. PartEmmit1.Speed = NumberRange.new(0, 0)
  1863. PartEmmit1.VelocitySpread = 30000
  1864. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  1865. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  1866. local BodPoss = IT("BodyPosition", soul)
  1867. BodPoss.P = 3000
  1868. BodPoss.D = 1000
  1869. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1870. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1871. wait(1.6)
  1872. soul.Touched:connect(function(hit)
  1873. if hit.Parent == char then
  1874. soul:Destroy()
  1875. end
  1876. end)
  1877. wait(1.2)
  1878. while soul do
  1879. swait()
  1880. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1881. BodPoss.Position = tors.Position
  1882. end
  1883. end)
  1884. soulst()
  1885. end
  1886. end
  1887. function FaceMouse()
  1888. local Cam = workspace.CurrentCamera
  1889. return {
  1890. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  1891. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1892. }
  1893. end
  1894. -------------------------------------------------------
  1895. --End Effect Function--
  1896. -------------------------------------------------------
  1897. function Cso(ID, PARENT, VOLUME, PITCH)
  1898. local NSound = nil
  1899. coroutine.resume(coroutine.create(function()
  1900. NSound = IT("Sound", PARENT)
  1901. NSound.Volume = VOLUME
  1902. NSound.Pitch = PITCH
  1903. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1904. swait()
  1905. NSound:play()
  1906. game:GetService("Debris"):AddItem(NSound, 10)
  1907. end))
  1908. return NSound
  1909. end
  1910. function CameraEnshaking(Length, Intensity)
  1911. coroutine.resume(coroutine.create(function()
  1912. local intensity = 1 * Intensity
  1913. local rotM = 0.01 * Intensity
  1914. for i = 0, Length, 0.1 do
  1915. swait()
  1916. intensity = intensity - 0.05 * Intensity / Length
  1917. rotM = rotM - 5.0E-4 * Intensity / Length
  1918. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  1919. cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM)
  1920. end
  1921. hum.CameraOffset = Vector3.new(0, 0, 0)
  1922. end))
  1923. end
  1924. -------------------------------------------------------
  1925. --End Important Functions--
  1926. -------------------------------------------------------
  1927.  
  1928.  
  1929. -------------------------------------------------------
  1930. --Start Customization--
  1931. -------------------------------------------------------
  1932. local Player_Size = 1
  1933. if Player_Size ~= 1 then
  1934. root.Size = root.Size * Player_Size
  1935. tors.Size = tors.Size * Player_Size
  1936. hed.Size = hed.Size * Player_Size
  1937. ra.Size = ra.Size * Player_Size
  1938. la.Size = la.Size * Player_Size
  1939. rl.Size = rl.Size * Player_Size
  1940. ll.Size = ll.Size * Player_Size
  1941. ----------------------------------------------------------------------------------
  1942. rootj.Parent = root
  1943. neck.Parent = tors
  1944. RW.Parent = tors
  1945. LW.Parent = tors
  1946. RH.Parent = tors
  1947. LH.Parent = tors
  1948. ----------------------------------------------------------------------------------
  1949. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1950. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1951. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  1952. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  1953. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  1954. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  1955. ----------------------------------------------------------------------------------
  1956. RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1957. LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1958. RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1959. LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1960. --hat.Parent = Character
  1961. end
  1962. ----------------------------------------------------------------------------------
  1963. local SONG = 869188457
  1964. local SONG2 = 869188457
  1965. local Music = Instance.new("Sound",tors)
  1966. Music.Volume = 6
  1967. Music.Looped = true
  1968. Music.Pitch = 1 --Pitcher
  1969. ----------------------------------------------------------------------------------
  1970. local equipped = false
  1971. local idle = 0
  1972. local change = 1
  1973. local val = 0
  1974. local toim = 0
  1975. local idleanim = 0.4
  1976. local sine = 0
  1977. local Sit = 1
  1978. ----------------------------------------------------------------------------------
  1979. hum.WalkSpeed = 10
  1980. hum.JumpPower = 57
  1981. hum.Animator.Parent = nil
  1982. ----------------------------------------------------------------------------------
  1983. local naeeym2 = IT("BillboardGui",char)
  1984. naeeym2.AlwaysOnTop = true
  1985. naeeym2.Size = UDim2.new(5,35,2,15)
  1986. naeeym2.StudsOffset = Vector3.new(0,2,0)
  1987. naeeym2.MaxDistance = 75
  1988. naeeym2.Adornee = hed
  1989. naeeym2.Name = "Name"
  1990. --naeeym2.PlayerToHideFrom = Player
  1991. local tecks2 = IT("TextLabel",naeeym2)
  1992. tecks2.BackgroundTransparency = 1
  1993. tecks2.TextScaled = true
  1994. tecks2.BorderSizePixel = 0
  1995. tecks2.Text = "Mr. Blue Sky"
  1996. tecks2.Font = "Fantasy"
  1997. tecks2.TextSize = 30
  1998. tecks2.TextStrokeTransparency = 0
  1999. tecks2.TextColor3 = Color3.new(1,1,1)
  2000. tecks2.TextStrokeColor3 = Color3.fromRGB(177, 167, 255)
  2001. tecks2.Size = UDim2.new(1,0,0.5,0)
  2002. tecks2.Parent = naeeym2
  2003. local top = Instance.new("Shirt")
  2004. top.ShirtTemplate = "rbxassetid://260465926"
  2005. top.Parent = char
  2006. top.Name = "Cloth"
  2007. local bottom = Instance.new("Pants")
  2008. bottom.PantsTemplate = "rbxassetid://129459077"
  2009. bottom.Parent = char
  2010. bottom.Name = "Cloth"
  2011. ----------------------------------------------------------------------------------
  2012. --[[
  2013. Thanks for using Build-To-Lua by jarredbcv.
  2014. ]]--
  2015.  
  2016. New = function(Object, Parent, Name, Data)
  2017. local Object = Instance.new(Object)
  2018. for Index, Value in pairs(Data or {}) do
  2019. Object[Index] = Value
  2020. end
  2021. Object.Parent = Parent
  2022. Object.Name = Name
  2023. return Object
  2024. end
  2025.  
  2026. Mr = New("Model",char,"Mr",{})
  2027. Eye = New("Part",Mr,"Eye",{BrickColor = BrickColor.new("Institutional white"),Shape = Enum.PartType.Ball,Size = Vector3.new(1.96000075, 1.96000075, 1.96000075),CFrame = CFrame.new(-137.175568, 1.33095813, -17.0833168, 1.00000024, -2.38418579e-07, 1.1920929e-07, -2.38418579e-07, 1.00000012, 6.70552254e-08, 1.1920929e-07, 6.70552254e-08, 1.00000072),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  2028. Pupil = New("Part",Mr,"Pupil",{BrickColor = BrickColor.new("Black"),Shape = Enum.PartType.Ball,Size = Vector3.new(0.37000075, 0.37000075, 0.37000075),CFrame = CFrame.new(-137.235779, 1.42530513, -18.0334377, 1.00000072, -7.15256022e-07, 3.57628181e-07, -7.15256022e-07, 1.00000036, 2.01165761e-07, 3.57628181e-07, 2.01165761e-07, 1.00000215),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  2029. mot = New("Motor",Pupil,"mot",{Part0 = Pupil,Part1 = Eye,C0 = CFrame.new(0, 0, 0, 1.00000024, -2.38418579e-07, 1.1920929e-07, -2.38418579e-07, 1.00000012, 6.70552254e-08, 1.1920929e-07, 6.70552254e-08, 1.00000072),C1 = CFrame.new(-0.0602111816, 0.0943470001, -0.950120926, 1.00000024, -2.38418579e-07, 1.1920929e-07, -2.38418579e-07, 1.00000012, 6.70552254e-08, 1.1920929e-07, 6.70552254e-08, 1.00000072),})
  2030. TopHat2 = New("Part",Mr,"TopHat2",{BrickColor = BrickColor.new("Dark blue"),Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.0500000007, 1, 1),CFrame = CFrame.new(-137.740799, 2.24810791, -17.0272255, 0.458347857, 0.877660632, -0.140108809, -0.888243496, 0.446898967, -0.106327571, -0.0307050757, 0.173186749, 0.984412611),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  2031. mot = New("Motor",TopHat2,"mot",{Part0 = TopHat2,Part1 = Eye,C0 = CFrame.new(0, 0, 0, 0.458347201, -0.88824302, -0.0307050198, 0.877660394, 0.446899265, 0.173186243, -0.140109047, -0.106327735, 0.98441118),C1 = CFrame.new(-0.565231323, 0.917149663, 0.0560913086, 1.00000024, -2.38418579e-07, 1.1920929e-07, -2.38418579e-07, 1.00000012, 6.70552254e-08, 1.1920929e-07, 6.70552254e-08, 1.00000072),})
  2032. TopHat1 = New("Part",Mr,"TopHat1",{BrickColor = BrickColor.new("Dark blue"),Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.54000056, 1.80000043, 0.780000567),CFrame = CFrame.new(-138.100586, 2.94428444, -17.0250435, 0.457500041, 0.889210463, 3.57628181e-07, -0.88921082, 0.45749861, 2.01165761e-07, -1.52640816e-08, 4.10039718e-07, 1.00000215),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  2033. mot = New("Motor",TopHat1,"mot",{Part0 = TopHat1,Part1 = Eye,C0 = CFrame.new(0, 0, 0, 0.457499385, -0.889210343, -5.08804376e-09, 0.889210224, 0.457498908, 1.36679802e-07, 1.1920929e-07, 6.70552254e-08, 1.00000072),C1 = CFrame.new(-0.925018311, 1.61332572, 0.0582733154, 1.00000024, -2.38418579e-07, 1.1920929e-07, -2.38418579e-07, 1.00000012, 6.70552254e-08, 1.1920929e-07, 6.70552254e-08, 1.00000072),})
  2034. OuterPupil = New("Part",Mr,"OuterPupil",{BrickColor = BrickColor.new("Alder"),Material = Enum.Material.Neon,Shape = Enum.PartType.Ball,Size = Vector3.new(1.0000006, 1.0000006, 1.0000006),CFrame = CFrame.new(-137.20755, 1.40179217, -17.6748943, 1.00000072, -7.15256022e-07, 3.57628181e-07, -7.15256022e-07, 1.00000036, 2.01165761e-07, 3.57628181e-07, 2.01165761e-07, 1.00000215),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.705882, 0.501961, 1),})
  2035. mot = New("Motor",OuterPupil,"mot",{Part0 = OuterPupil,Part1 = Eye,C0 = CFrame.new(0, 0, 0, 1.00000024, -2.38418579e-07, 1.1920929e-07, -2.38418579e-07, 1.00000012, 6.70552254e-08, 1.1920929e-07, 6.70552254e-08, 1.00000072),C1 = CFrame.new(-0.0319824219, 0.0708340406, -0.59157753, 1.00000024, -2.38418579e-07, 1.1920929e-07, -2.38418579e-07, 1.00000012, 6.70552254e-08, 1.1920929e-07, 6.70552254e-08, 1.00000072),})
  2036. TopHat3 = New("Part",Mr,"TopHat3",{BrickColor = BrickColor.new("Dark blue"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.779999912, 0.5, 0.769999981),CFrame = CFrame.new(-138.460098, 3.63034701, -17.0150394, -0.258819818, -0.455481321, 0.851792634, -5.44427401e-08, 0.881841302, 0.471547186, -0.965928435, 0.122045919, -0.228237376),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  2037. Mesh = New("SpecialMesh",TopHat3,"Mesh",{MeshType = Enum.MeshType.Sphere,})
  2038. mot = New("Motor",TopHat3,"mot",{Part0 = TopHat3,Part1 = Eye,C0 = CFrame.new(0, 0, 0, -0.258819461, -4.83165614e-08, -0.965926886, -0.455480665, 0.881840825, 0.122045726, 0.851792514, 0.471547544, -0.228237316),C1 = CFrame.new(-1.28453064, 2.29938841, 0.068277359, 1.00000024, -2.38418579e-07, 1.1920929e-07, -2.38418579e-07, 1.00000012, 6.70552254e-08, 1.1920929e-07, 6.70552254e-08, 1.00000072),})
  2039.  
  2040. local NewInstance = function(instance,parent,properties)
  2041. local inst = Instance.new(instance,parent)
  2042. if(properties)then
  2043. for i,v in next, properties do
  2044. pcall(function() inst[i] = v end)
  2045. end
  2046. end
  2047. return inst;
  2048. end
  2049.  
  2050. local HW = NewInstance('Weld',char,{Part0=tors, Part1=Eye, C0 = CF(0,4,0) * angles(0,0,0)})
  2051. for i,v in pairs(char:children()) do
  2052. if v:IsA("Hat") then
  2053. v:Destroy()
  2054. end
  2055. end
  2056. for i,v in pairs(char:children()) do
  2057. if v:IsA("Accessory") then
  2058. v:Destroy()
  2059. end
  2060. end
  2061. hed.Transparency = 1
  2062. hed.face:Remove()
  2063. -------------------------------------------------------
  2064. --End Customization--
  2065. -------------------------------------------------------
  2066.  
  2067.  
  2068. -------------------------------------------------------
  2069. --Start Attacks N Stuff--
  2070. -------------------------------------------------------
  2071. function Taunt1()
  2072. attack = true
  2073. hum.WalkSpeed = 0
  2074. for i = 0, 9, 0.1 do
  2075. swait()
  2076. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(15), Rad(0), Rad(0)), 0.15)
  2077. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  2078. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(0), Rad(78), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(15)), 0.15)
  2079. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-78), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-15)), 0.15)
  2080. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-9), Rad(0), Rad(155 + 25 * Sin(sine / 2.5))), 0.12)
  2081. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12)
  2082. HW.C0 = clerp(HW.C0, CF(0, 2 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0), Rad(0), Rad(0)), 0.1)
  2083. end
  2084. attack = false
  2085. hum.WalkSpeed = 10
  2086. end
  2087. function Taunt2()
  2088. attack = true
  2089. hum.WalkSpeed = 0
  2090. --Cso("221057812", hed, 10, 1.1)
  2091. for i = 0, 2, 0.1 do
  2092. swait()
  2093. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.5 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15)
  2094. neck.C0 = clerp(neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  2095. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.6 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15)
  2096. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.6 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15)
  2097. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12)
  2098. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12)
  2099. HW.C0 = clerp(HW.C0, CF(0, 2 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0), Rad(0), Rad(0)), 0.1)
  2100. end
  2101. for i = 0, 6, 0.1 do
  2102. swait()
  2103. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, .2 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15)
  2104. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 2) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.15)
  2105. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1.2 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15)
  2106. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -1.2 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15)
  2107. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12)
  2108. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12)
  2109. HW.C0 = clerp(HW.C0, CF(0, 4 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0 - 255.45 * i), Rad(0), Rad(0)), 0.15)
  2110. end
  2111. for i = 0, 2, 0.1 do
  2112. swait()
  2113. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.5 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15)
  2114. neck.C0 = clerp(neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  2115. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.6 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15)
  2116. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.6 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15)
  2117. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12)
  2118. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12)
  2119. HW.C0 = clerp(HW.C0, CF(0, 1.8, 0) * angles(Rad(0), Rad(0), Rad(0)), 0.1)
  2120. end
  2121. attack = false
  2122. hum.WalkSpeed = 10
  2123. end
  2124. function Astigmatism()
  2125. attack = true
  2126. hum.WalkSpeed = 0
  2127. local Ring1 = Instance.new("Part", char)
  2128. Ring1.Anchored = true
  2129. Ring1.BrickColor = maincolor
  2130. Ring1.CanCollide = false
  2131. Ring1.FormFactor = 3
  2132. Ring1.Name = "Ring"
  2133. Ring1.Material = "Neon"
  2134. Ring1.Size = Vector3.new(1, 0.05, 1)
  2135. Ring1.Transparency = 1
  2136. Ring1.TopSurface = 0
  2137. Ring1.BottomSurface = 0
  2138. local Ring1Mesh = Instance.new("SpecialMesh", Ring1)
  2139. Ring1Mesh.MeshType = "Brick"
  2140. Ring1Mesh.Name = "SizeMesh"
  2141. Ring1Mesh.Scale = Vector3.new(0, 1, 0)
  2142. local InnerRing1 = Ring1:Clone()
  2143. InnerRing1.Parent = char
  2144. InnerRing1.Transparency = 0
  2145. InnerRing1.BrickColor = BrickColor.new("New Yeller")
  2146. InnerRing1.Size = Vector3.new(1, 1, 1)
  2147. local InnerRing1Mesh = InnerRing1.SizeMesh
  2148. InnerRing1Mesh.Scale = Vector3.new(0, 0, 0)
  2149. InnerRing1Mesh.MeshType = "Sphere"
  2150. Ring1:Destroy()
  2151. for i = 0, 6, 0.1 do
  2152. swait()
  2153. --orb.CFrame = Pupil.CFrame
  2154. Aura(7, 0.12, "Add", Pupil.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Sphere")
  2155. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15)
  2156. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 1) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  2157. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15)
  2158. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15)
  2159. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-35), Rad(0), Rad(165 + 2.5 * Sin(sine / 20))), 0.12)
  2160. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-35), Rad(0), Rad(-165 + 2.5 * Sin(sine / 20))), 0.12)
  2161. HW.C0 = clerp(HW.C0, CF(0, 3 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0), Rad(0), Rad(0)), 0.1)
  2162. end
  2163. InnerRing1.Transparency = 1
  2164. InnerRing1.CFrame = Pupil.CFrame + root.CFrame.lookVector * 5
  2165. Cso("294188875", char, 2.3, 1)
  2166. local a = IT("Part", char)
  2167. a.Name = "Direction"
  2168. a.Anchored = true
  2169. a.BrickColor = BrickC("Pastel violet")
  2170. a.Material = "SmoothPlastic"
  2171. a.Transparency = 0
  2172. a.Shape = "Cylinder"
  2173. a.CanCollide = false
  2174. local a2 = IT("Part", char)
  2175. a2.Name = "Direction"
  2176. a2.Anchored = true
  2177. a2.BrickColor = maincolor
  2178. a2.Color = maincolor.Color
  2179. a2.Material = "Neon"
  2180. a2.Transparency = 0.7
  2181. a2.Shape = "Cylinder"
  2182. a2.CanCollide = false
  2183. local ba = IT("Part", char)
  2184. ba.Name = "HitDirect"
  2185. ba.Anchored = true
  2186. ba.BrickColor = maincolor
  2187. ba.Material = "Neon"
  2188. ba.Transparency = 1
  2189. ba.CanCollide = false
  2190. local ray = Ray.new(InnerRing1.CFrame.p, (mouse.Hit.p - InnerRing1.CFrame.p).unit * 1000)
  2191. local ignore = char
  2192. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2193. a.BottomSurface = 10
  2194. a.TopSurface = 10
  2195. a2.BottomSurface = 10
  2196. a2.TopSurface = 10
  2197. local distance = (InnerRing1.CFrame.p - position).magnitude
  2198. a.Size = Vector3.new(distance, 1, 1)
  2199. a.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance / 2)
  2200. a2.Size = Vector3.new(distance, 1, 1)
  2201. a2.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance / 2)
  2202. ba.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance)
  2203. a.CFrame = a.CFrame * angles(0, Rad(90), 0)
  2204. a2.CFrame = a2.CFrame * angles(0, Rad(90), 0)
  2205. game:GetService("Debris"):AddItem(a, 20)
  2206. game:GetService("Debris"):AddItem(a2, 20)
  2207. game:GetService("Debris"):AddItem(ba, 20)
  2208. local msh = Instance.new("SpecialMesh", a)
  2209. msh.MeshType = "Brick"
  2210. msh.Scale = Vector3.new(1, 5, 5)
  2211. local msh2 = Instance.new("SpecialMesh", a2)
  2212. msh2.MeshType = "Brick"
  2213. msh2.Scale = Vector3.new(1, 7, 7)
  2214. for i = 0, 10, 0.1 do
  2215. swait()
  2216. CameraEnshaking(1, 5)
  2217. a2.Color = maincolor.Color
  2218. root.CFrame = FaceMouse()[1]
  2219. InnerRing1.CFrame = Pupil.CFrame + root.CFrame.lookVector * 4
  2220. ray = Ray.new(InnerRing1.CFrame.p, (mouse.Hit.p - InnerRing1.CFrame.p).unit * 1000)
  2221. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2222. distance = (InnerRing1.CFrame.p - position).magnitude
  2223. a.Size = Vector3.new(distance, 1, 1)
  2224. a.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance / 2)
  2225. a2.Size = Vector3.new(distance, 1, 1)
  2226. a2.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance / 2)
  2227. ba.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance)
  2228. a.CFrame = a.CFrame * angles(0, Rad(90), 0)
  2229. a2.CFrame = a2.CFrame * angles(0, Rad(90), 0)
  2230. msh.Scale = msh.Scale - Vector3.new(0, 0.05, 0.05)
  2231. msh2.Scale = msh2.Scale - Vector3.new(0, 0.03, 0.03)
  2232. Aura(5, 0.15, "Add", ba.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 15, 15, 25, -0.15, maincolor, 0, "Sphere")
  2233. for i, v in pairs(FindNearestHead(ba.CFrame.p, 14.5)) do
  2234. if v:FindFirstChild("Head") then
  2235. Eviscerate(v)
  2236. end
  2237. end
  2238. end
  2239. a:Destroy()
  2240. a2:Destroy()
  2241. ba:Destroy()
  2242. InnerRing1:Destroy()
  2243. attack = false
  2244. hum.WalkSpeed = 10
  2245. hum.CameraOffset = Vector3.new(0,0,0)
  2246. end
  2247. function EyeThrow()
  2248. attack = true
  2249. hum.WalkSpeed = 3.01
  2250. for i = 0, 6, 0.1 do
  2251. swait()
  2252. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15)
  2253. neck.C0 = clerp(neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  2254. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15)
  2255. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15)
  2256. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.7 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(215 + 2.5 * Sin(sine / 20))), 0.12)
  2257. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12)
  2258. HW.C0 = clerp(HW.C0, CF(0, 2 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0), Rad(0), Rad(0)), 0.1)
  2259. end
  2260. local Head01 = Eye:Clone()
  2261. Head01.Parent = char
  2262. Eye.Transparency = 1
  2263. local weldHead01 = IT("Weld")
  2264. weldHead01.Parent = Head01
  2265. weldHead01.Part0 = ra
  2266. weldHead01.Part1 = Head01
  2267. weldHead01.C1 = CF(0, 0, 1.2) * angles(Rad(90), Rad(0), Rad(0))
  2268. for i = 0, 6, 0.1 do
  2269. swait()
  2270. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(-20)), 0.2)
  2271. neck.C0 = clerp(neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(20)), 0.3)
  2272. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.2)
  2273. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.2)
  2274. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(145 + 2.5 * Sin(sine / 20))), 0.2)
  2275. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.2)
  2276. HW.C0 = clerp(HW.C0, CF(0, 2 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0), Rad(20), Rad(0)), 0.1)
  2277. end
  2278. local A = IT("Attachment",Head01)
  2279. A.Position = Vector3.new(-0, 0.2, 0.136)
  2280. local B = IT("Attachment",Head01)
  2281. B.Position = Vector3.new(-0, -0.95, -0.982)
  2282. local Trail = IT("Trail",Head01)
  2283. Trail.Attachment0 = B
  2284. Trail.Attachment1 = A
  2285. Trail.Lifetime = 0.6
  2286. Trail.Transparency = NumberSequence.new(0.5, 1)
  2287. Trail.Texture = "http://www.roblox.com/asset/?id=1472703539"
  2288. Trail.Enabled = true
  2289. weldHead01:Destroy()
  2290. Head01.CanCollide = true
  2291. local bodyVelocity2 = Create("BodyVelocity")({
  2292. velocity = (mouse.Hit.p - Head01.CFrame.p).unit * 165,
  2293. P = 5000,
  2294. maxForce = Vector3.new(8000, 8000, 8000),
  2295. Parent = Head01
  2296. })
  2297. game:GetService("Debris"):AddItem(bodyVelocity2, 0.05)
  2298. Head01.Touched:connect(function(hit)
  2299. if(not char:IsAncestorOf(hit))then
  2300. local hum = (hit and hit.Parent and hit.Parent:FindFirstChildOfClass'Humanoid')
  2301. local hedder = (hit and hit.Parent and hit.Parent:FindFirstChild'Head')
  2302. if(hum and hedder and hum.Health > 0)then
  2303. Eviscerate(hit.Parent)
  2304. Cso("491296320", hit.Parent.Torso, 10, 1)
  2305. end
  2306. end
  2307. end)
  2308. for i = 0, 2, 0.1 do
  2309. swait()
  2310. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(40)), 0.2)
  2311. neck.C0 = clerp(neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(-40)), 0.3)
  2312. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.2)
  2313. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.2)
  2314. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-134), Rad(0), Rad(145 + 2.5 * Sin(sine / 20))), 0.2)
  2315. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(-15)), 0.1)
  2316. HW.C0 = clerp(HW.C0, CF(0, 2 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0), Rad(-40), Rad(0)), 0.2)
  2317. end
  2318. for i = 0, 6, 0.1 do
  2319. swait()
  2320. Eye.Transparency = Eye.Transparency - 0.05
  2321. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(40)), 0.2)
  2322. neck.C0 = clerp(neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(-40)), 0.2)
  2323. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.2)
  2324. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.2)
  2325. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-134), Rad(0), Rad(145 + 2.5 * Sin(sine / 20))), 0.2)
  2326. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(-15)), 0.2)
  2327. HW.C0 = clerp(HW.C0, CF(0, 2 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0), Rad(-40), Rad(0)), 0.1)
  2328. end
  2329. coroutine.resume(coroutine.create(function()
  2330. for i = 0, 1.8, 0.05 do
  2331. swait()
  2332. Head01.Transparency = i
  2333. end
  2334. Head01:Destroy()
  2335. end))
  2336. --Head01:Destory()
  2337. attack = false
  2338. Trail.Enabled = false
  2339. hum.WalkSpeed = 10
  2340. end
  2341. function Call_Upon_The_Eyes()
  2342. attack = true
  2343. hum.WalkSpeed = 0
  2344. for i = 0, 6, 0.1 do
  2345. swait()
  2346. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15)
  2347. neck.C0 = clerp(neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  2348. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15)
  2349. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15)
  2350. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(145), Rad(0), Rad(15 + 2.5 * Sin(sine / 20))), 0.12)
  2351. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12)
  2352. HW.C0 = clerp(HW.C0, CF(0, 3.5 + 0.2 * Cos(sine / 20), 0) * angles(Rad(90), Rad(0), Rad(0)), 0.1)
  2353. end
  2354. Magic(5, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, maincolor, "Sphere")
  2355. Magic(10, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, maincolor, "Sphere")
  2356. Magic(1, "Add", mouse.Hit, Vector3.new(1, 100000, 1), 0.5, maincolor, "Sphere")
  2357. Magic(1, "Add", mouse.Hit, Vector3.new(1, 1, 1), 0.75, maincolor, "Sphere")
  2358. CameraEnshaking(4, 25)
  2359. for i, v in pairs(FindNearestHead(mouse.Hit.p, 14.5)) do
  2360. if v:FindFirstChild("Head") then
  2361. Eviscerate(v)
  2362. end
  2363. end
  2364. for i = 0, 6, 0.1 do
  2365. swait()
  2366. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.4 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15)
  2367. neck.C0 = clerp(neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  2368. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15)
  2369. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15)
  2370. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(45), Rad(0), Rad(15 + 2.5 * Sin(sine / 20))), 0.2)
  2371. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12)
  2372. HW.C0 = clerp(HW.C0, CF(0, 3 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0 - 255.45 * i), Rad(0), Rad(0)), 0.15)
  2373. end
  2374. attack = false
  2375. hum.WalkSpeed = 10
  2376. end
  2377. function Eyeyeyeyeyeyey_Slammo()
  2378. attack = true
  2379. hum.WalkSpeed = 0
  2380. local Blobby = IT("Part", char)
  2381. Blobby.Name = "Blob"
  2382. Blobby.CanCollide = false
  2383. Blobby.BrickColor = BrickC("Really black")
  2384. Blobby.Transparency = 0
  2385. Blobby.Material = "Plastic"
  2386. Blobby.Size = Vector3.new(1, 1, 2)
  2387. Blobby.TopSurface = Enum.SurfaceType.Smooth
  2388. Blobby.BottomSurface = Enum.SurfaceType.Smooth
  2389.  
  2390. local Weld = IT("Weld", Blobby)
  2391. Weld.Part0 = hed
  2392. Weld.Part1 = Blobby
  2393. Weld.C1 = CF(0, -17.6, 1.4)
  2394. Weld.C0 = angles(Rad(0),0,0)
  2395.  
  2396. local M2 = IT("SpecialMesh")
  2397. M2.Parent = Blobby
  2398. M2.MeshId = "http://www.roblox.com/asset/?id=1185246"
  2399. M2.TextureId = "http://www.roblox.com/asset/?id=28301750"
  2400. M2.Scale = Vector3.new(45.65, 45.65, 45.65)
  2401. for i = 0, 6, 0.1 do
  2402. swait()
  2403. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.2)
  2404. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 1) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  2405. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15)
  2406. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15)
  2407. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-35), Rad(0), Rad(165 + 2.5 * Sin(sine / 20))), 0.12)
  2408. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-35), Rad(0), Rad(-165 + 2.5 * Sin(sine / 20))), 0.12)
  2409. HW.C0 = clerp(HW.C0, CF(0, 2 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0), Rad(0), Rad(0)), 0.1)
  2410. end
  2411. Magic(1, "Add", root.CFrame * CF(0, -1.9, -20), Vector3.new(1, 1, 1), 0.75, maincolor, "Sphere")
  2412. Magic(5, "Add", root.CFrame * CF(0, -1.9, -20), Vector3.new(0, 0, 0), 1, maincolor, "Sphere")
  2413. Magic(10, "Add", root.CFrame * CF(0, -1.9, -20), Vector3.new(0, 0, 0), 2, maincolor, "Sphere")
  2414. for i, v in pairs(FindNearestHead(root.CFrame.p, 25.5)) do
  2415. if v:FindFirstChild("Head") then
  2416. Eviscerate(v)
  2417. end
  2418. end
  2419. CameraEnshaking(4, 25)
  2420. for i = 0, 6, 0.1 do
  2421. swait()
  2422. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(90 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15)
  2423. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 1) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  2424. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1.3 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(90)), 0.15)
  2425. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -1.3 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-90)), 0.15)
  2426. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-35), Rad(0), Rad(165 + 2.5 * Sin(sine / 20))), 0.12)
  2427. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-35), Rad(0), Rad(-165 + 2.5 * Sin(sine / 20))), 0.12)
  2428. HW.C0 = clerp(HW.C0, CF(0, 2 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0), Rad(0), Rad(0)), 0.1)
  2429. end
  2430. Blobby:Destroy()
  2431. attack = false
  2432. hum.WalkSpeed = 10
  2433. end
  2434. -------------------------------------------------------
  2435. --End Attacks N Stuff--
  2436. -------------------------------------------------------
  2437. mouse.KeyDown:connect(function(key)
  2438. if attack == false then
  2439. if key == 't' then
  2440. Taunt1()
  2441. elseif key == 'y' then
  2442. Taunt2()
  2443. elseif key == 'z' then
  2444. Astigmatism()
  2445. elseif key == 'x' then
  2446. EyeThrow()
  2447. elseif key == 'c' then
  2448. Call_Upon_The_Eyes()
  2449. elseif key == 'v' then
  2450. Eyeyeyeyeyeyey_Slammo()
  2451. end
  2452. end
  2453. end)
  2454.  
  2455.  
  2456.  
  2457.  
  2458.  
  2459.  
  2460.  
  2461.  
  2462.  
  2463. -------------------------------------------------------
  2464. --Start Animations--
  2465. -------------------------------------------------------
  2466. while true do
  2467. swait()
  2468. sine = sine + change
  2469. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  2470. local velderp = root.Velocity.y
  2471. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  2472. if equipped == true or equipped == false then
  2473. if attack == false then
  2474. idle = idle + 1
  2475. else
  2476. idle = 0
  2477. end
  2478. if 1 < root.Velocity.y and hitfloor == nil then
  2479. Anim = "Jump"
  2480. if attack == false then
  2481. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15)
  2482. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  2483. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  2484. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  2485. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
  2486. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  2487. end
  2488. elseif -1 > root.Velocity.y and hitfloor == nil then
  2489. Anim = "Fall"
  2490. if attack == false then
  2491. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.15)
  2492. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  2493. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
  2494. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
  2495. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1)
  2496. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1)
  2497. end
  2498. elseif torvel < 1 and hitfloor ~= nil then
  2499. Anim = "Idle"
  2500. change = .5
  2501. if attack == false then
  2502. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15)
  2503. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  2504. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15)
  2505. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15)
  2506. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12)
  2507. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12)
  2508. HW.C0 = clerp(HW.C0, CF(0, 2 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0), Rad(0), Rad(0)), 0.1)
  2509. end
  2510. elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then
  2511. Anim = "Walk"
  2512. change = 1
  2513. if attack == false then
  2514. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(3 * Cos(sine / 7))), 0.15)
  2515. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(6 - 2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  2516. RH.C0 = clerp(RH.C0, CF(1, -0.8 - 0.5 * Cos(sine / 7) / 2, 0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 - 5 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  2517. LH.C0 = clerp(LH.C0, CF(-1, -0.8 + 0.5 * Cos(sine / 7) / 2, -0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 + 5 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  2518. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.02 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12)
  2519. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.02 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12)
  2520. HW.C0 = clerp(HW.C0, CF(0, 2 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0), Rad(0), Rad(0)), 0.1)
  2521. end
  2522. elseif torvel >= 25 and hitfloor ~= nil then
  2523. Anim = "Sprint"
  2524. change = 1.35
  2525. if attack == false then
  2526. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15)
  2527. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  2528. RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.7 * Cos(sine / 7) / 2) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  2529. LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.7 * Cos(sine / 7) / 2) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  2530. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.34 * Cos(sine / 7)) * angles(Rad(110) * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15)
  2531. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), -0.34 * Cos(sine / 7)) * angles(Rad(-110) * Cos(sine / 7) , Rad(0) , Rad(-13) + la.RotVelocity.Y / 75), 0.15)
  2532. end
  2533. end
  2534. end
  2535. for _, c in pairs(char:GetChildren()) do
  2536. if c.ClassName == "Part" and c.Name ~= "Detail" then
  2537. --c.Material = "Fabric"
  2538. if c:FindFirstChildOfClass("ParticleEmitter") then
  2539. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  2540. end
  2541. if c ~= hed then
  2542. --c.Color = C3(0,0,0)
  2543. else
  2544. c.Color = Color3.new(1,1,1)
  2545. end
  2546. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  2547. c:remove()
  2548. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  2549. c:remove()
  2550. end
  2551. end
  2552. Music.SoundId = "rbxassetid://"..SONG
  2553. Music.Looped = true
  2554. Music.Pitch = 1
  2555. Music.Volume = 5
  2556. Music.Parent = tors
  2557. Music:Resume()
  2558. if 0 < #Effects then
  2559. for e = 1, #Effects do
  2560. if Effects[e] ~= nil then
  2561. local Thing = Effects[e]
  2562. if Thing ~= nil then
  2563. local Part = Thing[1]
  2564. local Mode = Thing[2]
  2565. local Delay = Thing[3]
  2566. local IncX = Thing[4]
  2567. local IncY = Thing[5]
  2568. local IncZ = Thing[6]
  2569. if 1 >= Thing[1].Transparency then
  2570. if Thing[2] == "Block1" then
  2571. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2572. local Mesh = Thing[1].Mesh
  2573. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2574. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2575. elseif Thing[2] == "Block2" then
  2576. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  2577. local Mesh = Thing[7]
  2578. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2579. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2580. elseif Thing[2] == "Block3" then
  2581. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
  2582. local Mesh = Thing[7]
  2583. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2584. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2585. elseif Thing[2] == "Cylinder" then
  2586. local Mesh = Thing[1].Mesh
  2587. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2588. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2589. elseif Thing[2] == "Blood" then
  2590. local Mesh = Thing[7]
  2591. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  2592. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2593. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2594. elseif Thing[2] == "Elec" then
  2595. local Mesh = Thing[1].Mesh
  2596. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  2597. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2598. elseif Thing[2] == "Disappear" then
  2599. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2600. elseif Thing[2] == "Shatter" then
  2601. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2602. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  2603. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  2604. Thing[6] = Thing[6] + Thing[5]
  2605. end
  2606. else
  2607. Part.Parent = nil
  2608. table.remove(Effects, e)
  2609. end
  2610. end
  2611. end
  2612. end
  2613. end
  2614. end
  2615. -------------------------------------------------------
  2616. --End Animations And Script--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement