Advertisement
Free-Scripts

Fling All [FE]

Aug 3rd, 2022
3,436
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.95 KB | None | 0 0
  1. -- "fling all" made by static
  2. --
  3. _G.FLYING = false
  4. local LP = game:service('Players').LocalPlayer
  5. local T = nil;
  6. if LP.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
  7. T = LP.Character.Torso
  8. elseif LP.Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
  9. T = LP.Character.UpperTorso
  10. end
  11. local CONTROL = {F = 0, B = 0, L = 0, R = 0}
  12. local lCONTROL = {F = 0, B = 0, L = 0, R = 0}
  13. local SPEED = 5
  14. local MOUSE = LP:GetMouse()
  15.  
  16.  
  17. local function FLY()
  18.     _G.FLYING = true
  19.     local BG = Instance.new('BodyGyro', T)
  20.     local BV = Instance.new('BodyVelocity', T)
  21.     BG.P = 9e4
  22.     BG.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  23.     BG.cframe = T.CFrame
  24.     BV.velocity = Vector3.new(0, 0.1, 0)
  25.     BV.maxForce = Vector3.new(9e9, 9e9, 9e9)
  26.  
  27.  
  28.     spawn(function()
  29.       repeat wait()
  30.         LP.Character.Humanoid.PlatformStand = true
  31.         if CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 then
  32.           SPEED = 50
  33.         elseif not (CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0) and SPEED ~= 0 then
  34.           SPEED = 0
  35.         end
  36.         if (CONTROL.L + CONTROL.R) ~= 0 or (CONTROL.F + CONTROL.B) ~= 0 then
  37.           BV.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (CONTROL.F + CONTROL.B)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(CONTROL.L + CONTROL.R, (CONTROL.F + CONTROL.B) * 0.2, 0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
  38.           lCONTROL = {F = CONTROL.F, B = CONTROL.B, L = CONTROL.L, R = CONTROL.R}
  39.         elseif (CONTROL.L + CONTROL.R) == 0 and (CONTROL.F + CONTROL.B) == 0 and SPEED ~= 0 then
  40.           BV.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lCONTROL.F + lCONTROL.B)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lCONTROL.L + lCONTROL.R, (lCONTROL.F + lCONTROL.B) * 0.2, 0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
  41.         else
  42.           BV.velocity = Vector3.new(0, 0.1, 0)
  43.         end
  44.         BG.cframe = game.Workspace.CurrentCamera.CoordinateFrame
  45.       until not _G.FLYING
  46.       CONTROL = {F = 0, B = 0, L = 0, R = 0}
  47.       lCONTROL = {F = 0, B = 0, L = 0, R = 0}
  48.       SPEED = 0
  49.       BG:destroy()
  50.       BV:destroy()
  51.       LP.Character.Humanoid.PlatformStand = false
  52.     end)
  53.   end
  54.  
  55.   MOUSE.KeyDown:connect(function(KEY)
  56.     if KEY:lower() == 'w' then
  57.       CONTROL.F = 1
  58.     elseif KEY:lower() == 's' then
  59.       CONTROL.B = -1
  60.     elseif KEY:lower() == 'a' then
  61.       CONTROL.L = -1
  62.     elseif KEY:lower() == 'd' then
  63.       CONTROL.R = 1
  64.     end
  65.   end)
  66.  
  67.   MOUSE.KeyUp:connect(function(KEY)
  68.     if KEY:lower() == 'w' then
  69.       CONTROL.F = 0
  70.     elseif KEY:lower() == 's' then
  71.       CONTROL.B = 0
  72.     elseif KEY:lower() == 'a' then
  73.       CONTROL.L = 0
  74.     elseif KEY:lower() == 'd' then
  75.       CONTROL.R = 0
  76.     end
  77.   end)
  78.  
  79.  
  80.  
  81.  
  82.   FLY()
  83.  
  84.  
  85.  
  86. game:GetService('RunService').Stepped:connect(function()
  87. if LP.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
  88. LP.Character.Head.CanCollide = false
  89. LP.Character.Torso.CanCollide = false
  90. LP.Character["Left Leg"].CanCollide = false
  91. LP.Character["Right Leg"].CanCollide = false
  92. else
  93. if LP.Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
  94. LP.Character.Head.CanCollide = false
  95. LP.Character.UpperTorso.CanCollide = false
  96. LP.Character.LowerTorso.CanCollide = false
  97. LP.Character.HumanoidRootPart.CanCollide = false
  98.  
  99. end
  100. end
  101. end)
  102.  
  103. wait(.1)
  104.  
  105. local bambam = Instance.new("BodyThrust")
  106. bambam.Parent = LP.Character.HumanoidRootPart
  107. bambam.Force = Vector3.new(50000,0,50000)
  108. bambam.Location = LP.Character.HumanoidRootPart.Position
  109.  
  110.  
  111.  
  112. while true do
  113. t = game.Players:GetPlayers()
  114. local x = t[math.random(1,#t)].Character
  115. if x ~= nil then
  116. x = x:FindFirstChild("HumanoidRootPart")
  117. if x ~= nil then
  118. if not (math.abs(x.Position.X) > 1000 or math.abs(x.Position.Y) > 1000 or math.abs(x.Position.Z) > 1000) then
  119. LP.Character.HumanoidRootPart.CFrame = x.CFrame
  120. wait(.2)
  121. end
  122. end
  123. end
  124. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement