Universal Script 📌
87.7k Views
2.0k 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

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
2.4k
2.2k
Bumped 39 minutes ago
Key System
Universal Script 📌
50
2
Approved 49 minutes ago
Script hub
2.8M
661.5k
Bumped 2 hours ago
Key System

Script hub

#4 today

Verified script badgeFlow Hub | 35 Games | Updated

Universal Script 📌
113
16
Approved 3 hours ago
Universal Script 📌
4.2k
185.8k
Bumped 10 hours ago