So I have a nametag gui which also displays a players level above their name however it seems to be a 50/50 if that value is actually the correct value as seen below:
The one on the left is working while the one on the right should display “Level: 3” but instead just stays at 1.
This is the script:
Ive tried doing the following:
But this makes the gui only appear above 1 player as seen below: (though it works for that 1 player)
Changed level from 2 to 3 and still stays at 2, also the other players randomly works every now and then like in the screenshot where it says 3 while most of the time it stays at 1
you are running this on .Changed, meaning the UI will only ever appear if a player levels up, this also means it will create a UI every time a player levels up. All of this code should be in CharacterAdded, the only thing that should be in .Changed is changing the UI’s Text via "Level: "..val Obviously you would also need this line outside the script as well