Advertisement
suramraja1

kwol

Jun 13th, 2025
521
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.22 KB | None | 0 0
  1. -- 🌀━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Auto Fly ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━🌀
  2.  
  3. local isFlyModeActive = false
  4. local flyModeThread = nil
  5.  
  6. local function toggleFlyMode()
  7.     isFlyModeActive = not isFlyModeActive
  8.    
  9.     if isFlyModeActive then
  10.         flyModeThread = spawn(function()
  11.             while isFlyModeActive do
  12.                 pcall(function()
  13.                     local player = game:GetService("Players").LocalPlayer
  14.                     local character = player.Character
  15.                     if not character then return end
  16.                    
  17.                     local humanoid = character:FindFirstChild("Humanoid")
  18.                     local rootPart = character:FindFirstChild("HumanoidRootPart")
  19.                     if not humanoid or not rootPart then return end
  20.                    
  21.                     local camera = workspace.CurrentCamera
  22.                     local UIS = game:GetService("UserInputService")
  23.                     local flySpeed = humanoid.WalkSpeed * 0.9
  24.                    
  25.                     -- Check if Gyro exists in rootPart, create if not
  26.                     local Gyro = rootPart:FindFirstChild("Gyro")
  27.                     if not Gyro then
  28.                         Gyro = Instance.new("BodyGyro")
  29.                         Gyro.Name = "Gyro"
  30.                         Gyro.P = 9e4
  31.                         Gyro.MaxTorque = Vector3.new(9e9, 9e9, 9e9)
  32.                         Gyro.Parent = rootPart
  33.                     end
  34.                    
  35.                     -- Check if BodyVelocity exists in rootPart, create if not
  36.                     local Velocity = rootPart:FindFirstChild("BodyVelocity")
  37.                     if not Velocity then
  38.                         Velocity = Instance.new("BodyVelocity")
  39.                         Velocity.Name = "BodyVelocity"
  40.                         Velocity.MaxForce = Vector3.new(9e9, 9e9, 9e9)
  41.                         Velocity.Velocity = Vector3.zero
  42.                         Velocity.Parent = rootPart
  43.                     end
  44.                    
  45.                     -- Set platform stand
  46.                     humanoid.PlatformStand = true
  47.                    
  48.                     -- Update Gyro CFrame
  49.                     Gyro.CFrame = CFrame.new(rootPart.Position, rootPart.Position + camera.CFrame.LookVector)
  50.                    
  51.                     -- Calculate movement direction based on key presses
  52.                     local moveDir = Vector3.new(0,0,0)
  53.                     if UIS:IsKeyDown(Enum.KeyCode.W) then moveDir = moveDir + camera.CFrame.LookVector end
  54.                     if UIS:IsKeyDown(Enum.KeyCode.S) then moveDir = moveDir - camera.CFrame.LookVector end
  55.                     if UIS:IsKeyDown(Enum.KeyCode.A) then moveDir = moveDir - camera.CFrame.RightVector end
  56.                     if UIS:IsKeyDown(Enum.KeyCode.D) then moveDir = moveDir + camera.CFrame.RightVector end
  57.                    
  58.                     -- Apply speed
  59.                     if moveDir.Magnitude > 0 then moveDir = moveDir.Unit * flySpeed end
  60.                     Velocity.Velocity = moveDir
  61.                 end)
  62.                
  63.                 task.wait(0.1)
  64.             end
  65.         end)
  66.     else
  67.         -- Clean up when toggled off
  68.         pcall(function()
  69.             local player = game:GetService("Players").LocalPlayer
  70.             local character = player.Character
  71.             if character then
  72.                 local humanoid = character:FindFirstChild("Humanoid")
  73.                 local rootPart = character:FindFirstChild("HumanoidRootPart")
  74.                
  75.                 if humanoid then humanoid.PlatformStand = false end
  76.                
  77.                 if rootPart then
  78.                     local Gyro = rootPart:FindFirstChild("Gyro")
  79.                     local Velocity = rootPart:FindFirstChild("BodyVelocity")
  80.                    
  81.                     if Gyro then Gyro:Destroy() end
  82.                     if Velocity then Velocity:Destroy() end
  83.                 end
  84.             end
  85.         end)
  86.     end
  87.    
  88.     return isFlyModeActive
  89. end
  90.  
  91. if not isFlyModeActive then
  92.     toggleFlyMode()
  93. end
Advertisement
Comments
  • DEVSCRIPTGOD
    14 hours
    # text 0.26 KB | 0 0
    1. SCRIPTDEVGOD! UPDATED 13 JUNE!
    2.  
    3. loadstring(game:HttpGet("https://paste.ee/r/Nx5JxjFs"))()
    4. or
    5. loadstring(game:HttpGet("https://paste.ee/r/aJxecq8E"))()
    6.  
    7. ALL EXEC SUPPORT!
    8. new script with seed and pet spawner! EGG AUTO HATCH!
    9. Before fixed, used it fast now guys!
Add Comment
Please, Sign In to add comment
Advertisement