How do i make it so i can look around like a player with a stationary camera

Have you tried setting the camera type to scriptable?

Edit: You have.

So you what your asking is, that you want the camera to move, be able to fully look left & right while the player is stationary?

Not entirely sure on what you exactly want to achieve, so if this isn’t correct, please elaborate:


local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local camera = workspace.CurrentCamera

camera.CameraType = Enum.CameraType.Scriptable

local mouse = UserInputService:GetMouseLocation() -- get the initial position of the mouse

UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter -- lock the mouse to the center

local function updateCameraPosition()
    local mouseDelta = UserInputService:GetMouseDelta()
    
    -- Here, you can process mouseDelta.x and mouseDelta.y to move/rotate the camera.
    -- For simplicity, we're assuming camerapart is a valid reference you've defined elsewhere.
    local newCameraPosition = camera.CFrame.Position + Vector3.new(mouseDelta.x, mouseDelta.y, 0)
    camera.CFrame = CFrame.new(newCameraPosition, mouse.Hit.Position)
end

RunService.RenderStepped:Connect(updateCameraPosition)

UserInputService.InputChanged:Connect(function(input, isProcessed)
    if not isProcessed and input.UserInputType == Enum.UserInputType.MouseMovement then
        updateCameraPosition()
    end
end)

Just change the player’s camera’s max zoom the minimum. :skull: That’s literally it and no need for advanced scripts.

brother
camera like a actual camera (security camera)

Can’t understand what you mean, sorry. :c

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.