Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do you make a brick drag-able by a player?

I made a part in-studio and I want it so the player can hold the left mouse click on the part and be able to drag it. How would I make that possible?

1 answer

✓ Accepted answer

You should break this problem down into smaller steps if you want to complete it.

Here is what I would do:

Detect when the player clicked on the block
Continuously move the block to where the mouse is pointing
Detect when the player releases the left mouse button

This isn't a request site so I'm not going to make this for you, however I will link you to some potentially helpful documentation. If you have any trouble implementing this, you can ask your more specific question on this website and someone will assist you.

http://wiki.roblox.com/index.php?title=API:Class/Mouse

See the Hit property and Button1Down, Button1Up, and Move events

1 comment

0

Thank you for this help. I will now try to produce the script.

This discussion is preserved as it was. New answers, comments, and votes are closed.