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
Box’s code
VVVVVVV
I tried changing the boxes position to the players rotation but it didn’t work
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
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
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.