Provides a way to get additional information about a player's view.
Its interface does not cross the network boundary.
Instances of this class cannot be created with Instance.new.
It is a singleton that may be acquired with GetService.
Tags: [NotCreatable, Service, NotReplicated]
History Member 595 GetDeviceCameraCFrame ( player: Player = Player ) : CFrame 609 GetDeviceCameraCFrameForSelfView ( ) : CFrame 608 OnCameraCFrameReplicationRequest ( ) : null 725 UpdateDeviceCFrame ( player: Player = Player, cframe: CFrame = 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, timestamp: int64 = 0 ) : null 68 members inherited from Instance731 Archivable : bool 731 Attributes : string 731 AttributesReplicate : string 731 AttributesSerialize : BinaryString 731 Capabilities : SecurityCapabilities 731 DataCost : int 731 DefinesCapabilities : bool 731 HistoryId : UniqueId 731 IsInSandbox : bool 731 Name : string 731 Parent : Instance 731 PredictionMode : PredictionMode 731 PropertyStatusStudio : PropertyStatus 731 RobloxLocked : bool 731 Sandboxed : bool 731 SourceAssetId : int64 731 Tags : SharedString 731 UniqueId : UniqueId 731 archivable : bool 731 numExpectedDirectChildren : int 576 AddTag ( tag: string ) : null 573 ClearAllChildren ( ) : null 462 Clone ( ) : Instance 573 Destroy ( ) : null 486 FindFirstAncestor ( name: string ) : Instance 486 FindFirstAncestorOfClass ( className: string ) : Instance 486 FindFirstAncestorWhichIsA ( className: string ) : Instance 486 FindFirstChild ( name: string , recursive: bool = false ) : Instance 486 FindFirstChildOfClass ( className: string ) : Instance 486 FindFirstChildWhichIsA ( className: string , recursive: bool = false ) : Instance 486 FindFirstDescendant ( name: string ) : Instance 563 GetActor ( ) : Actor 486 GetAttribute ( attribute: string ) : Variant 462 GetAttributeChangedSignal ( attribute: string ) : RBXScriptSignal 631 GetAttributes ( ) : Dictionary 648 GetChildren ( ) : Instances 462 GetDebugId ( scopeLength: int = 4 ) : string 707 GetDescendants ( ) : Instances 486 GetFullName ( ) : string 706 GetStyled ( name: string , selector: string? ) : Variant 657 GetStyledPropertyChangedSignal ( property: string ) : RBXScriptSignal 576 GetTags ( ) : Array 576 HasTag ( tag: string ) : bool 486 IsAncestorOf ( descendant: Instance ) : bool 486 IsDescendantOf ( ancestor: Instance ) : bool 664 IsPropertyModified ( property: string ) : bool 698 QueryDescendants ( selector: string ) : Instances 573 Remove ( ) : null 576 RemoveTag ( tag: string ) : null 664 ResetPropertyToDefault ( property: string ) : null 573 SetAttribute ( attribute: string , value: Variant ) : null 462 WaitForChild ( childName: string , timeOut: double ) : Instance 731 children ( ) : Instances 731 clone ( ) : Instance 731 destroy ( ) : null 731 findFirstChild ( name: string , recursive: bool = false ) : Instance 731 getChildren ( ) : Instances 731 isDescendantOf ( ancestor: Instance ) : bool 731 remove ( ) : null 462 AncestryChanged ( child: Instance , parent: Instance ) 462 AttributeChanged ( attribute: string ) 462 ChildAdded ( child: Instance ) 462 ChildRemoved ( child: Instance ) 462 DescendantAdded ( descendant: Instance ) 462 DescendantRemoving ( descendant: Instance ) 500 Destroying ( ) 657 StyledPropertiesChanged ( ) 731 childAdded ( child: Instance ) 6 members inherited from Object731 ClassName : string 731 className : string 647 GetPropertyChangedSignal ( property: string ) : RBXScriptSignal 647 IsA ( className: string ) : bool 731 isA ( className: string ) : bool 647 Changed ( property: string )
PlayerViewService provides a way to get additional information about a
player's view.
725
Change Parameters of UpdateDeviceCFrame
from
( player: Player = Player, cframe: CFrame = Identity, timestamp: int64 = 0 )
to
( player: Player = Player, cframe: CFrame = 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, timestamp: int64 = 0 ) 609
Add GetDeviceCameraCFrameForSelfView608
Add UpdateDeviceCFrame608
Add OnCameraCFrameReplicationRequest595
Add GetDeviceCameraCFrame595
Add PlayerViewServiceReturns 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 .
History 1 GetDeviceCameraCFrameForSelfViewParameters (0 ) No parameters. Returns (1 ) CFrame
History 1 OnCameraCFrameReplicationRequestParameters (0 ) No parameters. Returns (1 ) null
History 1 Parameters (3 ) Default player Player Playercframe CFrame 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1 timestamp int64 0 Returns (1 ) null
History 2 725
Change Parameters of UpdateDeviceCFrame
from
( player: Player = Player, cframe: CFrame = Identity, timestamp: int64 = 0 )
to
( player: Player = Player, cframe: CFrame = 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, timestamp: int64 = 0 ) 608
Add UpdateDeviceCFrame