local plr=game.Players.LocalPlayer local uis=game:GetService("UserInputService") local rs=game:GetService("RunService") local cg=game:GetService("CoreGui") local fly=false local speed=100 local screen=Instance.new("ScreenGui",cg) local btn=Instance.new("TextButton",screen) btn.Size=UDim2.new(0,40,0,40) btn.Position=UDim2.new(1,-50,0,10) btn.BackgroundColor3=Color3.new(0,0,0) btn.Text="X" btn.TextColor3=Color3.new(1,0,0) btn.TextScaled=true local function toggle() fly=not fly local root=plr.Character.HumanoidRootPart local hum=plr.Character.Humanoid if fly then local bv=Instance.new("BodyVelocity",root)bv.MaxForce=Vector3.new(9e9,9e9,9e9)bv.Velocity=Vector3.new(0,0.1,0) local bg=Instance.new("BodyGyro",root)bg.MaxTorque=Vector3.new(9e9,9e9,9e9)bg.P=20000 rs.Heartbeat:Connect(function()if fly then local cam=workspace.CurrentCamera.CFrame local move=hum.MoveDirection local up=(uis:IsKeyDown(Enum.KeyCode.Space)and1 or0)+(uis:IsKeyDown(Enum.Key