Hey, I just made it so my game saves data. Now I’m trying to figure out how to get my GUI to update with this data rather than show what a new player would see.
For example, in the game when you level up it unlocks the ability to teleport to the next area.
My character has levelled up to this point, but the GUI doesn’t recognize it.
I thought this would be a simple fix, but I can’t get it to work for some reason.
Here’s the code I’ve tried:
players.PlayerAdded:Connect(function() if level >= 1 then MoonRod.Visible = true LOCKEDRod.Visible = false lockedTP.Visible = false CloudTP.AutoButtonColor = true board.TextLabel.Text = "Apprentice" end
These are all the things that should be updated when you level up. I first tried this code in my GuiScript (StarterGui > Main > GuiScript). When that didn’t work, I changed it to:
players.PlayerAdded:Connect(function() player.CharacterAdded:Connect(function() ...yatta yatta
Still no luck. So I also tried both in StarterPlayerScripts because why not but that didn’t work either lol.
Anyone know how to fix this?