local player = game.Players.LocalPlayer local camera = workspace.CurrentCamera -- Create a draggable GUI local screenGui = Instance.new("ScreenGui", player.PlayerGui) local draggableFrame = Instance.new("Frame", screenGui) draggableFrame.Size = UDim2.new(0, 200, 0, 100) draggableFrame.Position = UDim2.new(0.5, -100, 0.5, -50) draggableFrame.BackgroundColor3 = Color3.fromRGB(128, 128, 128) local outlineFrame = Instance.new("Frame", draggableFrame) outlineFrame.Size = UDim2.new(0, 180, 0, 60) outlineFrame.Position = UDim2.new(0, 10, 0, 10) outlineFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255) outlineFrame.BorderSizePixel = 5 local fovInput = Instance.new("TextBox", outlineFrame) fovInput.Size = UDim2.new(0, 160, 0, 40) fovInput.Position = UDim2.new(0, 10, 0, 10) fovInput.PlaceholderText = "Enter FOV (max 120)" local setFovButton = Instance.new("TextButton", outlineFrame) setFovButton.Size = UDim2.new(0, 160, 0, 30) setFovButton.Position = UDim2.new(0, 10, 0, 50) setFovButton.Text = "Set FOV" -- Draggable functionality local dragging = false local startPos draggableFrame.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true startPos = input.Position end end) draggableFrame.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = false end end) draggableFrame.InputChanged:Connect(function(input) if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then local delta = input.Position - startPos draggableFrame.Position = draggableFrame.Position + UDim2.new(0, delta.X, 0, delta.Y) startPos = input.Position end end) -- Set FOV functionality setFovButton.MouseButton1Click:Connect(function() local fovValue = tonumber(fovInput.Text) if fovValue and fovValue >= 1 and fovValue <= 120 then camera.FieldOfView = fovValue else print("Please enter a valid FOV between 1 and 120.") end end)