How do i make a carry tool?

How do i make a carry tool? For example there a blocks on the ground so you equip the tool and click on the block but you could only carry on at a time. I don’t know what functions and scripts to use, could anyone give me examples of where to start off?

1 Like

You’d need to prob use Mouse.Target to see what object you are pointing at, or use UserinputService. And then just move that part to your character by adding a weld(s).

Hope I understood you.

1 Like

Well, this would have to do a lot with Raycasting to position the block/object and where it should go based on vectors, CFrame, and other mathy stuff. Also, like @Valkyrop just said, using UserInputService which deals with the player’s input type (iPhone, Mobile, PC, Xbox, etc.). Functions would require RaycastParams.new(), used in raycasting, which would help allow a variety of different objects in the client to be accessible for players to carry. I’m sorry if I’m not providing a specific code but if you have any more questions please let me know

1 Like