Make player able to grab boxes and move them in 3d

How do I…

How would I create a function that makes it so when a player presses E the box is picked up and they can drag it around

This is what its supposed to do but the problem is that the box doesn’t rotate with the player camera so the box is still in front of the player after they rotate the camera

Screenrecording2025-04-232.37.37PMonline-video-cutter.com-ezgif.com-video-to-gif-converter (1)
Box’s code
VVVVVVV

I tried changing the boxes position to the players rotation but it didn’t work

Im new to the forums so it wouldnt let me put two pictures/gifs heres the box’s code

ive done this before pretty much just install the “sticker” extention and then copy my code
sadly i can only do e to pickup q to putdown i havent figued out e for both

1 Like

It doesnt seem to work for 3d

maybe try to remove the trigger once condition on both of them
i made it in 3d btw
i just reread the original text and realised it needed to be draggable idk how to do that afaik draggable is only in 2d

1 Like

It does work i just had a an error in copying the code, It is what I was looking for thanks. Also I figured out how to have e pickup and drop, I set it to a variable so whenever you press e it changes that variable to true or false.

change box from dynamic to static, then just change the position of the box.

1 Like