im probs just overlooking something but coin isnt going false and coin1 isnt going true same problem with coin2 going false and coin 3 going true i need the while true do for the "label.text = bronze"
01 | while true do |
02 | wait() |
03 | local plr = game:GetService( "Players" ).LocalPlayer |
04 | local coin = plr.PlayerGui.Value.Frame.TextLabel.Bronze |
05 | local coin 2 = plr.PlayerGui.Value.Frame.TextLabel.Silver |
06 | local coin 3 = plr.PlayerGui.Value.Frame.TextLabel.Gold |
07 | local label = plr.PlayerGui.Value.Frame.TextLabel |
08 | local Bronze = plr.leaderstats.Bronze.Value |
09 | local Silver = plr.leaderstats.Silver.Value |
10 | local Gold = plr.leaderstats.Gold.Value |
11 | label.Text = Bronze |
12 |
13 | if Bronze > = 100 then |
14 | coin.Visible = false |
15 | coin 2. Visible = true |
https://cdn.discordapp.com/attachments/487247357742940163/511624820006584330/unknown.png
You cannot use .Value in variable.
Put a local script in your frame
Try to use it:
01 | repeat wait() until game.Players.LocalPlayer |
02 | local plr = game:GetService( "Players" ).LocalPlayer |
03 |
04 | while wait() do |
05 | local coin = script.Parent.TextLabel.Bronze |
06 | local coin 2 = script.Parent.TextLabel.Silver |
07 | local coin 3 = script.Parent.TextLabel.Gold |
08 | local label = script.Parent.TextLabel |
09 | local Bronze = plr.leaderstats.Bronze |
10 | local Silver = plr.leaderstats.Silver |
11 | local Gold = plr.leaderstats.Gold |
12 | label.Text = tostring (Bronze.Value) |
13 | if Bronze.Value > = 100 then |
14 | coin.Visible = false |
15 | coin 2. Visible = true |