local function stopFly() flyEnabled = false if flyBodyVelocity then flyBodyVelocity:Destroy() end flyBodyVelocity = nil end
MainFrame.Parent = ScreenGui MainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 35) MainFrame.BorderSizePixel = 0 MainFrame.Position = UDim2.new(0.5, -200, 0.5, -150) MainFrame.Size = UDim2.new(0, 400, 0, 300) MainFrame.BackgroundTransparency = 0.1 MainFrame.Active = true MainFrame.Draggable = true
local function updateFly() if not flying or not flyEnabled then return end local moveDirection = Vector3.new( (UserInputService:IsKeyDown(Enum.KeyCode.D) and 1 or 0) - (UserInputService:IsKeyDown(Enum.KeyCode.A) and 1 or 0), (UserInputService:IsKeyDown(Enum.KeyCode.Space) and 1 or 0) - (UserInputService:IsKeyDown(Enum.KeyCode.LeftControl) and 1 or 0), (UserInputService:IsKeyDown(Enum.KeyCode.S) and -1 or 0) + (UserInputService:IsKeyDown(Enum.KeyCode.W) and 1 or 0) ).Unit flyBodyVelocity.Velocity = (rootPart.CFrame.LookVector * moveDirection.Z + rootPart.CFrame.RightVector * moveDirection.X + Vector3.new(0, moveDirection.Y, 0)) * speed end
UserInputService.InputEnded:Connect(function(input) if input.KeyCode == Enum.KeyCode.E then speedBoost = false local char = LocalPlayer.Character if char and char:FindFirstChild("Humanoid") then char.Humanoid.WalkSpeed = originalWalkspeed end end end)
local function stopFly() flyEnabled = false if flyBodyVelocity then flyBodyVelocity:Destroy() end flyBodyVelocity = nil end
MainFrame.Parent = ScreenGui MainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 35) MainFrame.BorderSizePixel = 0 MainFrame.Position = UDim2.new(0.5, -200, 0.5, -150) MainFrame.Size = UDim2.new(0, 400, 0, 300) MainFrame.BackgroundTransparency = 0.1 MainFrame.Active = true MainFrame.Draggable = true
local function updateFly() if not flying or not flyEnabled then return end local moveDirection = Vector3.new( (UserInputService:IsKeyDown(Enum.KeyCode.D) and 1 or 0) - (UserInputService:IsKeyDown(Enum.KeyCode.A) and 1 or 0), (UserInputService:IsKeyDown(Enum.KeyCode.Space) and 1 or 0) - (UserInputService:IsKeyDown(Enum.KeyCode.LeftControl) and 1 or 0), (UserInputService:IsKeyDown(Enum.KeyCode.S) and -1 or 0) + (UserInputService:IsKeyDown(Enum.KeyCode.W) and 1 or 0) ).Unit flyBodyVelocity.Velocity = (rootPart.CFrame.LookVector * moveDirection.Z + rootPart.CFrame.RightVector * moveDirection.X + Vector3.new(0, moveDirection.Y, 0)) * speed end
UserInputService.InputEnded:Connect(function(input) if input.KeyCode == Enum.KeyCode.E then speedBoost = false local char = LocalPlayer.Character if char and char:FindFirstChild("Humanoid") then char.Humanoid.WalkSpeed = originalWalkspeed end end end)