I am trying to make an imagelabel change if an intvalue's value is 1, if not it prints the value chosen.
The error occurs on line 3, this is the error, "Decals is not a valid member of ServerStorage "ServerStorage" "
local SS = game.ServerStorage
local DecalsList = SS.Decals
local Value = script.Parent.Value.Value
Value.Value = math.random(0,10)
print(Value)
if Value == 1 then
script.Parent.Image = SS.Decals.MakatoNaegi.Texture
print("MakatoNaegi Choosen!")
end

4 comments
Thanks! But i do have a question, in the output it printed out "value" instead of the actual number.
my question is why?
I don't know why you have two value in "script.Parent.Value.Value", its confusing, but v.Value is basically the value of "script.Parent.Value.Value". so if u want to print the actual number its v.Value instead of just v
Oh, makes a lot of sense actually, thanks!