Skip to content

Scene ​

Inherits Model → PVInstance → Instance.

A service: the global Scene is the game's one Scene.

Properties ​

NameTypeNotes
CurrentCameraCamera?
Gravitynumber
PhysicsEnabledboolean

Methods ​

  • Blockcast(cframe: Transform, size: Vector3, direction: Vector3, raycastParams: RaycastParams?): RaycastResult?
  • GetPartBoundsInBox(cframe: Transform, size: Vector3, overlapParams: OverlapParams?): {BasePart}
  • GetPartBoundsInRadius(position: Vector3, radius: number, overlapParams: OverlapParams?): {BasePart}
  • GetPartsInPart(part: BasePart, overlapParams: OverlapParams?): {BasePart}
  • Raycast(origin: Vector3, direction: Vector3, raycastParams: RaycastParams?): RaycastResult?
  • Shapecast(part: BasePart, direction: Vector3, raycastParams: RaycastParams?): RaycastResult?
  • Spherecast(position: Vector3, radius: number, direction: Vector3, raycastParams: RaycastParams?): RaycastResult?

Inherited ​

From Model: GetBoundingBox, GetExtentsSize, PrimaryPart.

From PVInstance: GetPivot, PivotTo.

From Instance: AddTag, AncestryChanged, Archivable, AttributeChanged, Changed, ChildAdded, ChildRemoved, ClassName, ClearAllChildren, Clone, DescendantAdded, DescendantRemoving, Destroy, Destroying, FindFirstAncestor, FindFirstAncestorOfClass, FindFirstAncestorWhichIsA, FindFirstChild, FindFirstChildOfClass, FindFirstChildWhichIsA, GetAttribute, GetAttributeChangedSignal, GetAttributes, GetChildren, GetDescendants, GetFullName, GetPropertyChangedSignal, GetTags, HasTag, IsA, IsAncestorOf, IsDescendantOf, IsPropertyModified, Name, Parent, QueryDescendants, RemoveTag, ResetPropertyToDefault, SetAttribute, WaitForChild.

Apache License 2.0