Roblox Wiki
Roblox Wiki
36,950
pages
Missing API Documentation
This API Class does not have any or complete API documentation. Please add API documentation if possible.

The ObjectValue class inherits from Instance. An ObjectValue instance is capable of storing a reference to an object within its Value property, but does NOT store the actual object as a descendant. Attempting to pass a client-side object to the server using this class will result in failure due to the fact that the object doesn't exist on the server itself.

This code sample creates an ObjectValue in the Workspace light iconWorkspace dark iconWorkspace which holds a reference to an Instance in the workspace named “Baseplate”.

local objectValue = Instance.new("ObjectValue")
objectValue.Name = "MyBaseplateReference"
objectValue.Value = workspace:FindFirstChild("Baseplate")
objectValue.Parent = workspace

Properties

Value: Instance

This class member is missing documentation. Create or add to its subpage at Class:ObjectValue/Value.
  • Category: Data.
  • Serialization: can save and load.
  • Thread safety: read safe

Events

Changed(value: Instance)

Parameters
NameType
valueInstance
  • Thread safety: unsafe

changed(value: Instance)

  • DeprecatedThis member will be phased out and should be avoided while it is still available.
Parameters
NameType
valueInstance

Use Changed instead.

  • Thread safety: unsafe

External links[]