Image won't show if leaderstats is this high?
Asked by
5 years ago Edited 5 years ago
So, I want to make a collecting game and the catalog shows the collectibles you have. I made all of the collectibles leaderstats so you can save it. So, I made the image in the gui have a value and a script. Here it is:
02 | mlvl = script.Parent.Lvl.Value |
11 | local user = game.Players.LocalPlayer |
12 | local stats = user:findFirstChild( "leaderstats" ) |
13 | local Lvl = stats.Molly |
15 | if stats ~ = nil and Lvl.Value > = mlvl then |
17 | script.Parent.Parent.Molly.ImageTransparency = 1 |
25 | if Lvl.Value < mlvl then |
27 | script.Parent.Parent.Molly.ImageTransparency = 0 |
So if you have this much leaderstat, the image will show up, basically. So, the problem is, the image doesn't show up. Thank you!