Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How do I get a click detector to place a model?

Asked by 8 years ago

So, I want to make an airport and I need a baggage system. What I want to happen is when you click the detector, the item is removed from your inventory and placed on the carousel, then on a click of a button, the carousel moves the item into a storage area.

1
This is not a request site. Provide code that you are having trouble with, along with any errors and explanation of what it doesn't do that it should. LetThereBeCode 360 — 8y
0
I never said that I was requesting it. "How do I get a click detector to place a model?" was the question... TheHospitalDev 1134 — 8y

1 answer

Log in to vote
1
Answered by 8 years ago

To get a click detector to place a model you would have to first create a ClickDetector.MouseClick function. Then inside the code locate the player that clicked it and remove their tool they have, you may also have to search their character. Once you've done that and removed the tool you will need to set the parent of the tool's handle to game.Workspace and then set the position to on top of the carousel. Make sure you don't set the tool's parent to game.Workspace or they'll be able to pick it up, set the tool.Handle's parent to game.Workspace.

Also, since this is a request on a non-request site, I just gave you a howto but no script until you have a go yourself.

2
Oh, I was going to post an answer for this but when I got on there was already an answer. Good contribution! ;) General_Scripter 425 — 8y
2
Thanks! idontcare2004 5 — 8y
Ad

Answer this question