Advertisement
SirMemz

I'm not spamming I'm fixing.

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