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

How to change values of ObjectValues?

Its probably incredibly easy but when i do ObjectValue.Value = game.Workspace.Part it wont change the value

1 comment

0

It should work. Maybe ObjectValue and Part is nil.

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.