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

Is this script going to work?

a = script.Parent.Parent.StarterPack.Stars.Value b = script.Parent.Parent.StarterGUI.ScreenGui if a == 1 then b.Star1.ImageTransparency = 0 end if a == 2 then b.Star1.ImageTransparency = 0 b.Star2.ImageTransparency = 0 end if a == 2 then b.Star1.ImageTransparency = 0 b.Star2.ImageTransparency = 0 b.Star3.ImageTransparency = 0 end if a == 2 then b.Star1.ImageTransparency = 0 b.Star2.ImageTransparency = 0 b.Star3.ImageTransparency = 0 b.Star4.ImageTransparency = 0 end if a == 2 then b.Star1.ImageTransparency = 0 b.Star2.ImageTransparency = 0 b.Star3.ImageTransparency = 0 b.Star4.ImageTransparency = 0

end

So, in my StarterPack I have a Value called Stars, which represents the number of stars appear when a crime is committed. Star1, Star2, Star3, etc. represents the 5 possible Stars that can show up. They are all currently transparent, until (I assume) the Value in the StarterPack goes up..

2 answers

Please try putting your code snip in a code block so that it is actually readable.

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