Collapse Sidebar


The CanSetNetworkOwnership function checks whether you can set a BasePart|part's network ownership.

The function’s return value verifies whether or not you can call BasePart/SetNetworkOwner or BasePart/SetNetworkOwnershipAuto without encountering an error. It returns true if you can modify/read the network ownership, or returns false and the reason you can’t, as a string.

##See Also


Return Type Summary

Whether you can modify/read the network ownership, as well as a reason if you cannot

Code Samples

Check if a Part's Network Ownership Can Be Set

This example checks whether or not the network ownership of the first BasePart named Part in the Workspace can be set.