Grab & Drag System - V1

Hi guys,

Today I decided to start a project i’ve always wanted to do. I have made a part grabbing and dragging system. I had a lot of fun making it and I hope you guys find a use for it in your games!

Sorry if this description is pretty poor quality, im super tired after making this lol.

MODEL

CONTROLS:
LMB - Grab
R (while holding) - Rotate

Happy to accept feedback in the comments regardless of whether its positive or negative. If this model is quite popular I would be happy to take on board the feedback and create a newer, more advanced version.

Instructions on how to use the model can be found in the model description & inside the “SETUP” script inside the model.

DEMONSTRATION - GIF

5 Likes

Please show a video or two of what your resource can do.

1 Like

Sorry; updating the post now. Totally forgot about adding a video
https://gyazo.com/bc187fa9d590cfe21294feea973239d1

This seems pretty hard to use. As a user, I would expect that the dragged object follows my mouse, instead of snapping up and only rotating in one direction when I hold a key down.

Try to take inspiration from other games with dragging systems, like Lumber Tycoon 2. DragDetectors may help with this!

3 Likes

I had originally tried making the part follow the mouse however I was having issues displaying that on the server. All operations are performed on the server meaning other players can see who is holding/rotating which part.

When I used mouse.hit.position, I set the grabbed parts position to mouse.hit.position and more often than not the part ended up glitching out and falling through the world.

If I make a V2 I might look into creating something like what you have suggested.

Reminds me of the roblox game Cook Burgers!

1 Like

At least explain further because who care about that (honnestly, not to offense you):

And this doesn’t explain enough:

Just use DragDetectors

4 Likes

Just set the player as the network owner, then the client moves the part

If there was multiple players in the server, having them all set to network owner would cause issues wouldn’t it?

I had no idea that was a thing. I’ll look into that right now. Thanks!

There isn’t really much more to explain. Its a simple system that allows players to pick up parts or unions inside a designated folder and move them around.

1 Like

Oh alright then. Thanks for replying.

That’s why you would set to the player that is actually picking the object up, not everyone

This is how Lumber Tycoon 2 does it, so should help here too

What about the common occasion where you have 2 (or more) players picking up and/or holding items. I assume you can’t have 2 network owners?

dont let two people carry the same item?

Why would you want to players carrying the same thing?

No, but there would be different items being carried. E.g Player1 is carrying Part1 and Player2 is carrying Part2. Setting the network owner to Player1 would also affect the physics of Part2, correct?