I'm trying to implement a basic Level system for a test on a future project, I've tried solutions from multiple sources however none of them have worked for me. It's being called in a LocalScript.
This is the current script I'm using (doesn't update to what the value is, only shows what I put in the TextLabel as a placeholder):
while true do game.PlayerGui.PlayerInfo.Level.Text = "Level ".. game.ReplicatedStorage.Level.Value end
Originally I was using this and the value would show however it wouldn't update:
script.Parent.Text = "Level ".. game.ReplicatedStorage.Level.Value
Any help would be appreciated!
What I'd recommend doing is putting is putting an IntValue in the player on spawn which is their level, and use the Value.Changed event then just use the game.PlayerGui.PlayerInfo.Level.Text = "Level ".. line in the function.