Universal Script 📌
114.4k Views
14 Executions

Gg

Universal Script 📌
omspeed77
omspeed77First script
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

New script

Updates

  1. Script edited: Create script

View Raw
-- هذا السكربت يتيح للشخصية الطيران عند الضغط على مفتاح "E"
local userInputService = game:GetService("UserInputService")
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:FindFirstChildOfClass("Humanoid")

local flying = false

local function toggleFly()
    flying = not flying
    if flying then
        humanoid.PlatformStand = true -- تعطيل تحكم اللاعب
        local bodyVelocity = Instance.new("BodyVelocity")
        bodyVelocity.Velocity = Vector3.new(0, 0, 0)
        bodyVelocity.MaxForce = Vector3.new(4000, 4000, 4000)
        bodyVelocity.Parent = character.HumanoidRootPart
    else
        humanoid.PlatformStand = false -- إعادة التحكم للاعب
        for _, obj in ipairs(character.HumanoidRootPart:GetChildren()) do
            if obj:IsA("BodyVelocity") then
                obj:Destroy()
            end
        end
    end
end

userInputService.InputBegan:Connect(function(input, gameProcessedEvent)
    if not gameProcessedEvent and input.KeyCode == Enum.KeyCode.E then
        toggleFly()
    end
end)


Comments

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

More universal scripts

See all
Script hub
33.1k
298.1k
Bumped 1 hour ago
Script hub
23.6k
5.2k
Bumped 1 hour ago
Key System
Paid
High Quality Offering
Universal Script 📌
196
557
Bumped 2 hours ago
Universal Script 📌
1.6k
30.3k
Bumped 2 hours ago
Script hub
4.1M
558.5k
Bumped 2 hours ago
Key System

Script hub

Hall of Fame #3

Verified script badgeOverflow 35 Supported Games

Script hub
5.5k
28.9k
Bumped 3 hours ago
Key System
Script hub
14.0k
28.5k
Bumped 4 hours ago