Glorpia Docs
Services

Workspace

The root of the live world hierarchy and the home of the current Camera and physics raycasts.

Access

Luau
local Workspace = game:GetService("Workspace")

print(Workspace == game.Workspace)
print(Workspace == workspace)
workspace, game.Workspace, and game:GetService("Workspace") all expose the same Workspace service.

Members

NameTypeDescription
CurrentCameraclient CameraThe active client Camera object. It is unavailable to public ServerScripts.
Raycast(origin, direction)methodCasts through physics. The direction vector's length is the maximum cast distance.
FindFirstChild(name, recursive?)methodFinds a child or descendant.
FindFirstChildOfClass(className)methodFinds the first direct child with the exact ClassName.
GetChildren()methodReturns direct children.
GetDescendants()methodReturns all descendants.
IsA(className)methodReturns true for Workspace and Instance.
GetFullName()methodReturns Workspace.

Hierarchy and rendering

Workspace ancestry determines whether physical Parts belong to the live rendered world. A Part does not need to be a direct Workspace child: it can be nested beneath Camera, Humanoid, another Part, a Value object, Model, Folder or another Instance and still render and participate in world physics while it remains a Workspace descendant.

Workspace also resolves direct child names through indexing, so workspace.Part can access a direct child named Part. For optional objects, FindFirstChild() is safer because it clearly returns nil when missing.

Related pages