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
object is nil
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.
That's my problem. I can't assign a value to CurrentInstance.