Its probably incredibly easy but when i do ObjectValue.Value = game.Workspace.Part it wont change the value
✓ ANSWER ACCEPTED
How to change values of ObjectValues?
1 answer
✓ Accepted answer
I think that your problem is that you are forgetting to define where ObjectValue is located. I tried this out and it worked:
local oValue = game.Workspace.ObjectValue
oValue.Value = game.Workspace.Part
local part = oValue.Value
print(part.Name)
I hope this helps. Have a great day scripting!
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
It should work. Maybe ObjectValue and Part is nil.