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

Help with strings?

Asked by 8 years ago
selectedimage.Value = v.Image.Value -- Error here

bad argument #3 to 'Value' (string expected, got nil)

selectedimage.Value has no value yet, but when I try to give it one it doesn't work. v.Image.Value is a StringValue and the value is: http://www.roblox.com/asset?id=155344898

I am trying to set the selectedimage.Value to http://www.roblox.com/asset?id=155344898 but it doesn't work, and it gets nil somehow. Please help!

0
You totally posted this once already, and I said we need more context. Try adding `or ''` after the `v.Image.Value` User#6546 35 — 8y
0
Well this is all the context required... Basically it's just in a for loop, but that isn't necessary. I have said what is going wrong, what need to happen. NinjoOnline 1146 — 8y
0
As eLunate said, we need more context. What you posted works perfectly if both `v.Image` and `selectedimage` are StringValue objects. BlackJPI 2658 — 8y

Answer this question