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.
Luau
isnetworkowner(part: BasePart) -> booleanParameters
| Parameter | Type | Description |
|---|---|---|
part | BasePart | BasePart to inspect. |
Returns
booleantrue 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
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