FLY SCRPT V1
Key RequiredUniversal

FLY SCRPT V1

Universal Scriptmetemkirmetemkir 3.1K views 104 executesUpdated Jun 10, 2025
3.3/ 5(3 votes)
2167% Positive
Lua Script•129 lines (3945 chars)
local oyuncu = game.Players.LocalPlayer
local ekran = Instance.new("ScreenGui", oyuncu:WaitForChild("PlayerGui"))

local cerceve = Instance.new("Frame")
cerceve.Size = UDim2.new(0, 130, 0, 30)
cerceve.Position = UDim2.new(1, -140, 0, 50)
cerceve.AnchorPoint = Vector2.new(1, 0)
cerceve.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
cerceve.BorderSizePixel = 2
cerceve.BorderColor3 = Color3.new(1, 1, 1)
cerceve.Active = true
cerceve.Draggable = true
cerceve.Parent = ekran

local dugme = Instance.new("TextButton")
dugme.Size = UDim2.new(0, 50, 1, 0)
dugme.Position = UDim2.new(0, 0, 0, 0)
dugme.Text = "FLY"
dugme.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
dugme.TextColor3 = Color3.fromRGB(255, 255, 255)
dugme.BorderColor3 = Color3.fromRGB(255, 255, 255)
dugme.BorderSizePixel = 2
dugme.Parent = cerceve

local hizKutusu = Instance.new("TextBox")
hizKutusu.Size = UDim2.new(0, 70, 1, 0)
hizKutusu.Position = UDim2.new(0, 55, 0, 0)
hizKutusu.Text = "75"
hizKutusu.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
hizKutusu.TextColor3 = Color3.fromRGB(0, 255, 0)
hizKutusu.BorderColor3 = Color3.fromRGB(255, 255, 255)
hizKutusu.BorderSizePixel = 2
hizKutusu.ClearTextOnFocus = false
hizKutusu.Parent = cerceve

local ucmuyor = false
local hiz = 75
local hedefYon = Vector3.zero
local anlikHiz = Vector3.zero
local bedenGyro, bedenHiz
local baglanti

local function ucmayiBaslat()
	local karakter = oyuncu.Character
	if not karakter then return end

	local humanoid = karakter:WaitForChild("Humanoid")
	local hrp = karakter:WaitForChild("HumanoidRootPart")
	local kamera = workspace.CurrentCamera

	bedenGyro = Instance.new("BodyGyro", hrp)
	bedenGyro.MaxTorque = Vector3.new(9e9, 9e9, 9e9)
	bedenGyro.P = 9e4

	bedenHiz = Instance.new("BodyVelocity", hrp)
	bedenHiz.Velocity = Vector3.zero
	bedenHiz.MaxForce = Vector3.new(9e9, 9e9, 9e9)

	humanoid.PlatformStand = true

	baglanti = game:GetService("RunService").RenderStepped:Connect(function()
		local ileri = kamera.CFrame.LookVector * hedefYon.Z
		local sag = kamera.CFrame.RightVector * hedefYon.X

		local girilen = tonumber(hizKutusu.Text)
		if girilen then
			hiz = girilen
		end

		local hareketYon = (ileri + sag).Unit * hiz
		if hareketYon.Magnitude ~= hareketYon.Magnitude then
			hareketYon = Vector3.zero
		end

		anlikHiz = anlikHiz:Lerp(hareketYon, 0.2)
		bedenHiz.Velocity = anlikHiz
		bedenGyro.CFrame = CFrame.new(hrp.Position, hrp.Position + kamera.CFrame.LookVector)
	end)
end

local function ucmayiDurdur()
	local karakter = oyuncu.Character
	if not karakter then return end

	local humanoid = karakter:WaitForChild("Humanoid")
	humanoid.PlatformStand = false
	anlikHiz = Vector3.zero
	hedefYon = Vector3.zero

	if bedenGyro then bedenGyro:Destroy() end
	if bedenHiz then bedenHiz:Destroy() end
	if baglanti then baglanti:Disconnect() end
end

local function ucToggle()
	ucmuyor = not ucmuyor
	if ucmuyor then
		ucmayiBaslat()
	else
		ucmayiDurdur()
	end
end

dugme.MouseButton1Click:Connect(ucToggle)

local userInputService = game:GetService("UserInputService")
userInputService.InputBegan:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.Keyboard then
		if input.KeyCode == Enum.KeyCode.W then
			hedefYon = Vector3.new(hedefYon.X, hedefYon.Y, 1)
		elseif input.KeyCode == Enum.KeyCode.A then
			hedefYon = Vector3.new(-1, hedefYon.Y, hedefYon.Z)
		elseif input.KeyCode == Enum.KeyCode.S then
			hedefYon = Vector3.new(hedefYon.X, hedefYon.Y, -1)
		elseif input.KeyCode == Enum.KeyCode.D then
			hedefYon = Vector3.new(1, hedefYon.Y, hedefYon.Z)
		end
	end
end)

userInputService.InputEnded:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.Keyboard then
		if input.KeyCode == Enum.KeyCode.W or input.KeyCode == Enum.KeyCode.S then
			hedefYon = Vector3.new(hedefYon.X, hedefYon.Y, 0)
		elseif input.KeyCode == Enum.KeyCode.A or input.KeyCode == Enum.KeyCode.D then
			hedefYon = Vector3.new(0, hedefYon.Y, hedefYon.Z)
		end
	end
end)

Features & Information

FLY

Community Comments (1)

metemkirmetemkirJun 11, 2025

@Someone how?

More Scripts for Universal Scripts