Universal Script 📌
87.8k Views
2.3k Executions

Really Cool Fly Script

Universal Script 📌
Aura
AuraPublished 25
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Toggle Fly: G Increase Speed keep pressing Equal Decrease Speed keep pressing Minus Join the Discord Fam discord.gg/nWbqsUDcQx

Updates

  1. Script edited: Create script

View Raw
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")

local flying = false
local speed = 50
local maxSpeed = 200
local minSpeed = 10
local speedIncrement = 5
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
local flyConnections = {}

local function fly()
    if not flying then
        flying = true
        local bodyVelocity = Instance.new("BodyVelocity")
        bodyVelocity.Velocity = Vector3.new(0, 0, 0)
        bodyVelocity.MaxForce = Vector3.new(100000, 100000, 100000)
        bodyVelocity.Parent = humanoidRootPart

        local bodyGyro = Instance.new("BodyGyro")
        bodyGyro.CFrame = humanoidRootPart.CFrame
        bodyGyro.MaxTorque = Vector3.new(100000, 100000, 100000)
        bodyGyro.P = 3000
        bodyGyro.Parent = humanoidRootPart

        local function onRenderStep()
            local moveDirection = Vector3.new()
            if UserInputService:IsKeyDown(Enum.KeyCode.W) then
                moveDirection = moveDirection + (workspace.CurrentCamera.CFrame.LookVector * speed)
            end
            if UserInputService:IsKeyDown(Enum.KeyCode.S) then
                moveDirection = moveDirection - (workspace.CurrentCamera.CFrame.LookVector * speed)
            end
            if UserInputService:IsKeyDown(Enum.KeyCode.A) then
                moveDirection = moveDirection - (workspace.CurrentCamera.CFrame.RightVector * speed)
            end
            if UserInputService:IsKeyDown(Enum.KeyCode.D) then


Comments

1
Log in to join the conversation. Login
RAIGINATOR's profile picture
RAIGINATOR2 years ago(edited)

i made a script like this nice script anyways

1

Tags

More universal scripts

See all
Script hub
178.7k
1.7M
Bumped 2 hours ago
Key System
Universal Script 📌
9.1k
31.4k
Bumped 3 hours ago
Script hub
49.7k
12.3k
Bumped 4 hours ago
Key System
Paid
Script hub
5.5M
1.1M
Bumped 8 hours ago
Key System
Script hub
20.5k
4.0k
Bumped 9 hours ago
Key System
Paid
Universal Script 📌
706
150
Approved 15 hours ago
Universal Script 📌
612
1.8k
Approved 15 hours ago
Universal Script 📌
574
374
Approved 15 hours ago