#Script works... half the time?
1 messages · Page 1 of 1 (latest)
Idk but do Instance.new("ValueObject", parent).Name = "ValueName"
Less efficient and that would parent the objects to the player, not the leaderstats folder
Is same efficient, and its just a exemple
No, changing values as a nilinstance saves on replication. And is better against lag
Anyways, this just looks like a text book race condition. Guessing that this script is not in SSS and not fully compiling before the player joins in
yeah im guessing thats what it is
im not too sure how i would fix that
Where is it located?
SSS
It’s just a server script right?
its a normal script
should i delete that and transfer it to a server script
wait nvm
idk what i was thinking abt jeez
Odd, it’s rare to see sss compiling take longer than players joining
is my game too unoptimized?
other thing is
it works for 1 stat
it works on wins everytime
Hell, you could run a quick debug to even test if it is a race cond. just print Players:GetPlayers before the bottom line in the ss
but not always coins
I wish to doubt that. As It’s common to see far more processing done before such an event. Yet it could still be possible
Huh, so the function runs every time?
ok so its not a race or anything
i dont think
it prints the message
but doesnt load coins
So wins works every time but coins doesn’t? That just sounds like it should’ve thrown an error then
i do have a few errors i need to fix but theres nothing regarding that script
there all gui infinite stacks
which wouldnt effect it
i mean ive been debugging this for like 20mins
which isnt too long
but it seems like such a simple script and i have no clue why it isnt working
well its working now
** You are now Level 4! **
i dont think i even did anything
nvm
its broken again
this is actually so weird
I've attempted your code on my game
Its fine tho
Are you putting leaderstats script in serverscriptservice?
i also just attempted and worked
???????