The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
FE Wings *READ SCRIPT* script pastebin roblox
By FE Wings *READ SCRIPT* on 2024-09-23 08:00 am | Syntax: LUA | Views: 7



New Script | Raw | Show/Hide line no. | Copy text to clipboard
  1. --Games that it works with:
  2. --https://www.roblox.com/games/1662219031/Life-in-Paradise
  3. --https://www.roblox.com/games/383793228/Adopt-and-Raise-a-Baby
  4. --Might also work in some unknown games
  5. --Controls:
  6. --Jump Two Time to fly and press F to start flying
  7. --Down Press/Hold Q
  8. --Up Hold/Press Spacebar
  9. --Wings Spin Press A Two Time
  10. --Wings Spin Press D Two Time
  11.  
  12. local WingParts = {}
  13.  
  14. local SETHATS = {}
  15. local Player = game.Players.LocalPlayer
  16. local WEARITEMTHING = game:GetService("ReplicatedStorage"):FindFirstChild("WearItem")
  17. local NotificationBindable = Instance.new("BindableFunction")
  18. local TweenService = game:GetService("TweenService")
  19. local MakeTween = function(timetack,easingstyle,easingdirection,repeats,flipflop)
  20.         local newtween = TweenInfo.new(
  21.                 timetack,
  22.                 easingstyle,
  23.                 easingdirection,
  24.                 repeats,
  25.                 flipflop,
  26.                 0
  27.         )
  28.         return newtween
  29. end
  30. local Msgreq = function(Title,Text,Duration,Button1Text,Button2Text)
  31.         game.StarterGui:SetCore("SendNotification", {
  32.                 Title = Title;
  33.                 Text = Text;
  34.                 Icon = "";
  35.                 Duration = Duration;
  36.                 Button1 = Button1Text;
  37.                 Button2 = Button2Text;
  38.                 Callback = NotificationBindable;
  39.         })
  40. end
  41.  
  42.  
  43.  
  44. function StickParts(Part0,Part1)
  45.         local AlignPos = Instance.new('AlignPosition', Part1)
  46.         AlignPos.ApplyAtCenterOfMass = true;
  47.         AlignPos.MaxForce = 67752;
  48.         AlignPos.MaxVelocity = math.huge/9e110;
  49.         AlignPos.ReactionForceEnabled = false;
  50.         AlignPos.Responsiveness = 200;
  51.         AlignPos.RigidityEnabled = false;
  52.         local AlignOri = Instance.new('AlignOrientation', Part1)
  53.         AlignOri.MaxAngularVelocity = math.huge/9e110;
  54.         AlignOri.MaxTorque = 67752;
  55.         AlignOri.PrimaryAxisOnly = false;
  56.         AlignOri.ReactionTorqueEnabled = false;
  57.         AlignOri.Responsiveness = 200;
  58.         AlignOri.RigidityEnabled = false;
  59.         local AttachmentA=Instance.new('Attachment',Part1)
  60.         local AttachmentB=Instance.new('Attachment',Part0)
  61.         local AttachmentC=Instance.new('Attachment',Part1)
  62.         local AttachmentD=Instance.new('Attachment',Part0)
  63.         AlignPos.Attachment1 = AttachmentA;
  64.         AlignPos.Attachment0 = AttachmentB;
  65.         AlignOri.Attachment1 = AttachmentC;
  66.         AlignOri.Attachment0 = AttachmentD;
  67.         spawn(function()
  68.                 while true do
  69.                         wait()
  70.                         Part0.Velocity = Vector3.new(0,35,0)
  71.                 end
  72.         end)
  73.  
  74. end
  75. function roundVector(vector, unit)
  76.         return vector - Vector3.new(vector.X%unit, vector.Y%unit, vector.Z%unit)
  77. end
  78.  
  79. local GenerateHats = function(amount)
  80.         Msgreq("Build Hub","Generating Parts (May take a while)",2)
  81.         local AM = 0
  82.         S = Player.Character.DescendantAdded:Connect(function(thing)
  83.                 if thing:IsA("Accessory") then
  84.  
  85.                         thing:WaitForChild("Handle")
  86.                         thing.Handle:FindFirstChildWhichIsA("SpecialMesh")
  87.                         thing.Handle:FindFirstChildWhichIsA("Weld")
  88.                         AM = AM + 1
  89.                         table.insert(SETHATS,(#SETHATS)+1,thing.Handle)
  90.                 end
  91.         end)
  92.         repeat
  93.                 game:GetService("RunService").Stepped:wait()  
  94.                 local args = {
  95.                         [1] = {
  96.                                 [1] = "Wear",
  97.                                 [2] = "11297746",
  98.                                 [3] = "Hats"
  99.                         }
  100.                 }
  101.                 WEARITEMTHING:FireServer(unpack(args))
  102.         until AM >= amount
  103.         S:Disconnect()
  104.         return "done~"
  105. end
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112. repeat wait() until GenerateHats(50) == "done~"
  113. for i,v in next, game:GetService("Players").LocalPlayer.Character:GetDescendants() do
  114.         if v:IsA("BasePart") and v.Name ~="HumanoidRootPart" then
  115.                 game:GetService("RunService").Heartbeat:connect(function()
  116.                         v.Velocity = Vector3.new(45,45,51)
  117.                 end)
  118.         end
  119. end
  120. script.Parent = nil
  121.  
  122. function fly()
  123. loadstring(game:HttpGet("https://pastebin.com/raw/jwuBjkZA", true))()
  124.         for i,v in pairs(script:GetChildren()) do
  125.  
  126.                 pcall(function() v.Value = "" end)
  127.  
  128.                 game:GetService("Debris"):AddItem(v,.1)
  129.  
  130.         end
  131.  
  132.         function weld(p0,p1,c0,c1,par)
  133.  
  134.                 local w = Instance.new("Weld",p0 or par)
  135.  
  136.                 w.Part0 = p0
  137.  
  138.                 w.Part1 = p1
  139.  
  140.                 w.C0 = c0 or CFrame.new()
  141.  
  142.                 w.C1 = c1 or CFrame.new()
  143.  
  144.                 return w
  145.  
  146.         end
  147.  
  148.         local motors = {}
  149.  
  150.         function motor(p0,p1,c0,c1,des,vel,par)
  151.  
  152.                 local w = Instance.new("Motor6D",p0 or par)
  153.  
  154.                 w.Part0 = p0
  155.  
  156.                 w.Part1 = p1
  157.  
  158.                 w.C0 = c0 or CFrame.new()
  159.  
  160.                 w.C1 = c1 or CFrame.new()
  161.  
  162.                 w.MaxVelocity = tonumber(vel) or .05
  163.  
  164.                 w.DesiredAngle = tonumber(des) or 0
  165.  
  166.                 return w
  167.  
  168.         end
  169.  
  170.         function lerp(a,b,c)
  171.  
  172.                 return a+(b-a)*c
  173.  
  174.         end
  175.  
  176.         function clerp(c1,c2,al)
  177.  
  178.                 local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  179.  
  180.                 local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  181.  
  182.                 for i,v in pairs(com1) do
  183.  
  184.                         com1[i] = lerp(v,com2[i],al)
  185.  
  186.                 end
  187.  
  188.                 return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  189.  
  190.         end
  191.  
  192.         function ccomplerp(c1,c2,al)
  193.  
  194.                 local com1 = {c1:components()}
  195.  
  196.                 local com2 = {c2:components()}
  197.  
  198.                 for i,v in pairs(com1) do
  199.  
  200.                         com1[i] = lerp(v,com2[i],al)
  201.  
  202.                 end
  203.  
  204.                 return CFrame.new(unpack(com1))
  205.  
  206.         end
  207.  
  208.         function tickwave(time,length,offset)
  209.  
  210.                 return (math.abs((tick()+(offset or 0))%time-time/2)*2-time/2)/time/2*length
  211.  
  212.         end
  213.  
  214.         function invcol(c)
  215.  
  216.                 c = c.Color
  217.  
  218.                 return BrickColor.new(Color3.new(1-c.b,1-c.g,1-c.r))
  219.  
  220.         end
  221.  
  222.         local oc = oc or function(...) return ... end
  223.  
  224.         local plr = game.Players.LocalPlayer
  225.  
  226.         local char = plr.Character
  227.  
  228.         local tor = char.Torso
  229.  
  230.         local hum = char.Humanoid
  231.  
  232.         hum.PlatformStand = false
  233.  
  234.         pcall(function()
  235.  
  236.                 char.Wings:Destroy()
  237.  
  238.         end)
  239.  
  240.         pcall(function()
  241.  
  242.                 char.Angel:Destroy() -- hat
  243.  
  244.         end)
  245.  
  246.         local mod = Instance.new("Model",char)
  247.  
  248.         mod.Name = "Wings"
  249.  
  250.  
  251.         local topcolor = invcol(char.Torso.BrickColor)
  252.  
  253.         local feacolor = char.Torso.BrickColor
  254.  
  255.         local ptrans = 0
  256.  
  257.         local pref = 0
  258.  
  259.         local fire = false
  260.  
  261.         local fmcol = Color3.new()
  262.  
  263.         local fscol = Color3.new()
  264.  
  265.  
  266.         local part = Instance.new("Part")
  267.  
  268.         part.FormFactor = "Custom"
  269.  
  270.         part.Size = Vector3.new(1,1,1)--1,1,1)
  271.  
  272.         part.TopSurface,part.BottomSurface = 0,0
  273.  
  274.         part.CanCollide = false
  275.  
  276.         part.BrickColor = topcolor
  277.  
  278.         part.Transparency = 1
  279.  
  280.         part.Reflectance = pref
  281.  
  282.         local ef = Instance.new("Fire",fire and part or nil)
  283.  
  284.         ef.Size = .15
  285.  
  286.         ef.Color = fmcol or Color3.new()
  287.  
  288.         ef.SecondaryColor = fscol or Color3.new()
  289.  
  290.         part:BreakJoints()
  291.  
  292.  
  293.         function newpart()
  294.  
  295.                 local clone = part:Clone()
  296.  
  297.                 clone.Parent = mod
  298.  
  299.                 clone:BreakJoints()
  300.                 return clone
  301.         end
  302.  
  303.         local feath = newpart()
  304.  
  305.         feath.BrickColor = feacolor
  306.  
  307.         feath.Transparency = 1
  308.  
  309.         local Can = true
  310.         function newfeather()
  311.                 local clone = feath:Clone()
  312.  
  313.                 clone.Parent = mod
  314.  
  315.                 clone:BreakJoints()
  316.                 table.insert(WingParts,(#WingParts)+1,clone)
  317.                 if Can == true then
  318.                         if SETHATS[1]:FindFirstChildWhichIsA("SpecialMesh") ~= nil then
  319.                                 SETHATS[1]:FindFirstChildWhichIsA("SpecialMesh"):Destroy()
  320.                         end
  321.                         SETHATS[1]:FindFirstChildWhichIsA("Weld"):Destroy()
  322.                         StickParts(SETHATS[1],clone)
  323.                         SETHATS[1].Parent = workspace
  324.                         table.remove(SETHATS,1)
  325.                         Can = true
  326.                 else
  327.                         Can = true
  328.                 end
  329.                 print(#WingParts)
  330.                 return clone
  331.         end
  332.  
  333.  
  334.         ---------- RIGHT WING
  335.  
  336.         local r1 = newpart()
  337.  
  338.         r1.Size = Vector3.new(1,1,1)--.3,1.5,.3)*1.2
  339.  
  340.         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)
  341.  
  342.         local r2 = newpart()
  343.  
  344.         r2.Size = Vector3.new(1,1,1)--.4,1.8,.4)*1.2
  345.  
  346.         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)
  347.  
  348.         local r3 = newpart()
  349.  
  350.         r3.Size = Vector3.new(1,1,1)--.3,2.2,.3)*1.2
  351.  
  352.         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)
  353.  
  354.         local r4 = newpart()
  355.  
  356.         r4.Size = Vector3.new(1,1,1)--.25,1.2,.25)*1.2
  357.  
  358.         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)
  359.  
  360.         local feather = newfeather()
  361.  
  362.  
  363.  
  364.  
  365.  
  366.         weld(r4,feather,CFrame.new(-.1,-.3,0),CFrame.new(0,-1.5,0))
  367.  
  368.         feather = newfeather()
  369.  
  370.  
  371.  
  372.         feather.Size = Vector3.new(1,1,1)--.4,2.3,.3)
  373.  
  374.         weld(r4,feather,CFrame.new(.1,-.1,0) * CFrame.Angles(0,math.random()*.1,0),CFrame.new(0,-1.1,0))
  375.  
  376.         feather = newfeather()
  377.  
  378.  
  379.  
  380.         feather.Size = Vector3.new(1,1,1)--.35,2.2,.25)
  381.  
  382.         weld(r4,feather,CFrame.new(.1,-.3,0) * CFrame.Angles(0,math.random()*.1,math.rad(-10)),CFrame.new(0,-1.1,0))
  383.  
  384.         local rf3 = {}
  385.  
  386.         for i=0,7 do
  387.  
  388.                 feather = newfeather()
  389.  
  390.  
  391.  
  392.                 feather.Size = Vector3.new(1,1,1)--.45,2.2,.35)
  393.  
  394.                 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)))
  395.  
  396.         end
  397.  
  398.         local rf2 = {}
  399.  
  400.         for i=0,6 do
  401.  
  402.                 feather = newfeather()
  403.  
  404.  
  405.  
  406.                 feather.Size = Vector3.new(1,1,1)--.45,2.2-i*.08,.3)
  407.  
  408.                 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)))
  409.  
  410.         end
  411.  
  412.         local rf1 = {}
  413.  
  414.         for i=0,6 do
  415.  
  416.                 feather = newfeather()
  417.  
  418.  
  419.  
  420.                 feather.Size = Vector3.new(1,1,1)--.37,1.65-i*.06,.25)
  421.  
  422.                 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)))
  423.  
  424.         end
  425.  
  426.         ---------- LEFT WING
  427.  
  428.         local l1 = newpart()
  429.  
  430.         l1.Size = Vector3.new(1,1,1)--.3,1.5,.3)*1.2
  431.  
  432.         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)
  433.  
  434.         local l2 = newpart()
  435.  
  436.         l2.Size = Vector3.new(1,1,1)--.4,1.8,.4)*1.2
  437.  
  438.         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)
  439.  
  440.         local l3 = newpart()
  441.  
  442.         l3.Size = Vector3.new(1,1,1)--.3,2.2,.3)*1.2
  443.  
  444.         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)
  445.  
  446.         local l4 = newpart()
  447.  
  448.         l4.Size = Vector3.new(1,1,1)--.25,1.2,.25)*1.2
  449.  
  450.         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)
  451.  
  452.         local feather = newfeather()
  453.  
  454.  
  455.  
  456.  
  457.  
  458.         weld(l4,feather,CFrame.new(-.1,-.3,0),CFrame.new(0,-1.5,0))
  459.  
  460.         feather = newfeather()
  461.  
  462.  
  463.  
  464.         feather.Size = Vector3.new(1,1,1)--.4,2.3,.3)
  465.  
  466.         weld(l4,feather,CFrame.new(.1,-.1,0) * CFrame.Angles(0,math.random()*.1,0),CFrame.new(0,-1.1,0))
  467.  
  468.         feather = newfeather()
  469.  
  470.  
  471.  
  472.         feather.Size = Vector3.new(1,1,1)--.35,2.2,.25)
  473.  
  474.         weld(l4,feather,CFrame.new(.1,-.3,0) * CFrame.Angles(0,math.random()*.1,math.rad(-10)),CFrame.new(0,-1.1,0))
  475.  
  476.         local lf3 = {}
  477.  
  478.         for i=0,7 do
  479.  
  480.                 feather = newfeather()
  481.  
  482.  
  483.  
  484.                 feather.Size = Vector3.new(1,1,1)--.45,2.2,.35)
  485.  
  486.                 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)))
  487.  
  488.         end
  489.  
  490.         local lf2 = {}
  491.  
  492.         for i=0,6 do
  493.  
  494.                 feather = newfeather()
  495.  
  496.  
  497.  
  498.                 feather.Size = Vector3.new(1,1,1)--.45,2.2-i*.08,.3)
  499.  
  500.                 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)))
  501.  
  502.         end
  503.  
  504.         local lf1 = {}
  505.  
  506.         for i=0,6 do
  507.  
  508.                 feather = newfeather()
  509.  
  510.  
  511.  
  512.                 feather.Size = Vector3.new(1,1,1)--.37,1.65-i*.06,.25)
  513.  
  514.                 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)))
  515.  
  516.         end
  517.  
  518.         local rwing = {rm1,rm2,rm3,rm4}
  519.  
  520.         local lwing = {lm1,lm2,lm3,lm4}
  521.  
  522.         local oc0 = {}
  523.  
  524.         for i,v in pairs(rwing) do
  525.  
  526.                 oc0[v] = v.C0
  527.  
  528.         end
  529.  
  530.         for i,v in pairs(lwing) do
  531.  
  532.                 oc0[v] = v.C0
  533.  
  534.         end
  535.  
  536.         function gotResized()
  537.  
  538.                 if lastsize then
  539.  
  540.                         if tor.Size == lastsize then return end -- This shouldn't happen?
  541.  
  542.                         local scaleVec = tor.Size/lastsize
  543.  
  544.                         for i,v in pairs(oc0) do
  545.  
  546.                                 oc0[i] = v-v.p+scaleVec*v.p
  547.  
  548.                         end
  549.  
  550.                         lastsize = tor.Size
  551.  
  552.                 end
  553.  
  554.                 lastsize = tor.Size
  555.  
  556.         end
  557.  
  558.         tor.Changed:connect(function(p)
  559.  
  560.                 if p == "Size" then
  561.  
  562.                         gotResized()
  563.  
  564.                 end
  565.  
  566.         end)
  567.  
  568.         gotResized()
  569.  
  570.         local idle = {0,0.5,-.2,0; .05,.05,.1,.05; -.6,-1.5,.1,0;}--0,.3,0,0
  571.  
  572.         local outlow = {-.7,-.2,1.8,0; .3,.05,.1,.05; .2,0,0,0}
  573.  
  574.         local outhigh = {.5,-.2,1.8,0; .3,.05,.1,.05; .2,0,0,0}
  575.  
  576.         local veryhigh = {.9,-.3,1.9,0; .3,.05,.1,.05; .2,0,0,0}
  577.  
  578.         local flap1 = {-.3,.3,1.1,-.2; .3,.05,.1,.05; .2,-.6,0,0}
  579.  
  580.         local divebomb = {0,.2,.4,-.7; .3,.05,.1,.05; 0,-.5,-.6,0}
  581.  
  582.  
  583.         function setwings(tab,time)
  584.  
  585.                 time = time or 10
  586.  
  587.                 for i=1,4 do
  588.  
  589.                         rwing[i].DesiredAngle = tab[i]
  590.  
  591.                         lwing[i].DesiredAngle = tab[i]
  592.  
  593.                         rwing[i].MaxVelocity = math.abs(tab[i]-rwing[i].CurrentAngle)/time
  594.  
  595.                         lwing[i].MaxVelocity = math.abs(tab[i]-lwing[i].CurrentAngle)/time
  596.  
  597.                         local rcf = oc0[rwing[i]] * (tab[12+i] or CFrame.new())
  598.  
  599.                         local lcf = oc0[lwing[i]] * (tab[12+i] or CFrame.new())
  600.  
  601.                 end
  602.  
  603.                 for i,v in pairs(rf1) do
  604.  
  605.                         v.DesiredAngle = tab[9]
  606.  
  607.                         v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  608.  
  609.                 end
  610.  
  611.                 for i,v in pairs(lf1) do
  612.  
  613.                         v.DesiredAngle = tab[9]
  614.  
  615.                         v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  616.  
  617.                 end
  618.  
  619.                 for i,v in pairs(rf2) do
  620.  
  621.                         v.DesiredAngle = tab[10]
  622.  
  623.                         v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  624.  
  625.                 end
  626.  
  627.                 for i,v in pairs(lf2) do
  628.  
  629.                         v.DesiredAngle = tab[10]
  630.  
  631.                         v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  632.  
  633.                 end
  634.  
  635.                 for i,v in pairs(rf3) do
  636.  
  637.                         v.DesiredAngle = tab[11]
  638.  
  639.                         v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  640.  
  641.                 end
  642.  
  643.                 for i,v in pairs(lf3) do
  644.  
  645.                         v.DesiredAngle = tab[11]
  646.  
  647.                         v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  648.  
  649.                 end
  650.  
  651.         end
  652.  
  653.         setwings(outhigh,1)
  654.  
  655.         flying = false
  656.  
  657.         moving = false
  658.  
  659.         for i,v in pairs(tor:GetChildren()) do
  660.  
  661.                 if v.ClassName:lower():match("body") then
  662.  
  663.                         v:Destroy()
  664.  
  665.                 end
  666.  
  667.         end
  668.  
  669.         local ctor = tor:Clone()
  670.  
  671.         ctor:ClearAllChildren()
  672.  
  673.         ctor.Name = "cTorso"
  674.  
  675.         ctor.Transparency = 1
  676.  
  677.         ctor.CanCollide = false
  678.  
  679.         ctor.FormFactor = "Custom"
  680.  
  681.         ctor.Size = Vector3.new(1,1,1)--.2,.2,.2)
  682.  
  683.         ctor.Parent = mod
  684.  
  685.         weld(tor,ctor)
  686.  
  687.         local bg = Instance.new("BodyGyro",ctor)
  688.  
  689.         bg.maxTorque = Vector3.new()
  690.  
  691.         bg.P = 15000
  692.  
  693.         bg.D = 1000
  694.  
  695.         local bv = Instance.new("BodyVelocity",ctor)
  696.  
  697.         bv.maxForce = Vector3.new()
  698.  
  699.         bv.P = 15000
  700.  
  701.         vel = Vector3.new()
  702.  
  703.         cf = CFrame.new()
  704.  
  705.         flspd = 0
  706.  
  707.  
  708.         keysdown = {}
  709.  
  710.         keypressed = {}
  711.  
  712.         ktime = {}
  713.  
  714.         descendtimer = 0
  715.  
  716.         jumptime = tick()
  717.  
  718.         hum.Jumping:connect(function()
  719.  
  720.                 jumptime = tick()
  721.  
  722.         end)
  723.  
  724.         cam = workspace.CurrentCamera
  725.  
  726.         kd = plr:GetMouse().KeyDown:connect(oc(function(key)
  727.  
  728.                 keysdown[key] = true
  729.  
  730.                 keypressed[key] = true
  731.  
  732.                 if key == "q" then
  733.  
  734.                         descendtimer = tick()
  735.  
  736.                 elseif key == " " and not hum.Jump then
  737.  
  738.                         jumptime = tick()
  739.  
  740.                 elseif (key == "a" or key == "d") and ktime[key] and tick()-ktime[key] < .3 and math.abs(reqrotx) < .3 then
  741.  
  742.                         reqrotx = key == "a" and math.pi*2 or -math.pi*2
  743.  
  744.                 end
  745.  
  746.                 ktime[key] = tick()
  747.  
  748.         end))
  749.  
  750.         ku = plr:GetMouse().KeyUp:connect(function(key)
  751.  
  752.                 keysdown[key] = false
  753.  
  754.                 if key == " " then
  755.  
  756.                         descendtimer = tick()
  757.  
  758.                 end
  759.  
  760.         end)
  761.  
  762.         function mid(a,b,c)
  763.  
  764.                 return math.max(a,math.min(b,c or -a))
  765.  
  766.         end
  767.  
  768.         function bn(a)
  769.  
  770.                 return a and 1 or 0
  771.  
  772.         end
  773.  
  774.         function gm(tar)
  775.  
  776.                 local m = 0
  777.  
  778.                 for i,v in pairs(tar:GetChildren()) do
  779.  
  780.                         if v:IsA("BasePart") then
  781.  
  782.                                 m = m + v:GetMass()
  783.  
  784.                         end
  785.  
  786.                         m = m + gm(v)
  787.  
  788.                 end
  789.  
  790.                 return m
  791.  
  792.         end
  793.  
  794.         reqrotx = 0
  795.  
  796.         local grav = 196.2
  797.  
  798.         local con
  799.  
  800.         con = game:GetService("RunService").Stepped:connect(oc(function()
  801.  
  802.         --[[if not mod:IsDescendantOf(workspace) then
  803.  
  804.                 pcall(function() kd:disconnect() end)
  805.  
  806.                 pcall(function() ku:disconnect() end)
  807.  
  808.                 bg:Destroy()
  809.  
  810.                 bv:Destroy()
  811.  
  812.                 con:disconnect()
  813.  
  814.                 script:Destroy()
  815.  
  816.                 return
  817.  
  818.         end]]
  819.  
  820.                 local obvel = tor.CFrame:vectorToObjectSpace(tor.Velocity)
  821.  
  822.                 local sspd, uspd,fspd = obvel.X,obvel.Y,obvel.Z
  823.  
  824.                 if flying then
  825.  
  826.                         local lfldir = fldir
  827.  
  828.                         fldir = cam.CoordinateFrame:vectorToWorldSpace(Vector3.new(bn(keysdown.d)-bn(keysdown.a),0,bn(keysdown.s)-bn(keysdown.w))).unit
  829.  
  830.                         local lmoving = moving
  831.  
  832.                         moving = fldir.magnitude > .1
  833.  
  834.                         if lmoving and not moving then
  835.  
  836.                                 idledir = lfldir*Vector3.new(1,0,1)
  837.  
  838.                                 descendtimer = tick()
  839.  
  840.                         end
  841.  
  842.                         local dbomb = fldir.Y < -.6 or (moving and keysdown["1"])
  843.  
  844.                         if moving and keysdown["0"] and lmoving then
  845.  
  846.                                 fldir = (Vector3.new(lfldir.X,math.min(fldir.Y,lfldir.Y+.01)-.1,lfldir.Z)+(fldir*Vector3.new(1,0,1))*.05).unit
  847.  
  848.                         end
  849.  
  850.                         local down = tor.CFrame:vectorToWorldSpace(Vector3.new(0,-1,0))
  851.  
  852.                         local descending = (not moving and keysdown["q"] and not keysdown[" "])
  853.  
  854.                         cf = ccomplerp(cf,CFrame.new(tor.Position,tor.Position+(not moving and idledir or fldir)),keysdown["0"] and .02 or .07)
  855.  
  856.                         local gdown = not dbomb and cf.lookVector.Y < -.2 and tor.Velocity.unit.Y < .05
  857.  
  858.                         hum.PlatformStand = true
  859.  
  860.                         bg.maxTorque = Vector3.new(1,1,1)*9e5
  861.  
  862.                         local rotvel = CFrame.new(Vector3.new(),tor.Velocity):toObjectSpace(CFrame.new(Vector3.new(),fldir)).lookVector
  863.  
  864.                         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)
  865.  
  866.                         reqrotx = reqrotx - reqrotx/10
  867.  
  868.                         bv.maxForce = Vector3.new(1,1,1)*9e4*.5
  869.  
  870.                         local anioff =(bn(keysdown[" "])-bn(keysdown["q"]))/2
  871.  
  872.                         local ani = tickwave(1.5-anioff,1)
  873.  
  874.                         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)
  875.  
  876.                         vel = moving and cf.lookVector*flspd or Vector3.new()
  877.  
  878.                         flspd = math.min(120,lerp(flspd,moving and (fldir.Y 1 then
  879.  
  880.                                 flying = false
  881.  
  882.                                 hum.PlatformStand = false
  883.  
  884.                                 tor.Velocity = Vector3.new()
  885.  
  886.                         end
  887.  
  888.                 else
  889.  
  890.                         bg.maxTorque = Vector3.new()
  891.  
  892.                         bv.maxForce = Vector3.new()
  893.  
  894.                         local ani = tickwave(walking and .8 or 4.5,1)
  895.  
  896.                         setwings(idle,10)
  897.  
  898.                         local x,y,z = fspd/160,uspd/700,sspd/900
  899.  
  900.                         for i=1,4 do
  901.  
  902.                                 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)
  903.  
  904.                                 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)
  905.  
  906.                         end
  907.  
  908.                         if keypressed["f"] and not flying and (tick()-jumptime > .05 and (tick()-jumptime < 3 or hum.Jump)) then
  909.  
  910.                                 vel = Vector3.new(0,50,0)
  911.  
  912.                                 bv.velocity = vel
  913.  
  914.                                 idledir = cam.CoordinateFrame.lookVector*Vector3.new(1,0,1)
  915.  
  916.                                 cf = tor.CFrame * CFrame.Angles(-.01,0,0)
  917.  
  918.                                 tor.CFrame = cf
  919.  
  920.                                 bg.cframe = cf
  921.  
  922.                                 flystart = tick()
  923.  
  924.                                 flying = true
  925.  
  926.                         end
  927.  
  928.                 end
  929.  
  930.                 keypressed = {}
  931.  
  932.         end))
  933.  
  934.  
  935. end fly()
  936.  
  937.  
  938.  
  939.  
  940. --Bird Wings By TXrangers222
  941. -- Converted to FE by Creo



  • Recent Roblox Scripts