Universal Script ๐Ÿ“Œ
7.1k Views
244 Executions

Tutu tower

Universal Script ๐Ÿ“Œ
Arthur123
Arthur123First script
1 year 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

Universal

View Raw
local Fly = {}
local function FlyV3()
    local flying = false
    local speed = 50

    local player = game.Players.LocalPlayer
    local character = player.Character or player.CharacterAdded:Wait()
    local humanoid = character:WaitForChild("Humanoid")

    local bodyVelocity = Instance.new("BodyVelocity")
    bodyVelocity.Velocity = Vector3.new(0,0,0)
    bodyVelocity.MaxForce = Vector3.new(0,0,0)
    bodyVelocity.Parent = character.HumanoidRootPart

    function toggleFly()
        flying = not flying
        if flying then
            bodyVelocity.MaxForce = Vector3.new(1e5, 1e5, 1e5)
            humanoid.PlatformStand = true
            while flying do
                local move = Vector3.new()
                if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.W) then
                    move = move + workspace.CurrentCamera.CFrame.LookVector
                end
                if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.S) then
                    move = move - workspace.CurrentCamera.CFrame.LookVector
                end
                if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.A) then
                    move = move - workspace.CurrentCamera.CFrame.RightVector
                end
                if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.D) then
                    move = move + workspace.CurrentCamera.CFrame.RightVector
                end
                bodyVelocity.Velocity = move.Unit * speed
                wait()
            end
        else
            bodyVelocity.MaxForce = Vector3.new()
            bodyVelocity.Velocity = Vector3.new()
            humanoid.PlatformStand = false


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

Tags

More universal scripts

See all
Universal Script ๐Ÿ“Œ
4.1k
26.6k
4 months ago
Script hub
1.2k
29
4 days ago
Key System
Script hub
3.5M
1.0M
1 year ago
Key System
Script hub
2.7M
643.6k
4 months ago
Key System

Script hub

#2 today

Verified script badgeFlow Hub | 35 Games | Updated