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

Is this script going to work?

Asked by 10 years ago

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

Log in to vote
0
Answered by 10 years ago

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

Ad
Log in to vote
0
Answered by 10 years ago

Aggrement with blue

Answer this question