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

Help with image and strings?

Asked by 8 years ago
selectedimage.Value = v.Image.Image

20:32:08.063 - Players.Player.PlayerGui.ScreenGui.ShopFrame.ShopScript:70: bad argument #3 to 'Value' (string expected, got nil) Shouldn't the Image already be a string??

0
Perhaps you should give us extra context to the values. User#6546 35 — 8y
0
You could try setting a variable to tostring, so String = tostring(v.Image.Image), then selectimage.Value = String FireFruit226 35 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

This is occuring because you're trying to place a nil value into selectedimage.Value. This means v.Image.Image is returning nil instead of the string you want. Check to see if v.Image.Image is the correct way to get the string you want.

0
Your answer made no sense.. v.Image.Image has a string value, which is the items image. And selectedimage.Value is a stringvalue NinjoOnline 1146 — 8y
0
Well, that's what I'd think, too, but the error message says otherwise. iconmaster 301 — 8y
Ad

Answer this question