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

Values not readable?

Asked by 10 years ago

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

0
What is v.Image.Value equal to? And nice name by the way RedCombee 585 — 10y
0
What is v.Image.Value? Is it a stringvalue? It should be. And the value should be something like "rbxassetid://IDhere"  Tempestatem 884 — 10y
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 tanoflame 22 — 10y

1 answer

Log in to vote
0
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
10 years ago

Are you attempting to access the Texture property?

Ad

Answer this question