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 = workspace.Part
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")
endNotes
- Network ownership affects physics simulation authority
- Use
setsimulationradiusto expand ownership range
Related Functions
setsimulationradius- Set simulation radius