Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Values not readable?

I have some stuff in a script:

v.MouseButton1Click:connect(function()
			v.Parent.Info.Visible = true
	v.Parent.Info.InfoBox.BuyButton.Cash.Value = v.Price.Value
	v.Parent.Info.InfoBox.BuyButton.Text = "Buy -"..v.Price.Value.." Cash"
	v.Parent.Info.DescLabel.Text = v.Desc.Value
	v.Parent.Info.NameLabel.Text  = v.Name
		v.Parent.Info.CarImage.Image = v.Image.Value

but when it gets to

v.Parent.Info.CarImage.Image = v.Image.Value

it says

06:30:20.623 - String expected
06:30:20.625 - Script 'Players.Player1.PlayerGui.CarShopGUI.ScrollingFrame.LocalSc', Line 9
06:30:20.627 - Stack End

Can anyone tell me how to fix that or how to read a value properly? CarImage is an ImageLabel and Image is a StringValue

3 comments

0

What is v.Image.Value equal to? And nice name by the way

0

What is v.Image.Value? Is it a stringvalue? It should be. And the value should be something like "rbxassetid://IDhere" 

0

since i had it parented in an imagebutton it thought i was looking for the image of the imagebutton so i just had to change its name

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.