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

(Solved) Won't assign value to ObjectValue?

I am trying to make a script that requires an instance to be saved somewhere. The problem is that this line won't work:

local object = game.Workspace.Part
CurrentInstance.Value = object --This line won't work

There are no errors. Does anyone have a solution?

3 comments

0

object is nil

0

Try printing the CurrentInstance's value, if it is nil then fifkee is right. Also idk if that would be the reason but if it is local script then some stuff won't be saving globally.

0

That's my problem. I can't assign a value to CurrentInstance.

1 answer

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