How would you make a door that when you press E and have a certain tool in your backpack, It changes transparency and can collide?
✓ ANSWER ACCEPTED
How to make a door that opens if you press e and have a tool?
1 answer
✓ Accepted answer
Using UserInputService, have a magnitude range of about 6 studs and detect when e is pressed. Have an if statement to check if the player has a tool by looping through the player's backpack and using :IsA("Tool") to check if it's a tool. After that, you can put in another if statement to check the name of the tool.
1 comment
0
Thank you for helping me with the script,
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
show some effort
he probably just wants the essentials for it. not the whole code.
The OP didn't make an attempt to look anything up that they might need to make the code nor has made any code based on what they do know