TTWB
Key RequiredUniversal

TTWB

Universal ScriptZHYOZHYO 9.1K views 7 executesUpdated Sep 27, 2025
Unrated
00
Lua Script•40 lines (1002 chars)
-- سكربت طيران بسيط
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")

local flying = false
local speed = 50

-- إنشاء BodyVelocity عشان يحرك اللاعب
local bv = Instance.new("BodyVelocity")
bv.MaxForce = Vector3.new(4000, 4000, 4000)
bv.Velocity = Vector3.zero
bv.Parent = character.PrimaryPart

-- التبديل بين الطيران والتوقف
function toggleFly()
	flying = not flying
	if flying then
		print("بدأ الطيران 🚀")
	else
		bv.Velocity = Vector3.zero
		print("وقف الطيران ⛔")
	end
end

-- لما يضغط زر "F" يتبدل الطيران
game:GetService("UserInputService").InputBegan:Connect(function(input, gpe)
	if gpe then return end
	if input.KeyCode == Enum.KeyCode.F then
		toggleFly()
	end
end)

-- تحديث الحركة
game:GetService("RunService").Heartbeat:Connect(function()
	if flying then
		local moveDirection = humanoid.MoveDirection
		bv.Velocity = moveDirection * speed + Vector3.new(0, speed/2, 0)
	end
end)

Features & Information

TTWB طيران

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts