isnetworkowner Synchronous

Check whether an unanchored BasePart currently appears owned by the local client. It helps decide whether a client-side physics observation is likely to reflect local simulation.

Syntax
Luau
isnetworkowner(part: BasePart) -> boolean

Parameters

Function parameters
ParameterTypeDescription
partBasePartBasePart to inspect.

Returns

boolean

true when the part is unanchored and ReceiveAge is zero; false otherwise.

Usage notes

Anchored parts return false. Ownership can change after this snapshot; validate the part again when that matters.

Example

Example
Luau
local player = game:GetService("Players").LocalPlayer
local character = player and player.Character
local root = character and character:FindFirstChild("HumanoidRootPart")
if root then print("Locally owned:", isnetworkowner(root)) end
Kawaii documentation