Advertisement
EmeraldIT

Untitled

Jul 29th, 2018
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 45.89 KB | None | 0 0
  1. wait(1)
  2. local plr = game.Players.LocalPlayer
  3. local char = plr.Character
  4. local larm = char:FindFirstChild("Left Arm")
  5. local cha = game.Players.LocalPlayer.Character:FindFirstChild("Torso")
  6. local cha2 = game.Players.LocalPlayer.Character:FindFirstChild("Head")
  7. local cha3 = game.Players.LocalPlayer.Character:FindFirstChild("Left Arm")
  8. local cha4 = game.Players.LocalPlayer.Character:FindFirstChild("Right Arm")
  9. local cha5 = game.Players.LocalPlayer.Character:FindFirstChild("Left Leg")
  10. local cha6 = game.Players.LocalPlayer.Character:FindFirstChild("Right Leg")
  11. hum=char.Humanoid
  12.  
  13. ff = Instance.new("ForceField", char)
  14. ff.Visible = false
  15.  
  16. function CreatePart1(parent,transparency,reflectance,material,brickcolor)
  17. local p = Instance.new("Part")
  18. p.Parent = parent
  19. p.Size = Vector3.new(1,1,1)
  20. p.Transparency = transparency
  21. p.Reflectance = reflectance
  22. p.CanCollide = false
  23. p.Locked = true
  24. p.BrickColor = brickcolor
  25. p.Material = material
  26. return p
  27. end
  28.  
  29. function CreateMesh1(parent,meshtype,x1,y1,z1)
  30. local mesh = Instance.new("SpecialMesh",parent)
  31. mesh.MeshType = meshtype
  32. mesh.Scale = Vector3.new(x1,y1,z1)
  33. return mesh
  34. end
  35.  
  36. function CreateSpecialGlowMesh1(parent,meshid,x1,y1,z1)
  37. local mesh = Instance.new("SpecialMesh",parent)
  38. mesh.MeshType = "FileMesh"
  39. mesh.MeshId = meshid
  40. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  41. mesh.Scale = Vector3.new(x1,y1,z1)
  42. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  43. return mesh
  44. end
  45.  
  46. function CreateWeld1(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  47. local weld = Instance.new("Weld")
  48. weld.Parent = parent
  49. weld.Part0 = part0
  50. weld.Part1 = part1
  51. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  52. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  53. return weld
  54. end
  55.  
  56.  
  57. local mouse = plr:GetMouse()
  58. local torso = char.Torso
  59.  
  60.  
  61. local RightArm = torso["Right Shoulder"]
  62. local LeftArm = torso["Left Shoulder"]
  63. local RightLeg = torso["Right Hip"]
  64. local LeftLeg = torso["Left Hip"]
  65. local Torso = char.HumanoidRootPart.RootJoint
  66. local Head = torso.Neck
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74. local animpose = "Idle"
  75. cananim = true
  76. num=0
  77.  
  78. local attacking = false
  79. if char:FindFirstChildOfClass("Humanoid"):FindFirstChild("Animator") then char:FindFirstChildOfClass("Humanoid").Animator:Destroy() end
  80. if char:FindFirstChild("Animate") then char.Animate:Destroy() end
  81.  
  82.  
  83.  
  84.  
  85.  
  86. spawn(function()
  87. while wait() do
  88. if torso then
  89. local velocity=torso.Velocity
  90. if hum==nil then
  91. return
  92. end
  93. if hum.MoveDirection==Vector3.new(0,0,0) then
  94. animpose="Idle"
  95. else
  96. animpose="Running"
  97. end
  98. if velocity.Y>0.5 then
  99. animpose="Jumping"
  100. end
  101. if velocity.Y<-0.5 then
  102. animpose="Falling"
  103. end
  104. end
  105. end
  106. end)
  107.  
  108.  
  109. function sound(id,loop,tim,endtim,eff)
  110. local s=Instance.new("Sound",char.Torso)
  111. s.SoundId=id
  112. if loop==true then
  113. s.Looped=true
  114. s.Name="Music"
  115. else
  116. s.Volume=2
  117. if id~="rbxassetid://245537790" and id~='rbxassetid://1179921724' and id~='rbxassetid://1251737869' then
  118. s.PlaybackSpeed = 1+math.random(-100,100)/1000
  119. end
  120. end
  121. if tim then
  122. s.TimePosition=tim
  123. end
  124. spawn(function()
  125. if endtim then
  126. repeat wait() until s.TimePosition==endtim or s.TimePosition>=endtim
  127. s:Stop()
  128. end
  129. end)
  130. if eff=="echo" then
  131. spawn(function()
  132. wait(1)
  133. local echo=Instance.new("EchoSoundEffect",s)
  134. echo.Delay=0.05
  135. echo.WetLevel=11
  136. echo.DryLevel=-1
  137. end)
  138. end
  139. if eff=="quiet" then
  140. s.Volume=0.3
  141. end
  142. s:Play()
  143. end
  144. --SCREEEEM
  145. function lazor()
  146.  
  147. cananim=false
  148. for i=1,30 do
  149. wait(1/60)
  150. Torso.C1 = Torso.C1:lerp(CFrame.new(0, 0, 0, -0.934085608, 0.339979589, -0.10907802, -0.102499805, 0.0373069048, 0.994033217, 0.342020363, 0.939692557, 0),0.2)
  151. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.50000006, 0.365961194, 0.435137242, -0.173563123, -0.0313025787, -0.984325111, -0.00543563766, 0.999509931, -0.0308270231, 0.98480773, 0, -0.173648223),0.2)
  152. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.5, 1, -7.4505806e-09, 0.0094302753, 0.0843551308, 0.996391118, 0.110700019, 0.990222573, -0.0848806128, -0.993809104, 0.111100972, -4.34407745e-08),0.2)
  153. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(0.499999881, 0.49999997, 0, 0.686760783, 0.0407644771, -0.725739539, 0.724464417, 0.0430024639, 0.687969565, 0.0592533089, -0.998242974, -2.59004374e-09),0.2)
  154. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-0.5, -0.0484665036, 2.98023224e-08, -0.31701979, -0.00180978479, 0.948417187, -0.948401749, -0.00541418325, -0.317024946, 0.00570865162, -0.999983728, 2.49531951e-10),0.2)
  155. Head.C1 = Head.C1:lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),0.2)
  156. end
  157.  
  158. local keeprunning=true
  159. spawn(function()
  160. while wait() do
  161. local ray = Ray.new(char['Right Arm'].CFrame.p,(mouse.Hit.p-char['Right Arm'].CFrame.p).unit*300)
  162. local part,position = workspace:FindPartOnRay(ray,char, false, true)
  163. local distance = (char['Right Arm'].CFrame.p - position).magnitude
  164. if keeprunning==false then
  165. break
  166. end
  167. if part then
  168. if part.Parent:FindFirstChild("Humanoid") then
  169. part:BreakJoints()
  170. part.Anchored=false
  171.  
  172. end
  173. end
  174.  
  175. local ex=Instance.new("Explosion",workspace)
  176. ex.Position=position
  177. ex.Visible=false
  178. ex.DestroyJointRadiusPercent=0
  179. ex.BlastPressure=100001
  180. ex.BlastRadius=1
  181.  
  182. local ex=Instance.new("Explosion",workspace)
  183. ex.Position=position
  184. ex.Visible=false
  185. ex.DestroyJointRadiusPercent=0
  186. ex.BlastPressure=100
  187. ex.BlastRadius=30
  188.  
  189. Torso.C1 = Torso.C1:lerp(CFrame.new(0.45384407, 3.25962901e-09, -0.163368881, -0.840329647, -0.538628399, 0.061037913, 0.12248569, -0.0789824352, 0.989322543, -0.528056264, 0.838833332, 0.132345542),0.2)
  190. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.486327916, 0.918347716, -0.0835282654, -0.139580116, -0.193979532, -0.971024871, -0.210418463, 0.96403873, -0.162337258, 0.967595696, 0.18166253, -0.175377563),0.2)
  191. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.504761815, 1.01941562, -0.072208859, -0.0534072705, 0.0794541091, 0.995406747, -0.0726492628, 0.993878722, -0.083230041, -0.995926619, -0.0767606497, -0.0473080687),0.2)
  192. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(0.5, 0.49999994, -5.96046448e-08, -0.0783533007, -0.155531406, -0.984718561, -0.400697172, 0.909370303, -0.111747369, 0.912854075, 0.385818183, -0.1335731),0.2)
  193. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-0.267708331, 0.709498703, -0.021721065, -0.500156283, -0.117081404, 0.85798347, -0.864884198, 0.0187412351, -0.501621544, 0.0426508784, -0.992945492, -0.110635392),0.2)
  194. Head.C1 = Head.C1:lerp(CFrame.new(0, -0.5, 0, -0.951892793, 0.28452459, 0.113780133, 0, -0.371307135, 0.928510129, 0.306431323, 0.883842111, 0.353444576),0.2)
  195.  
  196. local beam = Instance.new("Part", char)
  197. beam.BrickColor = BrickColor.new("Toothpaste")
  198. beam.FormFactor = "Custom"
  199. beam.Material = "Neon"
  200. beam.Transparency = 0.5
  201. beam.Anchored = true
  202. beam.Locked = true
  203. beam.CanCollide = false
  204. beam.Size = Vector3.new(0.3, 0.3, distance)
  205. beam.CFrame = CFrame.new((char['Right Arm'].CFrame*CFrame.new(0,-3,0)).p, mouse.Hit.p) * CFrame.new(0, 0, -distance/2)
  206. spawn(function()
  207. for i=1,10 do
  208. beam.Transparency=i/10
  209. wait()
  210. end
  211. beam:Destroy()
  212. end)
  213. spawn(function()
  214. for i=1,20 do
  215. beam.Size=Vector3.new(i,i,beam.Size.Z)
  216. wait()
  217. end
  218. end)
  219. end
  220. end)
  221. for i=1,10 do
  222. sound("rbxassetid://245537790",false)
  223. end
  224. wait(3)
  225. keeprunning=false
  226. cananim=true
  227. end
  228. dodamage=false
  229. deb=false
  230. hum.Touched:connect(function(part)
  231. local ded=part.Parent:FindFirstChildOfClass("Humanoid")
  232. if deb==true then
  233. return
  234. end
  235. deb=true
  236. if ded then
  237. if dodamage == true then
  238. ded.Health=ded.Health-(math.random(5,10))
  239. sound("rbxassetid://386946017",false,0,0.36,'quiet')
  240. if supermode==true then
  241. local ex=Instance.new("Explosion",workspace)
  242. if math.random(1,3) ==1 then
  243. ex.Visible=false
  244. end
  245. ex.DestroyJointRadiusPercent=0
  246. ex.Position=part.Position
  247. ex.BlastPressure=1000
  248. part:BreakJoints()
  249. part.Anchored=false
  250. end
  251. end
  252. end
  253. wait(0.1)
  254. deb=false
  255. end)
  256. function SUPERlazor()
  257.  
  258. wait(2)
  259. cananim=false
  260. for i=1,30 do
  261. wait(1/60)
  262. Torso.C1 = Torso.C1:lerp(CFrame.new(0, 0, 0, -0.934085608, 0.339979589, -0.10907802, -0.102499805, 0.0373069048, 0.994033217, 0.342020363, 0.939692557, 0),0.2)
  263. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.50000006, 0.365961194, 0.435137242, -0.173563123, -0.0313025787, -0.984325111, -0.00543563766, 0.999509931, -0.0308270231, 0.98480773, 0, -0.173648223),0.2)
  264. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.5, 1, -7.4505806e-09, 0.0094302753, 0.0843551308, 0.996391118, 0.110700019, 0.990222573, -0.0848806128, -0.993809104, 0.111100972, -4.34407745e-08),0.2)
  265. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(0.499999881, 0.49999997, 0, 0.686760783, 0.0407644771, -0.725739539, 0.724464417, 0.0430024639, 0.687969565, 0.0592533089, -0.998242974, -2.59004374e-09),0.2)
  266. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-0.5, -0.0484665036, 2.98023224e-08, -0.31701979, -0.00180978479, 0.948417187, -0.948401749, -0.00541418325, -0.317024946, 0.00570865162, -0.999983728, 2.49531951e-10),0.2)
  267. Head.C1 = Head.C1:lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),0.2)
  268. end
  269.  
  270. local keeprunning=true
  271. spawn(function()
  272. while wait() do
  273. local ray = Ray.new(char['Right Arm'].CFrame.p,(mouse.Hit.p-char['Right Arm'].CFrame.p).unit*300)
  274. local part,position = workspace:FindPartOnRay(ray,char, false, true)
  275. local distance = (char['Right Arm'].CFrame.p - position).magnitude
  276. if keeprunning==false then
  277. break
  278. end
  279. if part then
  280. if part.Parent:FindFirstChild("Humanoid") then
  281. part:BreakJoints()
  282. part.Anchored=false
  283. part.Velocity = Vector3.new(math.random(-160,160),math.random(-160,160),math.random(-160,160))
  284. if math.random(1,3) == 1 then
  285. part:Destroy()
  286. end
  287. end
  288. end
  289.  
  290.  
  291. if math.random(1,5)==5 then
  292. sound("rbxassetid://314970761",false)
  293. end
  294. Torso.C1 = Torso.C1:lerp(CFrame.new(0.45384407, 3.25962901e-09, -0.163368881, -0.840329647, -0.538628399, 0.061037913, 0.12248569, -0.0789824352, 0.989322543, -0.528056264, 0.838833332, 0.132345542),0.2)
  295. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.486327916, 0.918347716, -0.0835282654, -0.139580116, -0.193979532, -0.971024871, -0.210418463, 0.96403873, -0.162337258, 0.967595696, 0.18166253, -0.175377563),0.2)
  296. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.504761815, 1.01941562, -0.072208859, -0.0534072705, 0.0794541091, 0.995406747, -0.0726492628, 0.993878722, -0.083230041, -0.995926619, -0.0767606497, -0.0473080687),0.2)
  297. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(0.5, 0.49999994, -5.96046448e-08, -0.0783533007, -0.155531406, -0.984718561, -0.400697172, 0.909370303, -0.111747369, 0.912854075, 0.385818183, -0.1335731),0.2)
  298. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-0.267708331, 0.709498703, -0.021721065, -0.500156283, -0.117081404, 0.85798347, -0.864884198, 0.0187412351, -0.501621544, 0.0426508784, -0.992945492, -0.110635392),0.2)
  299. Head.C1 = Head.C1:lerp(CFrame.new(0, -0.5, 0, -0.951892793, 0.28452459, 0.113780133, 0, -0.371307135, 0.928510129, 0.306431323, 0.883842111, 0.353444576),0.2)
  300.  
  301. local beam = Instance.new("Part", char)
  302. local colorz = {"Bright blue","Alder","White","Toothpaste","Royal purple"}
  303. beam.BrickColor = BrickColor.new(colorz[math.random(1,#colorz)])
  304. beam.FormFactor = "Custom"
  305. beam.Material = "Neon"
  306. beam.Transparency = 0.5
  307. beam.Anchored = true
  308. beam.Locked = true
  309. beam.CanCollide = false
  310. beam.Size = Vector3.new(0.3, 0.3, distance)
  311. beam.CFrame = CFrame.new((char['Right Arm'].CFrame*CFrame.new(0,-3,0)).p, mouse.Hit.p) * CFrame.new(0, 0, -distance/2)
  312. spawn(function()
  313. while beam do
  314. if beam==nil then break end
  315. beam.Anchored=true
  316. swait()
  317. end
  318. end)
  319. spawn(function()
  320. for i=1,10 do
  321. beam.Transparency=i/10
  322. beam.CFrame=beam.CFrame*CFrame.new(0,0,-i/10)
  323. wait()
  324. end
  325. beam:Destroy()
  326. end)
  327. spawn(function()
  328. for i=5,70, 3 do
  329. beam.Size=Vector3.new(i,i,beam.Size.Z)
  330. wait()
  331. end
  332. end)
  333. end
  334. end)
  335. for i=1,10 do
  336. sound("rbxassetid://314970761",false)
  337. end
  338. wait(6)
  339. keeprunning=false
  340. cananim=true
  341. end
  342.  
  343.  
  344. function fly()
  345.  
  346. for i,v in pairs(script:GetChildren()) do
  347.  
  348. pcall(function() v.Value = "" end)
  349.  
  350. game:GetService("Debris"):AddItem(v,.1)
  351.  
  352. end
  353.  
  354. function weld(p0,p1,c0,c1,par)
  355.  
  356. local w = Instance.new("Weld",p0 or par)
  357.  
  358. w.Part0 = p0
  359.  
  360. w.Part1 = p1
  361.  
  362. w.C0 = c0 or CFrame.new()
  363.  
  364. w.C1 = c1 or CFrame.new()
  365.  
  366. return w
  367.  
  368. end
  369.  
  370. local motors = {}
  371.  
  372. function motor(p0,p1,c0,c1,des,vel,par)
  373.  
  374. local w = Instance.new("Motor6D",p0 or par)
  375.  
  376. w.Part0 = p0
  377.  
  378. w.Part1 = p1
  379.  
  380. w.C0 = c0 or CFrame.new()
  381.  
  382. w.C1 = c1 or CFrame.new()
  383.  
  384. w.MaxVelocity = tonumber(vel) or .05
  385.  
  386. w.DesiredAngle = tonumber(des) or 0
  387.  
  388. return w
  389.  
  390. end
  391.  
  392. function lerp(a,b,c)
  393.  
  394. return a+(b-a)*c
  395.  
  396. end
  397.  
  398. function clerp(c1,c2,al)
  399.  
  400. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  401.  
  402. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  403.  
  404. for i,v in pairs(com1) do
  405.  
  406. com1[i] = lerp(v,com2[i],al)
  407.  
  408. end
  409.  
  410. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  411.  
  412. end
  413.  
  414. function ccomplerp(c1,c2,al)
  415.  
  416. local com1 = {c1:components()}
  417.  
  418. local com2 = {c2:components()}
  419.  
  420. for i,v in pairs(com1) do
  421.  
  422. com1[i] = lerp(v,com2[i],al)
  423.  
  424. end
  425.  
  426. return CFrame.new(unpack(com1))
  427.  
  428. end
  429.  
  430. function tickwave(time,length,offset)
  431.  
  432. return (math.abs((tick()+(offset or 0))%time-time/2)*2-time/2)/time/2*length
  433.  
  434. end
  435.  
  436.  
  437.  
  438. local oc = oc or function(...) return ... end
  439.  
  440. local plr = game.Players.LocalPlayer
  441.  
  442. local char = plr.Character
  443.  
  444. local tor = char.Torso
  445.  
  446. local hum = char.Humanoid
  447.  
  448. hum.PlatformStand = false
  449.  
  450. pcall(function()
  451.  
  452. char.Wings:Destroy()
  453.  
  454. end)
  455.  
  456. pcall(function()
  457.  
  458. char.Angel:Destroy() -- hat
  459.  
  460. end)
  461.  
  462. local mod = Instance.new("Model",char)
  463.  
  464. mod.Name = "Wings"
  465.  
  466. local topcolor = BrickColor.new("Alder")
  467.  
  468. local feacolor = BrickColor.new("Bright blue")
  469.  
  470. local ptrans = 0
  471.  
  472. local pref = 0
  473.  
  474. local fire = true
  475.  
  476. local fmcol = BrickColor.new("Toothpaste").Color
  477.  
  478. local fscol = BrickColor.new("Royal purple").Color
  479.  
  480. local part = Instance.new("Part")
  481.  
  482. part.FormFactor = "Custom"
  483.  
  484. part.Size = Vector3.new(.2,.2,.2)
  485.  
  486. part.TopSurface,part.BottomSurface = 0,0
  487.  
  488. part.CanCollide = false
  489.  
  490. part.BrickColor = topcolor
  491.  
  492. part.Transparency = ptrans
  493.  
  494. part.Material = "Neon"
  495.  
  496. part.Reflectance = pref
  497.  
  498. local ParticleEmitter0 = Instance.new("ParticleEmitter")
  499. ParticleEmitter0.Parent = part
  500. ParticleEmitter0.LightEmission = 1
  501. ParticleEmitter0.Color = ColorSequence.new(fmcol,fscol)
  502. ParticleEmitter0.Lifetime = NumberRange.new(1)
  503. ParticleEmitter0.Rate = 100
  504.  
  505. part:BreakJoints()
  506.  
  507.  
  508. function newpart()
  509.  
  510. local clone = part:Clone()
  511.  
  512. clone.Parent = mod
  513.  
  514. clone:BreakJoints()
  515.  
  516. return clone
  517.  
  518. end
  519.  
  520. local feath = newpart()
  521.  
  522. feath.BrickColor = feacolor
  523.  
  524. feath.Transparency = 0
  525.  
  526. Instance.new("SpecialMesh",feath).MeshType = "Sphere"
  527.  
  528. function newfeather()
  529.  
  530. local clone = feath:Clone()
  531.  
  532. clone.Parent = mod
  533.  
  534. clone:BreakJoints()
  535.  
  536. return clone
  537.  
  538. end
  539.  
  540.  
  541. ---------- RIGHT WING
  542.  
  543. local r1 = newpart()
  544.  
  545. r1.Size = Vector3.new(.3,1.5,.3)*1.2
  546.  
  547. 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)
  548.  
  549. local r2 = newpart()
  550.  
  551. r2.Size = Vector3.new(.4,1.8,.4)*1.2
  552.  
  553. 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)
  554.  
  555. local r3 = newpart()
  556.  
  557. r3.Size = Vector3.new(.3,2.2,.3)*1.2
  558.  
  559. 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)
  560.  
  561. local r4 = newpart()
  562.  
  563. r4.Size = Vector3.new(.25,1.2,.25)*1.2
  564.  
  565. 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)
  566.  
  567. local feather = newfeather()
  568.  
  569. feather.Mesh.Scale = Vector3.new(1,1,1)
  570.  
  571. feather.Size = Vector3.new(.4,3,.3)
  572.  
  573. weld(r4,feather,CFrame.new(-.1,-.3,0),CFrame.new(0,-1.5,0))
  574.  
  575. feather = newfeather()
  576.  
  577. feather.Mesh.Scale = Vector3.new(1,1,1)
  578.  
  579. feather.Size = Vector3.new(.4,2.3,.3)
  580.  
  581. weld(r4,feather,CFrame.new(.1,-.1,0) * CFrame.Angles(0,math.random()*.1,0),CFrame.new(0,-1.1,0))
  582.  
  583. feather = newfeather()
  584.  
  585. feather.Mesh.Scale = Vector3.new(1,1,1)
  586.  
  587. feather.Size = Vector3.new(.35,2.2,.25)
  588.  
  589. weld(r4,feather,CFrame.new(.1,-.3,0) * CFrame.Angles(0,math.random()*.1,math.rad(-10)),CFrame.new(0,-1.1,0))
  590.  
  591. local rf3 = {}
  592.  
  593. for i=0,7 do
  594.  
  595. feather = newfeather()
  596.  
  597. feather.Mesh.Scale = Vector3.new(1,1,1)
  598.  
  599. feather.Size = Vector3.new(.45,2.2,.35)
  600.  
  601. 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)))
  602.  
  603. end
  604.  
  605. local rf2 = {}
  606.  
  607. for i=0,6 do
  608.  
  609. feather = newfeather()
  610.  
  611. feather.Mesh.Scale = Vector3.new(1,1,1)
  612.  
  613. feather.Size = Vector3.new(.45,2.2-i*.08,.3)
  614.  
  615. 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)))
  616.  
  617. end
  618.  
  619. local rf1 = {}
  620.  
  621. for i=0,6 do
  622.  
  623. feather = newfeather()
  624.  
  625. feather.Mesh.Scale = Vector3.new(1,1,1)
  626.  
  627. feather.Size = Vector3.new(.37,1.65-i*.06,.25)
  628.  
  629. 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)))
  630.  
  631. end
  632.  
  633. ---------- LEFT WING
  634.  
  635. local l1 = newpart()
  636.  
  637. l1.Size = Vector3.new(.3,1.5,.3)*1.2
  638.  
  639. 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)
  640.  
  641. local l2 = newpart()
  642.  
  643. l2.Size = Vector3.new(.4,1.8,.4)*1.2
  644.  
  645. 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)
  646.  
  647. local l3 = newpart()
  648.  
  649. l3.Size = Vector3.new(.3,2.2,.3)*1.2
  650.  
  651. 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)
  652.  
  653. local l4 = newpart()
  654.  
  655. l4.Size = Vector3.new(.25,1.2,.25)*1.2
  656.  
  657. 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)
  658.  
  659. local feather = newfeather()
  660.  
  661. feather.Mesh.Scale = Vector3.new(1,1,1)
  662.  
  663. feather.Size = Vector3.new(.4,3,.3)
  664.  
  665. weld(l4,feather,CFrame.new(-.1,-.3,0),CFrame.new(0,-1.5,0))
  666.  
  667. feather = newfeather()
  668.  
  669. feather.Mesh.Scale = Vector3.new(1,1,1)
  670.  
  671. feather.Size = Vector3.new(.4,2.3,.3)
  672.  
  673. weld(l4,feather,CFrame.new(.1,-.1,0) * CFrame.Angles(0,math.random()*.1,0),CFrame.new(0,-1.1,0))
  674.  
  675. feather = newfeather()
  676.  
  677. feather.Mesh.Scale = Vector3.new(1,1,1)
  678.  
  679. feather.Size = Vector3.new(.35,2.2,.25)
  680.  
  681. weld(l4,feather,CFrame.new(.1,-.3,0) * CFrame.Angles(0,math.random()*.1,math.rad(-10)),CFrame.new(0,-1.1,0))
  682.  
  683. local lf3 = {}
  684.  
  685. for i=0,7 do
  686.  
  687. feather = newfeather()
  688.  
  689. feather.Mesh.Scale = Vector3.new(1,1,1)
  690.  
  691. feather.Size = Vector3.new(.45,2.2,.35)
  692.  
  693. 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)))
  694.  
  695. end
  696.  
  697. local lf2 = {}
  698.  
  699. for i=0,6 do
  700.  
  701. feather = newfeather()
  702.  
  703. feather.Mesh.Scale = Vector3.new(1,1,1)
  704.  
  705. feather.Size = Vector3.new(.45,2.2-i*.08,.3)
  706.  
  707. 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)))
  708.  
  709. end
  710.  
  711. local lf1 = {}
  712.  
  713. for i=0,6 do
  714.  
  715. feather = newfeather()
  716.  
  717. feather.Mesh.Scale = Vector3.new(1,1,1)
  718.  
  719. feather.Size = Vector3.new(.37,1.65-i*.06,.25)
  720.  
  721. 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)))
  722.  
  723. end
  724.  
  725. local rwing = {rm1,rm2,rm3,rm4}
  726.  
  727. local lwing = {lm1,lm2,lm3,lm4}
  728.  
  729. local oc0 = {}
  730.  
  731. for i,v in pairs(rwing) do
  732.  
  733. oc0[v] = v.C0
  734.  
  735. end
  736.  
  737. for i,v in pairs(lwing) do
  738.  
  739. oc0[v] = v.C0
  740.  
  741. end
  742.  
  743. function gotResized()
  744.  
  745. if lastsize then
  746.  
  747. if tor.Size == lastsize then return end -- This shouldn't happen?
  748.  
  749. local scaleVec = tor.Size/lastsize
  750.  
  751. for i,v in pairs(oc0) do
  752.  
  753. oc0[i] = v-v.p+scaleVec*v.p
  754.  
  755. end
  756.  
  757. lastsize = tor.Size
  758.  
  759. end
  760.  
  761. lastsize = tor.Size
  762.  
  763. end
  764.  
  765. tor.Changed:connect(function(p)
  766.  
  767. if p == "Size" then
  768.  
  769. gotResized()
  770.  
  771. end
  772.  
  773. end)
  774.  
  775. gotResized()
  776.  
  777. local idle = {0,0.5,-.2,0; .05,.05,.1,.05; -.6,-1.5,.1,0;}--0,.3,0,0
  778.  
  779. local outlow = {-.7,-.2,1.8,0; .3,.05,.1,.05; .2,0,0,0}
  780.  
  781. local outhigh = {.5,-.2,1.8,0; .3,.05,.1,.05; .2,0,0,0}
  782.  
  783. local veryhigh = {.9,-.3,1.9,0; .3,.05,.1,.05; .2,0,0,0}
  784.  
  785. local flap1 = {-.3,.3,1.1,-.2; .3,.05,.1,.05; .2,-.6,0,0}
  786.  
  787. local divebomb = {0,.2,.4,-.7; .3,.05,.1,.05; 0,-.5,-.6,0}
  788.  
  789.  
  790. function setwings(tab,time)
  791.  
  792. time = time or 10
  793.  
  794. for i=1,4 do
  795.  
  796. rwing[i].DesiredAngle = tab[i]
  797.  
  798. lwing[i].DesiredAngle = tab[i]
  799.  
  800. rwing[i].MaxVelocity = math.abs(tab[i]-rwing[i].CurrentAngle)/time
  801.  
  802. lwing[i].MaxVelocity = math.abs(tab[i]-lwing[i].CurrentAngle)/time
  803.  
  804. local rcf = oc0[rwing[i]] * (tab[12+i] or CFrame.new())
  805.  
  806. local lcf = oc0[lwing[i]] * (tab[12+i] or CFrame.new())
  807.  
  808. end
  809.  
  810. for i,v in pairs(rf1) do
  811.  
  812. v.DesiredAngle = tab[9]
  813.  
  814. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  815.  
  816. end
  817.  
  818. for i,v in pairs(lf1) do
  819.  
  820. v.DesiredAngle = tab[9]
  821.  
  822. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  823.  
  824. end
  825.  
  826. for i,v in pairs(rf2) do
  827.  
  828. v.DesiredAngle = tab[10]
  829.  
  830. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  831.  
  832. end
  833.  
  834. for i,v in pairs(lf2) do
  835.  
  836. v.DesiredAngle = tab[10]
  837.  
  838. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  839.  
  840. end
  841.  
  842. for i,v in pairs(rf3) do
  843.  
  844. v.DesiredAngle = tab[11]
  845.  
  846. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  847.  
  848. end
  849.  
  850. for i,v in pairs(lf3) do
  851.  
  852. v.DesiredAngle = tab[11]
  853.  
  854. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  855.  
  856. end
  857.  
  858. end
  859.  
  860. setwings(outhigh,1)
  861.  
  862. flying = false
  863.  
  864. moving = false
  865.  
  866. for i,v in pairs(tor:GetChildren()) do
  867.  
  868. if v.ClassName:lower():match("body") then
  869.  
  870. v:Destroy()
  871.  
  872. end
  873.  
  874. end
  875.  
  876. local ctor = tor:Clone()
  877.  
  878. ctor:ClearAllChildren()
  879.  
  880. ctor.Name = "cTorso"
  881.  
  882. ctor.Transparency = 1
  883.  
  884. ctor.CanCollide = false
  885.  
  886. ctor.FormFactor = "Custom"
  887.  
  888. ctor.Size = Vector3.new(.2,.2,.2)
  889.  
  890. ctor.Parent = mod
  891.  
  892. weld(tor,ctor)
  893.  
  894. local bg = Instance.new("BodyGyro",ctor)
  895.  
  896. bg.maxTorque = Vector3.new()
  897.  
  898. bg.P = 15000
  899.  
  900. bg.D = 1000
  901.  
  902. local bv = Instance.new("BodyVelocity",ctor)
  903.  
  904. bv.maxForce = Vector3.new()
  905.  
  906. bv.P = 15000
  907.  
  908. vel = Vector3.new()
  909.  
  910. cf = CFrame.new()
  911.  
  912. flspd = 0
  913.  
  914.  
  915. keysdown = {}
  916.  
  917. keypressed = {}
  918.  
  919. ktime = {}
  920.  
  921. descendtimer = 0
  922.  
  923. jumptime = tick()
  924.  
  925. hum.Jumping:connect(function()
  926.  
  927. jumptime = tick()
  928.  
  929. end)
  930.  
  931. cam = workspace.CurrentCamera
  932.  
  933. kd = plr:GetMouse().KeyDown:connect(oc(function(key)
  934.  
  935. keysdown[key] = true
  936.  
  937. keypressed[key] = true
  938.  
  939. if key == "q" then
  940.  
  941. descendtimer = tick()
  942.  
  943. elseif key == " " and not hum.Jump then
  944.  
  945. jumptime = tick()
  946.  
  947. elseif (key == "a" or key == "d") and ktime[key] and tick()-ktime[key] < .3 and math.abs(reqrotx) < .3 then
  948.  
  949. reqrotx = key == "a" and math.pi*2 or -math.pi*2
  950.  
  951. end
  952.  
  953. ktime[key] = tick()
  954.  
  955. end))
  956.  
  957. ku = plr:GetMouse().KeyUp:connect(function(key)
  958.  
  959. keysdown[key] = false
  960.  
  961. if key == " " then
  962.  
  963. descendtimer = tick()
  964.  
  965. end
  966.  
  967. end)
  968.  
  969. function mid(a,b,c)
  970.  
  971. return math.max(a,math.min(b,c or -a))
  972.  
  973. end
  974.  
  975. function bn(a)
  976.  
  977. return a and 1 or 0
  978.  
  979. end
  980.  
  981. function gm(tar)
  982.  
  983. local m = 0
  984.  
  985. for i,v in pairs(tar:GetChildren()) do
  986.  
  987. if v:IsA("BasePart") then
  988.  
  989. m = m + v:GetMass()
  990.  
  991. end
  992.  
  993. m = m + gm(v)
  994.  
  995. end
  996.  
  997. return m
  998.  
  999. end
  1000.  
  1001. reqrotx = 0
  1002.  
  1003. local grav = 196.2
  1004.  
  1005. local con
  1006.  
  1007. con = game:GetService("RunService").Stepped:connect(oc(function()
  1008.  
  1009. --[[if not mod:IsDescendantOf(workspace) then
  1010.  
  1011. pcall(function() kd:disconnect() end)
  1012.  
  1013. pcall(function() ku:disconnect() end)
  1014.  
  1015. bg:Destroy()
  1016.  
  1017. bv:Destroy()
  1018.  
  1019. con:disconnect()
  1020.  
  1021. script:Destroy()
  1022.  
  1023. return
  1024.  
  1025. end]]
  1026.  
  1027. local obvel = tor.CFrame:vectorToObjectSpace(tor.Velocity)
  1028.  
  1029. local sspd, uspd,fspd = obvel.X,obvel.Y,obvel.Z
  1030.  
  1031. if flying then
  1032.  
  1033. local lfldir = fldir
  1034.  
  1035. fldir = cam.CoordinateFrame:vectorToWorldSpace(Vector3.new(bn(keysdown.d)-bn(keysdown.a),0,bn(keysdown.s)-bn(keysdown.w))).unit
  1036.  
  1037. local lmoving = moving
  1038.  
  1039. moving = fldir.magnitude > .1
  1040.  
  1041. if lmoving and not moving then
  1042.  
  1043. idledir = lfldir*Vector3.new(1,0,1)
  1044.  
  1045. descendtimer = tick()
  1046.  
  1047. end
  1048.  
  1049. local dbomb = fldir.Y < -.6 or (moving and keysdown["1"])
  1050.  
  1051. if moving and keysdown["0"] and lmoving then
  1052.  
  1053. fldir = (Vector3.new(lfldir.X,math.min(fldir.Y,lfldir.Y+.01)-.1,lfldir.Z)+(fldir*Vector3.new(1,0,1))*.05).unit
  1054.  
  1055. end
  1056.  
  1057. local down = tor.CFrame:vectorToWorldSpace(Vector3.new(0,-1,0))
  1058.  
  1059. local descending = (not moving and keysdown["q"] and not keysdown[" "])
  1060.  
  1061. cf = ccomplerp(cf,CFrame.new(tor.Position,tor.Position+(not moving and idledir or fldir)),keysdown["0"] and .02 or .07)
  1062.  
  1063. local gdown = not dbomb and cf.lookVector.Y < -.2 and tor.Velocity.unit.Y < .05
  1064.  
  1065. hum.PlatformStand = true
  1066.  
  1067. bg.maxTorque = Vector3.new(1,1,1)*9e5
  1068.  
  1069. local rotvel = CFrame.new(Vector3.new(),tor.Velocity):toObjectSpace(CFrame.new(Vector3.new(),fldir)).lookVector
  1070.  
  1071. 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)
  1072.  
  1073. reqrotx = reqrotx - reqrotx/10
  1074.  
  1075. bv.maxForce = Vector3.new(1,1,1)*9e4*.5
  1076.  
  1077. local anioff =(bn(keysdown[" "])-bn(keysdown["q"]))/2
  1078.  
  1079. local ani = tickwave(1.5-anioff,1)
  1080.  
  1081. 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)
  1082.  
  1083. vel = moving and cf.lookVector*flspd or Vector3.new()
  1084.  
  1085. 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))
  1086.  
  1087. setwings(moving and (gdown and outlow or dbomb and divebomb) or (descending and veryhigh or flap1),15)
  1088.  
  1089. for i=1,4 do
  1090.  
  1091. --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)
  1092.  
  1093. 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)
  1094.  
  1095. 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)
  1096.  
  1097. end
  1098.  
  1099. local hit,ray = workspace:FindPartOnRayWithIgnoreList(Ray.new(tor.Position,Vector3.new(0,-3.5+math.min(0,bv.velocity.y)/30,0)),{char})
  1100.  
  1101. if hit and down.Y < -.85 and tick()-flystart > 1 then
  1102.  
  1103. flying = false
  1104.  
  1105. hum.PlatformStand = false
  1106.  
  1107. tor.Velocity = Vector3.new()
  1108.  
  1109. end
  1110.  
  1111. else
  1112.  
  1113. bg.maxTorque = Vector3.new()
  1114.  
  1115. bv.maxForce = Vector3.new()
  1116.  
  1117. local ani = tickwave(walking and .8 or 4.5,1)
  1118.  
  1119. setwings(idle,10)
  1120.  
  1121. local x,y,z = fspd/160,uspd/700,sspd/900
  1122.  
  1123. for i=1,4 do
  1124.  
  1125. 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)
  1126.  
  1127. 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)
  1128.  
  1129. end
  1130.  
  1131. if keypressed[" "] and not flying and (tick()-jumptime > .05 and (tick()-jumptime < 3 or hum.Jump)) then
  1132.  
  1133. vel = Vector3.new(0,50,0)
  1134.  
  1135. bv.velocity = vel
  1136.  
  1137. idledir = cam.CoordinateFrame.lookVector*Vector3.new(1,0,1)
  1138.  
  1139. cf = tor.CFrame * CFrame.Angles(-.01,0,0)
  1140.  
  1141. tor.CFrame = cf
  1142.  
  1143. bg.cframe = cf
  1144.  
  1145. flystart = tick()
  1146.  
  1147. flying = true
  1148.  
  1149. end
  1150.  
  1151. end
  1152.  
  1153. keypressed = {}
  1154.  
  1155. end))
  1156.  
  1157.  
  1158.  
  1159. end
  1160.  
  1161. mouse.Button1Down:connect(function()
  1162. normpunch()
  1163. end)
  1164.  
  1165.  
  1166. supermode=false
  1167. mouse.KeyDown:connect(function(key)
  1168. local k=string.lower(key)
  1169. if attacking==true then
  1170. return
  1171. end
  1172. if k=="q" then
  1173. attacking=true
  1174. if supermode==false then
  1175. lazor()
  1176. else
  1177. SUPERlazor()
  1178. end
  1179. attacking=false
  1180. end
  1181. if k=="l" then
  1182. transition()
  1183. end
  1184. end)
  1185.  
  1186. function onChatted(msg)
  1187. if msg == "Heh." then
  1188. transition()
  1189. end
  1190. if msg == "hmph." then
  1191. SUPERlazor()
  1192. end
  1193. if msg == "ha." then
  1194. lazor()
  1195. end
  1196. if msg == "lets fly." then
  1197. fly()
  1198. end
  1199. end
  1200. plr.Chatted:connect(onChatted)
  1201.  
  1202. punch = 1
  1203. function normpunch()
  1204. if attacking==true then
  1205. return
  1206. end
  1207. dodamage=true
  1208. attacking=true
  1209. cananim=false
  1210. sound("rbxassetid://138097048",false)
  1211. if punch==1 then
  1212. for i=1,10 do
  1213. Torso.C1 = Torso.C1:lerp(CFrame.new(0, 0, 0, -0.910118103, -0.41434893, 0, 0, 0, 1, -0.41434893, 0.910118103, 0),0.3)
  1214. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.5, 1, 3.7252903e-09, 0.00116646651, 0.0136213535, -0.99990654, 0.023496937, 0.999630809, 0.0136450082, 0.999723256, -0.0235106573, 0.000845975766),0.3)
  1215. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.5, 1, 4.65661287e-10, -4.35437997e-08, 0.0874831304, 0.996165991, 0.00556585658, 0.996150553, -0.0874817744, -0.999984503, 0.00554451346, -0.000486961944),0.3)
  1216. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(0.5, 0.5, 0, 0.0391717218, -0.188973963, -0.981200516, -0.199156061, 0.960776389, -0.192991138, 0.979184568, 0.202971816, -4.2801517e-08),0.3)
  1217. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-0.312758863, 0.804995358, -0.0404221117, -0.349137038, 0.0591336042, 0.935203969, -0.937045753, -0.0294431858, -0.347962916, 0.0069590779, -0.997815788, 0.0656905994),0.3)
  1218. Head.C1 = Head.C1:lerp(CFrame.new(0, -0.5, 0, -0.957687616, 0.287809789, 0, 0, 0, 1, 0.287809789, 0.957687616, 0),0.3)
  1219. swait()
  1220. end
  1221. end
  1222.  
  1223. if punch==2 then
  1224. for i=1,10 do
  1225. swait()
  1226. Torso.C1 = Torso.C1:lerp(CFrame.new(0, 0, 0, -0.983417749, -0.116297476, 0.139156267, 0.140106976, 0, 0.990136385, -0.115150362, 0.993214428, 0.0162940882),0.3)
  1227. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.5, 0.86816901, 0, -4.32735874e-08, -0.141177684, -0.989984274, -6.17107254e-09, 0.989984274, -0.141177684, 1, 0, -4.37113883e-08),0.3)
  1228. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.5, 1.23575175, 0.176770806, -0.0336775407, -0.11687994, 0.992574871, -0.983614028, 0.179874539, -0.0121925017, -0.177113876, -0.976721108, -0.12102247),0.3)
  1229. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(0.5, 0.49999994, 0, -4.33072991e-08, -0.135659724, -0.990755498, -0.144958332, 0.98029089, -0.134226859, 0.989437759, 0.143618271, -0.0196650494),0.3)
  1230. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-0.5, 0.49999997, 0, 0.0339012295, 0.115021303, 0.992784381, 0.280674934, 0.952282727, -0.119913273, -0.959203959, 0.282714903, -4.19281356e-08),0.3)
  1231. Head.C1 = Head.C1:lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, -0.0711001009, 0.997469187, 0, 0.997469187, 0.0711001009),0.3)
  1232. end
  1233. end
  1234.  
  1235. if punch==3 then
  1236. for i=1,10 do
  1237. swait()
  1238. Torso.C1 = Torso.C1:lerp(CFrame.new(0, 0, 0, -0.93749547, 0.347997427, 0, 0, 0, 1, 0.347997427, 0.93749547, 0),0.3)
  1239. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.50000006, 1, 0, 0.0109365005, -0.0829221606, -0.996496022, -0.130298764, 0.98794055, -0.083640255, 0.991414428, 0.13075693, -4.33361009e-08),0.3)
  1240. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.49999997, 1, -3.7252903e-09, 0.114501342, 0.0127837732, 0.99334085, 5.62495939e-10, 0.999917209, -0.0128684072, -0.993423104, 0.00147345045, 0.114491865),0.3)
  1241. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(0.352809936, 1.3686024, 0.0138391852, -4.37113883e-08, 0, -1, 0.999440074, -0.0334585831, -4.36869136e-08, -0.0334585831, -0.999440074, 1.4625211e-09),0.3)
  1242. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-0.5, 0.5, 0, -4.33629381e-08, 0.126015082, 0.992028356, 0.172522247, 0.97715348, -0.124125555, -0.985005617, 0.171146959, -0.0217404477),0.3)
  1243. Head.C1 = Head.C1:lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, -0.07533779, 0.997158051, 0, 0.997158051, 0.07533779),0.3)
  1244. end
  1245. end
  1246. if punch~=3 then
  1247. punch=punch+1
  1248. else
  1249. punch=1
  1250. end
  1251. cananim=true
  1252. dodamage=false
  1253. attacking=false
  1254. end
  1255.  
  1256.  
  1257.  
  1258. ---transiton
  1259. function transition()
  1260. if supermode==false then
  1261.  
  1262.  
  1263. cananim=false
  1264. attacking=true
  1265. local stord = false
  1266. spawn(function()
  1267. wait(3)
  1268. stord=true
  1269. end)
  1270. local ParticleEmitter0 = Instance.new("ParticleEmitter")
  1271. ParticleEmitter0.Parent = torso
  1272. ParticleEmitter0.Transparency = NumberSequence.new(0.20000000298023,0.20000000298023)
  1273. ParticleEmitter0.Size = NumberSequence.new(3.2240438461304,1.0928964614868,3.7158470153809,0)
  1274. ParticleEmitter0.LightEmission = 1
  1275. ParticleEmitter0.Color = ColorSequence.new(BrickColor.new("Royal purple").Color,BrickColor.new("Toothpaste").Color)
  1276. ParticleEmitter0.Texture = "http://www.roblox.com/asset/?id=232918622"
  1277. ParticleEmitter0.Lifetime = NumberRange.new(3)
  1278. ParticleEmitter0.Rate = 1000
  1279. ParticleEmitter0.VelocitySpread = 180
  1280. repeat
  1281. Torso.C1 = Torso.C1:lerp(CFrame.new(0, 0.787846208, 0.138918549, -1, 0, 0, 0, -0.173648179, 0.98480773, 0, 0.98480773, 0.173648179),0.2)
  1282. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.45286727, 0.316941619, 0.628786147, -4.36354597e-08, -0.058915928, -0.998262942, 0.21313341, 0.975326002, -0.0575622357, 0.977023065, -0.21276319, 0.0125569087),0.2)
  1283. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.5, 0.627124608, -0.0240803957, -4.37113883e-08, 0, 1, 0.551679194, 0.834056437, 2.4114664e-08, -0.834056437, 0.551679194, -3.6457763e-08),0.2)
  1284. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(0.5, 0.5, 0, 0.774880886, 0.296248376, -0.558387458, 0.52156949, 0.199403673, 0.829580307, 0.357106328, -0.934063733, -1.56096132e-08),0.2)
  1285. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-0.5, 0.5, 0, -0.00304316962, 0.0175396204, 0.999841511, -0.170919135, 0.985124171, -0.0178016629, -0.985280335, -0.170946226, -4.30679705e-08),0.2)
  1286. Head.C1 = Head.C1:lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, -0.362809777, 0.931863308, 0, 0.931863308, 0.362809777),0.2)
  1287. swait()
  1288. until stord==true
  1289. sound("rbxassetid://245537790",false)
  1290. ParticleEmitter0.Speed=NumberRange.new(50)
  1291. local effecto = Instance.new("ParticleEmitter",cha)
  1292. effecto.LightEmission = 1
  1293. effecto.Texture = "rbxassetid://296874871"
  1294. effecto.Color = ColorSequence.new(Color3.new(1,1,1), Color3.new(0,1,1), Color3.new(.1,0,1))
  1295. effecto.Rate = 300
  1296. effecto.EmissionDirection = "Back"
  1297. effecto.LockedToPart = false
  1298. effecto.Acceleration = Vector3.new(0,2,2)
  1299. effecto.Transparency = NumberSequence.new(0,0)
  1300. effecto.Lifetime = NumberRange.new(0.5,1)
  1301. effecto.Size = NumberSequence.new(1,0)
  1302. effecto.Speed = NumberRange.new(5)
  1303. effecto.VelocitySpread = 0
  1304. effecto.Name = "Chap"
  1305. effecto.RotSpeed = NumberRange.new(0,0)
  1306.  
  1307.  
  1308. local ef2 = effecto:Clone()
  1309. ef2.Parent = cha2
  1310. local ef3 = effecto:Clone()
  1311. ef3.Parent = cha3
  1312. local ef4 = effecto:Clone()
  1313. ef4.Parent = cha4
  1314. local ef5 = effecto:Clone()
  1315. ef5.Parent = cha5
  1316. local ef6 = effecto:Clone()
  1317. ef6.Parent = cha6
  1318. for i=1,90 do
  1319. Torso.C1 = Torso.C1:lerp(CFrame.new(0, -1.06972265, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),0.2)
  1320. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, -0.0906665474, 0.995881319, 3.96316047e-09, 0.995881319, 0.0906665474, -4.35313545e-08),0.2)
  1321. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0.0595862567, 0.998223186, 2.60459809e-09, -0.998223186, 0.0595862567, -4.36337224e-08),0.2)
  1322. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(0.5, 0.5, 0, -4.34208935e-08, -0.115096748, -0.993354261, -5.0310387e-09, 0.993354261, -0.115096748, 1, 0, -4.37113883e-08),0.2)
  1323. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-0.5, 0.5, 0, -4.36014211e-08, 0.0708893314, 0.997484207, 3.0986711e-09, 0.997484207, -0.0708893314, -1, 0, -4.37113883e-08),0.2)
  1324. Head.C1 = Head.C1:lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.249942318, 0.968260705, 0, 0.968260705, -0.249942318),0.2)
  1325. swait()
  1326. end
  1327. ParticleEmitter0.Enabled=false
  1328. supermode=true
  1329. cananim=true
  1330. attacking=false
  1331. end
  1332. end
  1333.  
  1334.  
  1335.  
  1336.  
  1337.  
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343.  
  1344. function swait(t)
  1345. if t == nil or t == 0 then
  1346. game:service('RunService').Stepped:wait(0)
  1347. return true
  1348. else
  1349. for i = 0, t do
  1350. game:service('RunService').Stepped:wait(0)
  1351. end
  1352. return true
  1353. end
  1354. end
  1355.  
  1356. function scream()
  1357. sound("rbxassetid://444895479",false,5.3509586219885250102)
  1358. cananim = false
  1359. for i=0,1.5, 0.1 do
  1360. swait()
  1361. end
  1362.  
  1363. attacking=true
  1364. for i=0,1.5, 0.1 do
  1365. swait()
  1366. end
  1367. wait()
  1368. cananim = true
  1369. attacking=false
  1370. end
  1371.  
  1372.  
  1373. spawn(function()
  1374. while swait() do
  1375. if animpose=="Idle" then
  1376. for i=0,0.1,0.0025 do
  1377. if animpose == "Idle" and cananim then
  1378. swait()
  1379. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(0.500000238, 0.500000238, -2.38418579e-07, 0.000574484526, -0.0482845455, -0.998833477, -0.00805476494, 0.998800993, -0.0482876077, 0.999967396, 0.0080731092, 0.000184875054),i)
  1380. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-0.50000006, 0.500000238, 0, -0.000810533762, 0.0540908612, 0.998535693, -0.00984518789, 0.998487175, -0.0540962256, -0.999951184, -0.00987461861, -0.000276772887),i)
  1381. else
  1382. break
  1383. end
  1384. end
  1385. for i=0,0.1,0.0025 do
  1386. if animpose == "Idle" and cananim then
  1387. swait()
  1388. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(0.50000006, 0.50000006, -9.47312119e-16, -4.35179714e-08, -0.0939683169, -0.99557513, -4.10748546e-09, 0.99557513, -0.0939683169, 1, 0, -4.37113883e-08),i)
  1389. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-0.5, 0.5, -1.77635684e-15, -4.34464624e-08, 0.109930925, 0.993939221, 4.80523354e-09, 0.993939221, -0.109930925, -1, 0, -4.37113883e-08),i)
  1390. else
  1391. break
  1392. end
  1393. end
  1394. end
  1395. end
  1396. end)
  1397.  
  1398. while swait() do
  1399. num = num + 0.05
  1400. local sin = math.sin(num)
  1401. if animpose == "Falling" and cananim then
  1402. Torso.C1 = Torso.C1:lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, -0.089640595, 0.995974183, 0, 0.995974183, 0.089640595),0.2)
  1403. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.5, 0.940049231, 0.240459353, -4.37113883e-08, 0, -1, 0.0583860278, 0.998294055, -2.55213428e-09, 0.998294055, -0.0583860278, -4.36368204e-08),0.2)
  1404. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0.144062787, 0.989568532, 6.29718455e-09, -0.989568532, 0.144062787, -4.32554152e-08),0.2)
  1405. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(0.5, 0.635436773, 0, -4.28449951e-08, -0.198112398, -0.98017925, -8.65976801e-09, 0.98017925, -0.198112398, 1, 0, -4.37113883e-08),0.2)
  1406. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-0.5, 0.599987805, 0, -4.26205062e-08, 0.222013503, 0.975043535, 9.70451808e-09, 0.975043535, -0.222013503, -1, 0, -4.37113883e-08),0.2)
  1407. Head.C1 = Head.C1:lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, -0.231759518, 0.972773135, 0, 0.972773135, 0.231759518),0.2)
  1408. end
  1409.  
  1410.  
  1411. if animpose == "Idle" and cananim then
  1412. for i=0,0.1,0.001 do
  1413. if animpose == "Idle" and cananim then
  1414. swait()
  1415. Torso.C1 = Torso.C1:lerp(CFrame.new(0, 0.200000048, 0, -0.98480767, -0.173648626, 0, 0, 0, 1, -0.173648626, 0.98480767, 0),i)
  1416. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.506504774, 0.77988106, 0.0818042755, 0.00300081098, -0.0723684728, -0.997373462, -0.186295643, 0.979876935, -0.0716594532, 0.982489169, 0.186021373, -0.0105415061),i)
  1417. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.485123575, 0.800115585, 0.135903358, -0.000153154135, -0.00734659936, 0.999972999, -0.0196102634, 0.999780715, 0.0073421835, -0.999807715, -0.0196086094, -0.000297189312),i)
  1418. Head.C1 = Head.C1:lerp(CFrame.new(0, -0.5, 0, -0.98480767, 0.173648402, 0, 0, 0, 1, 0.173648402, 0.98480767, 0),i)
  1419. i=i/2
  1420. else
  1421. break
  1422. end
  1423. end
  1424. for i=0,0.1,0.001 do
  1425. if animpose == "Idle" and cananim then
  1426. swait()
  1427. Torso.C1 = Torso.C1:lerp(CFrame.new(0, 0, 0, -0.98480767, -0.173648626, 0, 0, 0, 1, -0.173648626, 0.98480767, 0),i)
  1428. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.49999994, 1, 0, -4.3619707e-08, -0.0647336245, -0.997902572, -0.143231794, 0.98761338, -0.0640661567, 0.989689171, 0.142931372, -0.00927195605),i)
  1429. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.5, 1.00000012, 0.0391067117, -4.37113883e-08, 0, 1, -0.0612497553, 0.998122454, -2.67731193e-09, -0.998122454, -0.0612497553, -4.3629317e-08),i)
  1430. Head.C1 = Head.C1:lerp(CFrame.new(0, -0.5, 0, -0.98480767, 0.173648402, 0, 0, 0, 1, 0.173648402, 0.98480767, 0),i)
  1431. i=i/2
  1432. else
  1433. break
  1434. end
  1435. end
  1436. end
  1437. if animpose == "Running" and cananim then
  1438. for i = 0, 0.25, 0.01 do
  1439. if animpose == "Running" and cananim then
  1440. Torso.C1 = Torso.C1:lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, -0.0358745977, 0.99935627, 0, 0.99935627, 0.0358745977),i)
  1441. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.5, 0.999999821, 8.94069672e-08, -4.37113883e-08, 0, -1, 0.342020363, 0.939692557, -1.49501851e-08, 0.939692557, -0.342020363, -4.10752676e-08),i)
  1442. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.5, 1.00000024, 5.96046448e-08, -4.37113883e-08, 0, 1, 0.500000179, 0.866025269, 2.18557012e-08, -0.866025269, 0.500000179, -3.78551661e-08),i)
  1443. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(0.5, 0.5, -2.98023224e-08, -4.37113883e-08, 0, -1, -0.5, 0.866025388, 2.18556941e-08, 0.866025388, 0.5, -3.78551732e-08),i)
  1444. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-0.5, 0.5, -1.49011612e-08, -4.37113883e-08, 0, 1, -0.5, 0.866025388, -2.18556941e-08, -0.866025388, -0.5, -3.78551732e-08),i)
  1445. Head.C1 = Head.C1:lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, -0.106743492, 0.994286597, 0, 0.994286597, 0.106743492),i)
  1446. swait()
  1447. i=i/i*1.5
  1448. else
  1449. break
  1450. end
  1451. end
  1452. for i = 0, 0.25, 0.01 do
  1453. if animpose == "Running" and cananim then
  1454. Torso.C1 = Torso.C1:lerp(CFrame.new(0, 0, 0, -0.999985278, 0, -0.00542885857, -0.00542835938, -0.0135572571, 0.999893367, -7.36004295e-05, 0.99990809, 0.0135570578),i)
  1455. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.5, 0.999999821, -1.1920929e-07, -4.37113883e-08, 0, -1, -0.499999791, 0.866025567, 2.18556853e-08, 0.866025567, 0.499999791, -3.78551803e-08),i)
  1456. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.5, 1.00000012, -2.38418579e-07, -4.37113883e-08, 0, 1, -0.342020005, 0.939692616, -1.49501691e-08, -0.939692616, -0.342020005, -4.10752676e-08),i)
  1457. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(0.5, 0.483990371, 0.00582697988, -4.37113883e-08, 0, -1, 0.57357651, 0.819151998, -2.50718255e-08, 0.819151998, -0.57357651, -3.58062699e-08),i)
  1458. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-0.5, 0.49999997, -2.98023224e-08, -4.37113883e-08, 0, 1, 0.500000179, 0.866025329, 2.18557012e-08, -0.866025329, 0.500000179, -3.78551697e-08),i)
  1459. Head.C1 = Head.C1:lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, -0.103604339, 0.994618595, 0, 0.994618595, 0.103604339),i)
  1460. swait()
  1461. i=i/i*1.5
  1462. else
  1463. break
  1464. end
  1465. end
  1466. end
  1467.  
  1468. if animpose == "Jumping" and cananim then
  1469. Torso.C1 = Torso.C1:lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, -0.082511276, 0.996590137, 0, 0.996590137, 0.082511276),0.2)
  1470. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.495160788, 0.605178833, 0.315436631, 0.00363327051, -0.0117048975, -0.999924898, -0.296433508, 0.95497489, -0.012255826, 0.955046594, 0.296455771, -4.17464108e-08),0.2)
  1471. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0.10612049, 0.994353294, 4.63867389e-09, -0.994353294, 0.10612049, -4.34645635e-08),0.2)
  1472. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(0.5, 0.5, 0, -4.36747598e-08, -0.0409301594, -0.999162018, -1.78911408e-09, 0.999162018, -0.0409301594, 1, 0, -4.37113883e-08),0.2)
  1473. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-0.5, 0.5, 0, -4.36556142e-08, 0.0504997671, 0.998724043, 2.20741492e-09, 0.998724043, -0.0504997671, -1, 0, -4.37113883e-08),0.2)
  1474. Head.C1 = Head.C1:lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.106113546, 0.99435401, 0, 0.99435401, -0.106113546),0.2)
  1475. end
  1476. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement