TextLabel Text not updating

Hello,

I’ve been trying to update the text of a TextLabel using a localscript, because I’ve been trying to make a simple Level and XP system. The problem is, my script works perfectly fine when it’s a server script, except the information itself updating after the player levels up. However, I just can’t make it work on a localscript. Any help would be much appreciated.

Script:

image

1 Like

I think it’s because you are updating StarterGui, but you have to update the similar replicated fields in game.Players.

2 Likes

Game.Players.LocalPlayer.PlayerGui

That is incorrect, it is PlayerGui, not StarterGui.