local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() repeat task.wait() until Rayfield local UIS = game:GetService("UserInputService") local RunService = game:GetService("RunService") local Camera = workspace.CurrentCamera local Window = Rayfield:CreateWindow({ Name = "zs Hub", LoadingTitle = "zs", LoadingSubtitle = "by zs", ConfigurationSaving = { Enabled = false } }) local Tab = Window:CreateTab("Settings", 4483362458) local GyroEnabled = false local Sensitivity = 0.1 local Smoothing = 0.05 local lastCFrame = nil local currentRotation = Vector3.new(0, 0, 0) Tab:CreateToggle({ Name = "Enable Gyro", CurrentValue = false, Callback = function(Value) GyroEnabled = Value if Value then UIS.GyroscopeEnabled = true lastCFrame = nil currentRotation = Vector3.new(0, 0, 0) Rayfield:Notify({Title = "zs", Content = "Gyroscope System Active"}) end end, }) RunService.RenderStepped:Connect(function() if GyroEnabled then local rot, cframe = UIS:GetDeviceRotation() if cframe then if not lastCFrame then lastCFrame = cframe end local delta = cframe * lastCFrame:Inverse() local x, y, z = delta:ToEulerAnglesXYZ() if math.abs(x) < 0.001 then x = 0 end if math.abs(y) < 0.001 then y = 0 end local targetX = -x * Sensitivity * 15 local targetY = -y * Sensitivity * 15 currentRotation = currentRotation:Lerp(Vector3.new(targetX, targetY, 0), Smoothing) Camera.CFrame = Camera.CFrame * CFrame.Angles(currentRotation.X, currentRotation.Y, 0) lastCFrame = cframe end end end)