Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to make a door that opens if you press e and have a tool?

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?

3 comments

1

show some effort

0

he probably just wants the essentials for it. not the whole code.

0

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

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.