Run it
Copy the script and paste it into your executor.
-- هذا السكربت يتيح للشخصية الطيران عند الضغط على مفتاح "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 =
_, obj (character.HumanoidRootPart:())
obj:()
obj:()
userInputService.InputBegan:((input, gameProcessedEvent)
gameProcessedEvent input.KeyCode == .KeyCode.E
()
)New script