#Data not replicating in game every other time I join?

1 messages · Page 1 of 1 (latest)

soft grove
#

I have a function which loads a player's items based off of their data stores on join. However, every other time I join the published game (not studio test cause it always works in studio). I am assuming it is a replication glitch

soft grove
#

am sending now

#

i thought what i added would fix it

#

apparently not

#

it's legit every OTHER time

#

its the weirdest thing

brittle root
#

No errors in the output ?

soft grove
#

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

brittle root
#

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

soft grove
#

alr

#

im not sure if it has to do with the data tho

#

the data loads just fine and even prints

brittle root
#

Like for _, Player in Players:GetPlayers() do LoadData(Player) end

soft grove
#

from that code

brittle root
soft grove
#

yeah i get it

brittle root
#

Just making sure to load the player’s data

#

Cuz the player can load before the server

soft grove
#

i js dont understand why it only happens every other time then

#

id assume it would be like

#

less static than that

brittle root
#

Especially while playing testing since you’re the first player in the server

soft grove
#

true

brittle root
#

Just in case

#

After that I would debug every functions handling data with prints

#

Print the data when you load, save, etc.

soft grove
#

i did that and it was fine for all of them even when the shovel wasnt loaded into the backpack

brittle root
#

In game or in studio ?

soft grove
#

in game

brittle root
#

Thought the data wasn’t loading correctly

soft grove
#

i shouldve worded that better

#

i meant whats not being loaded in is the items into the backpack

#

every other time

brittle root
#

Ohh

#

So the data’s totally fine but the tool is not cloning into the backpack ?

soft grove
#

nope

#

but its only every other time

brittle root
#

First time it works

soft grove
#

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

brittle root
#

Then i don’t and I don’t have much time

soft grove
#

all good thanks for the effort

brittle root
#

Good luck

soft grove
#

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

fierce heathBOT
#

studio** You are now Level 5! **studio

soft grove
#

i dont even know what the issue was

#

but something i did fixed it

#

so im not gonna touch it

soft grove
#

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

soft grove
#

Fixed

brittle root
#

GGs

soft grove
#

it was the fact when a player joins their backpack is deleted and remade