fly guy v2
Key RequiredUniversal

fly guy v2

Universal Scriptgabryvitto23gabryvitto23 808 views 6.3K executesUpdated Jul 3, 2026
Unrated
00
Lua Script•153 lines (6235 chars)
-- ========================================================
--         SCRIPT CREATO DA: [IL TUO NOME D'ARTE]
--         Libero da Virus - Ottimizzato per Delta
-- ========================================================

local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")

-- Crea l'interfaccia grafica
local ScreenGui = Instance.new("ScreenGui")
local MainFrame = Instance.new("Frame")
local Title = Instance.new("TextLabel")
local Credits = Instance.new("TextLabel")
local FlyButton = Instance.new("TextButton")
local UICornerFrame = Instance.new("UICorner")
local UICornerF = Instance.new("UICorner")

ScreenGui.Name = "CreatorFlyHub"
ScreenGui.Parent = game:GetService("CoreGui")
ScreenGui.ResetOnSpawn = false

-- Finestra Principale
MainFrame.Name = "MainFrame"
MainFrame.Parent = ScreenGui
MainFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 25) -- Tema Scuro Cyber
MainFrame.Position = UDim2.new(0.1, 0, 0.3, 0)
MainFrame.Size = UDim2.new(0, 220, 0, 150)
UICornerFrame.Parent = MainFrame

-- SISTEMA DI TRASCINAMENTO MOBILE FLUIDO
local dragging, dragInput, dragStart, startPos
local function update(input)
    local delta = input.Position - dragStart
    MainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
end
MainFrame.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
        dragging = true
        dragStart = input.Position
        startPos = MainFrame.Position
        input.Changed:Connect(function()
            if input.UserInputState == Enum.UserInputState.End then dragging = false end
        end)
    end
end)
MainFrame.InputChanged:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end
end)
UserInputService.InputChanged:Connect(function(input)
    if input == dragInput and dragging then update(input) end
end)

-- Titolo Principale
Title.Name = "Title"
Title.Parent = MainFrame
Title.BackgroundTransparency = 1.000
Title.Position = UDim2.new(0, 10, 0, 2)
Title.Size = UDim2.new(0, 200, 0, 25)
Title.Font = Enum.Font.SourceSansBold
Title.Text = "UNIVERSAL FLY"
Title.TextColor3 = Color3.fromRGB(0, 180, 255)
Title.TextSize = 15.000
Title.TextXAlignment = Enum.TextXAlignment.Left

-- Crediti d'autore (La tua firma per diventare famoso!)
Credits.Name = "Credits"
Credits.Parent = MainFrame
Credits.BackgroundTransparency = 1.000
Credits.Position = UDim2.new(0, 10, 0, 22)
Credits.Size = UDim2.new(0, 200, 0, 15)
Credits.Font = Enum.Font.SourceSansItalic
Credits.Text = "Created by [MettiIlTuoNickQui]"
Credits.TextColor3 = Color3.fromRGB(150, 150, 160)
Credits.TextSize = 11.000
Credits.TextXAlignment = Enum.TextXAlignment.Left

-- Tasto Attivazione Volo
FlyButton.Name = "FlyButton"
FlyButton.Parent = MainFrame
FlyButton.BackgroundColor3 = Color3.fromRGB(255, 65, 65)
FlyButton.Position = UDim2.new(0.05, 0, 0.45, 0)
FlyButton.Size = UDim2.new(0, 200, 0, 45)
FlyButton.Font = Enum.Font.SourceSansBold
FlyButton.Text = "VOLO: DISATTIVATO"
FlyButton.TextColor3 = Color3.fromRGB(255, 255, 255)
FlyButton.TextSize = 13.000
UICornerF.Parent = FlyButton

-- LOGICA DEL VOLO UNIVERSALE
local Flying = false
local Speed = 30
local BodyGyro, BodyVelocity

FlyButton.MouseButton1Click:Connect(function()
    Flying = not Flying
    if Flying then
        FlyButton.Text = "VOLO: ATTIVO"
        FlyButton.BackgroundColor3 = Color3.fromRGB(65, 255, 65)
        
        local character = LocalPlayer.Character
        if character and character:FindFirstChild("HumanoidRootPart") then
            -- Crea i vettori fisici per tenere il personaggio sospeso
            BodyGyro = Instance.new("BodyGyro")
            BodyVelocity = Instance.new("BodyVelocity")
            
            BodyGyro.P = 9e4
            BodyGyro.maxTorque = Vector3.new(9e9, 9e9, 9e9)
            BodyGyro.cframe = character.HumanoidRootPart.CFrame
            BodyGyro.Parent = character.HumanoidRootPart
            
            BodyVelocity.velocity = Vector3.new(0, 0.1, 0)
            BodyVelocity.maxForce = Vector3.new(9e9, 9e9, 9e9)
            BodyVelocity.Parent = character.HumanoidRootPart
            
            -- Loop per muoversi nella direzione in cui guardi con la telecamera
            task.spawn(function()
                while Flying do
                    RunService.RenderStepped:Wait()
                    if character:FindFirstChild("Humanoid") and character:FindFirstChild("HumanoidRootPart") then
                        character.Humanoid.PlatformStand = true
                        -- Controlla la direzione della telecamera per spostare il corpo
                        local camCFrame = workspace.CurrentCamera.CFrame
                        local moveDirection = character.Humanoid.MoveDirection
                        
                        if moveDirection.Magnitude > 0 then
                            BodyVelocity.velocity = camCFrame.LookVector * Speed
                        else
                            BodyVelocity.velocity = Vector3.new(0, 0, 0)
                        end
                        BodyGyro.cframe = camCFrame
                    end
                end
            end)
        end
    else
        FlyButton.Text = "VOLO: DISATTIVATO"
        FlyButton.BackgroundColor3 = Color3.fromRGB(255, 65, 65)
        
        -- Ripristina la fisica normale del personaggio
        local character = LocalPlayer.Character
        if character then
            if character:FindFirstChild("Humanoid") then
                character.Humanoid.PlatformStand = false
            end
            if character:FindFirstChild("HumanoidRootPart") then
                if character.HumanoidRootPart:FindFirstChild("BodyGyro") then character.HumanoidRootPart.BodyGyro:Destroy() end
                if character.HumanoidRootPart:FindFirstChild("BodyVelocity") then character.HumanoidRootPart.BodyVelocity:Destroy() end
            end
        end
    end
end)

Features & Information

fly guy specifically for delta

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts