I am coding my own spin wheel, but I’ve ran into ran into an issue. I am not experienced in coding spin wheel and I am unsure how I can do it. At the moment I have random spinning completed, but my issue is I don’t know how to give the user the item it has landed on. Is this possible without any… hard-to-code ways? Image below is how it looks at the moment.
so your question is “how to give a player an item.”
if you are not using any custom inventory codes.
just clone the item and put it in player.backpack
Yes, I know that will work. But how can I detect what item it landed on?
depends on how the spinwheel places the images.
if they are placed with an X and Y coordinate you could go trough all images and see wich one is closest to center
You’d want to select an item server-sided so it won’t be exploited. Then, you’d have to make the wheel spin and ensure that it lands on the item selected that was passed through by a RemoteEvent
.
1 Like
Seems like a good idea, thanks for help.