How do I change image gui by leaderstats?
Asked by
4 years ago Edited 4 years ago
Hello! I am trying to change the image of the gui depending on the leaderstats.
It is in serverStorage because that is where the billboard gui is in
EDIT 1:
BTW it is a overhead Gui
Here is the code.
01 | local LP = game.Players.LocalPlayer |
02 | local Image = script.Parent |
03 | local leaderstats = LP:WaitForChild( "leaderstats" ) |
04 | local Time = leaderstats:WaitForChild( "Time" ) |
05 | game.Players.PlayerAdded:Connect( function () |
07 | Time:GetPropertyChangedSignal( "Value" ):Connect( function () |
09 | if Time.Value > = 0 then |
12 | if Time.Value > = 60 then |
15 | if Time.Value > = 400 then |
18 | if Time.Value > = 500 then |
21 | if Time.Value > = 1000 then |
24 | if Time.Value > = 1200 then |
27 | if Time.Value > = 1600 then |
30 | if Time.Value > = 2000 then |
33 | if Time.Value > = 3000 then |
36 | if Time.Value > = 6000 then |
39 | if Time.Value > = 1000 then |