Skip to content

Service · inherits Instance

PlayerViewService

Official docs ↗

Provides a way to get additional information about a player's view.

About PlayerViewService

PlayerViewService provides a way to get additional information about a player's view.

Methods 1

  • GetDeviceCameraCFrame(player: Player = nil) → CFrameReturns a world space CFrame looking at the player's character.

    Returns a world space CFrame looking at the player's character, such that setting the current camera's CFrame will view that character from the perspective of their device.

    This method leverages the device's camera and it only functions on mobile devices. If no information is available, for example the user is not on a mobile device or they don't have their camera turned on, this method returns a CFrame.identity.

PlayerViewService also has every member of Instance. Deprecated and Roblox-only members are hidden.

Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.