>>
-- [[ UZİ LIGHT - SADECE UÇMA SİSTEMİ ]] --
-- BU BİR TEST YAZILIMIDIR --
local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))()
local Window = Library.CreateLib("UZİ LIGHT - V1", "DarkTheme")
local Tab = Window:NewTab("Ucus")
local Section = Tab:NewSection("Fly Ayarlari")
local flying = false
local flySpeed = 50
local keys = {w = false, s = false, a = false, d = false, space = false, lctrl = false}
local controlHandler, flyLoop
local function startFly()
if flying then return end
flying = true
local p = game.Players.LocalPlayer
local char = p.Character
if not char or not char:FindFirstChild("HumanoidRootPart") then return end
local root = char.HumanoidRootPart
char.Humanoid.PlatformStand = true
local bg = Instance.new("BodyGyro", root)
bg.P = 9e4; bg.maxTorque = Vector3.new(9e9, 9e9, 9e9); bg.cframe = root.CFrame
local bv = Instance.new("BodyVelocity", root)
bv.velocity = Vector3.new(0,0,0); bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
controlHandler = game:GetService("UserInputService").InputBegan:Connect(function(i, g)
if g then return end
if i.KeyCode == Enum.KeyCode.W then keys.w = true
elseif i.KeyCode == Enum.KeyCode.S then keys.s = true
elseif i.KeyCode == Enum.KeyCode.A then keys.a = true
elseif i.KeyCode == Enum.KeyCode.D then keys.d = true
elseif i.KeyCode == Enum.KeyCode.Space then keys.space = true
elseif i.KeyCode == Enum.KeyCode.LeftControl then keys.lctrl = true end
end)
game:GetService("UserInputService").InputEnded:Connect(function(i)
if i.KeyCode == Enum.KeyCode.W then keys.w = false
elseif i.KeyCode == Enum.KeyCode.S then keys.s = false
elseif i.KeyCode == Enum.KeyCode.A then keys.a = false
elseif i.KeyCode == Enum.KeyCode.D then keys.d = false
elseif i.KeyCode == Enum.KeyCode.Space then keys.space = false
elseif i.KeyCode == Enum.KeyCode.LeftControl then keys.lctrl = false end
end)
flyLoop = game:GetService("RunService").Heartbeat:Connect(function()
local dir = Vector3.new(0,0,0)
local cam = game.Workspace.CurrentCamera
if keys.w then dir += cam.CFrame.LookVector end
if keys.s then dir -= cam.CFrame.LookVector end
if keys.a then dir -= cam.CFrame.RightVector end
if keys.d then dir += cam.CFrame.RightVector end
if keys.space then dir += Vector3.new(0, 1, 0) end
if keys.lctrl then dir -= Vector3.new(0, 1, 0) end
bg.cframe = cam.CFrame
bv.velocity = dir.Magnitude > 0 and dir.Unit * flySpeed or Vector3.new(0,0,0)
end)
end
local function stopFly()
flying = false
local char = game.Players.LocalPlayer.Character
if char and char:FindFirstChild("HumanoidRootPart") then
if char.HumanoidRootPart:FindFirstChild("BodyGyro") then char.HumanoidRootPart.BodyGyro:Destroy() end
if char.HumanoidRootPart:FindFirstChild("BodyVelocity") then char.HumanoidRootPart.BodyVelocity:Destroy() end
char.Humanoid.PlatformStand = false
end
if controlHandler then controlHandler:Disconnect() end
if flyLoop then flyLoop:Disconnect() end
end
Section:NewToggle("Ucusu Ac/Kapat", "Ucmanizi saglar", function(state)
if state then startFly() else stopFly() end
end)
Section:NewSlider("Ucus Hizi", "Hizini ayarla", 250, 10, function(s)
flySpeed = s
end)
-- YAPIMCI: UZİ