isnetworkowner
Checks if the local player owns a part's physics simulation.
Syntax
isnetworkowner(part: BasePart) -> booleanParameters
| Parameter | Type | Description |
|---|---|---|
part | BasePart | The part to check |
Returns
| Type | Description |
|---|---|
boolean | True if local player is network owner |
Description
isnetworkowner checks whether the local client has network ownership of a part, meaning they control its physics simulation.
Example
local part = Instance.new("Part")
part.Anchored = false
part.Parent = workspace
if isnetworkowner(part) then
print("You own this part's physics")
-- Can manipulate physics reliably
part.Velocity = Vector3.new(0, 50, 0)
else
print("Server or another player owns this part")
end
part:Destroy()Notes
- Network ownership affects physics simulation authority
- Ownership is assigned by the game and can change while the part is in the world