Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

I need help with ObjectValues and what they are?!

I have come across object values and Im wondering what they are and how to change the values of them!

2 answers

✓ Accepted answer

An ObjectValue is an Instance which contains a reference value to another Instance.

local part = Instance.new("Part", workspace)
part.Name = "A Testy Test"

local objValue = Instance.new("ObjectValue", workspace)
objValue.Value = part

print(objValue.Value.Name)

This discussion is preserved as it was. New answers, comments, and votes are closed.