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!

3 comments

0

You totally posted this once already, and I said we need more context. Try adding or '' after the v.Image.Value

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.

0

As eLunate said, we need more context. What you posted works perfectly if both v.Image and selectedimage are StringValue objects.