#Data not replicating in game every other time I join?
1 messages · Page 1 of 1 (latest)
Hey
Show script pls
am sending now
i thought what i added would fix it
apparently not
it's legit every OTHER time
its the weirdest thing
No errors in the output ?
nope
and i have all the warns too lol
geniunely the most confusing issue ive ever faced
im assuming its something with replication
cause it works js fine in studio test
On top the RBXScriptsConnection PlayerAdded (the last line of your script) make a for loop that itinerates trhu all the players and load their data
alr
im not sure if it has to do with the data tho
the data loads just fine and even prints
Like for _, Player in Players:GetPlayers() do LoadData(Player) end
from that code
Sorta
yeah i get it
Just making sure to load the player’s data
Cuz the player can load before the server
i js dont understand why it only happens every other time then
id assume it would be like
less static than that
Especially while playing testing since you’re the first player in the server
true
Just in case
After that I would debug every functions handling data with prints
Print the data when you load, save, etc.
i did that and it was fine for all of them even when the shovel wasnt loaded into the backpack
In game or in studio ?
in game
Thought the data wasn’t loading correctly
i shouldve worded that better
i meant whats not being loaded in is the items into the backpack
every other time
First time it works
second time nope
third time yep
so on and so forth
and it never changes from that
ive been leaving and rejoining for like
20 minutes straight trying to see if itll do it twice in a row
it also like just started happening out of the blue
i didnt change anything in that script
it was fine until it randomly wasnt
Then i don’t and I don’t have much time
all good thanks for the effort
thanks man
itll be an all day thing i can feel it
i added a print
that checks if the shovel's parent is the backpack
and despite not being in the backpack
it prints that it is lol
nvm i fixed it
** You are now Level 5! **
i dont even know what the issue was
but something i did fixed it
so im not gonna touch it
okay well it unfixed itself
now it just doesnt show up in the backpack in actual games 100% of the time
but it prints all of this
horrible
works in testing on studio
GGs
it was the fact when a player joins their backpack is deleted and remade
