Ok, do you have scripts that change players’ names (e.g. scripts that add name tags)?
Yea I have ranks and crown script
Ok, you should keep track of the player’s original name from before adding nametags were added, so you can use the original name for identifying the player’s saved data instead of using the player name
function.
Do you set each player’s ‘Original Name’ variable when they join?
Yesni have set it to "set variable original name of triggering player as triggering players name
Can you show the script where you set the variable?
Is the ‘player joins’ script above the script that gives players nametags in the script list?
No I have a script called ranks it’s when you consume a item it changes your name.
Unit and player
Oh, I missed something. This is supposed to be get element at index 0 of dataItem
, not get element at index 0 of savedData
.
So do I keep original name of triggering player
Yes, you keep using original name.
I can’t do it what not good?
You can’t do it? If it’s hard for you, then you don’t need to do this. Or, I can help you with it. How about that?
What do you mean it’s not good? This Load and Save Data System only works for how long your server runs, for example 5 hours. It’s not
a permanent saving.
What kyle’s states that it only works temporary, this saving data system will be cleared when the gane shuts down or is republished since global variables are stored on game servers.