I have zero idea of what is happening! For hours I am trying to figure this out.
Before a player gets teleported in a game for a matchmaking service, I save their teleport data so it’s secure since the actual teleport data is client side.
Here is their data before they go into the game. I print the data to make sure this is the exact data that I save.
local teams = {
Team1 = {
player1 = {
playerName = "Gold",
teamColor = "Bright green"
},
},
Team2 = {
player1 = {
playerName = "Yoo",
teamColor = "Bright red"
},
}
}
And here is the data that comes out the other end.
local teams = {
Team1 = {
player1 = {
playerName = "Gold",
teamColor = "Bright green"
},
},
Team2 = {
player1 = {
playerName = "Yoo",
teamColor = nil
},
}
}
I can’t figure out why teamColor keeps coming out to nil. Seriously. I print the data right before I save it, and I print the data right after it loads. Both games use the same datastore. I doubt anything else is changing it because if so the playerNames would be different. I don’t know what you can do to help but this is worth posting because I cant fix whatever is happening…