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 3 years ago
Edited 3 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 — 3y
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 — 3y
0
That's my problem. I can't assign a value to CurrentInstance. Diamo_YT 68 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

I found the problem. There was two Parts.

Ad

Answer this question