Hello, I am trying to make a home store for my group and aiming to make a mannequin that looks/performs better which should hopefully make the shopping experience smoother for customers. When the mannequin is clicked, it prompts the purchase depending if you clicked on the ShirtBlock or PantBlock (So you don’t click the entire model). If you can help in any way like linking a tutorial, a different way to achieve what I’m doing, or really anything please do so!
What I’m hoping to achieve
Basically, I’m trying to code it so that instead of having a script in each individual mannequin to prompt the purchase, I’ll only have two in server script storage. I have no idea how I can grab the IDs from the mannequins to prompt the purchase when a player clicks on the mannequin. I was going to use a GUI to prompt purchase but I figured if i couldn’t prompt the purchase with a script in the Server Script Storage then I should just stick to that first then work on coding the GUI. The reason I’m doing this is so it should be easier to set up mannequins as you only need to change the 4 items in each model.
Picture of Explorer (I'm using NumberValues to store the IDs)
If you know how to get the shirt ID from the humanoid’s Shirt please share, because I only know how to call on the NumberValue in a script.
Script that I have so far (Not much)
Sorry it’s practically an empty script, I don’t have much experience in coding.
I don’t know how to prompt a purchase using the click detector as the script isn’t in the workspace anymore or “grab” the ID from the mannequins when click on.
GUI
If this helps to show you what I was looking to achieve.
If you have any questions, please ask! Thank you for reading, I appreciate it!