Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

(Solved) Won't assign value to ObjectValue?

Asked by 4 years ago
Edited 4 years ago

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?

0
object is nil Fifkee 2017 — 4y
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. imKirda 4491 — 4y
0
That's my problem. I can't assign a value to CurrentInstance. Diamo_YT 68 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

I found the problem. There was two Parts.

Ad

Answer this question