#RNG help

1 messages · Page 1 of 1 (latest)

jagged elk
#

yo guys i need some help, im trying to make a rng skin crate, like smth similar to mm2 crate opening, where a spinning wheel comes up and like edges u or smth, i have it working kinda, but like, the item is given to u the sec u press buy, and the spinning strip is mer jst a decoration, and so, its not synced to wat is actrually given to you, like if i press buy crate, the game gives me skin A, but the spinning strip shows a get skin B, how can i fix this?

atomic frostBOT
#

studio** You are now Level 2! **studio

jagged elk
#

idk wat label to put

shadow hearth
#

Ahhh yep, classic RNG‑crate desync problem.
Right now your flow is basically:

Client presses Buy → Server instantly gives item → UI spins randomly → UI result ≠ actual item

To fix it, you need to flip the logic:

#

Put this in StarterPlayerScripts (LocalScript).
It handles both sides using one RemoteEvent.