Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago

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?

1
show some effort 0msh 333 — 4y
0
he probably just wants the essentials for it. not the whole code. bluzorro 417 — 4y
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 hiimgoodpack 2009 — 4y

Closed as Not Constructive by cmgtotalyawesome and hiimgoodpack

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
H34E7R 19
4 years ago
Edited 4 years ago

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.

0
Thank you for helping me with the script, EricStoynov1749 -5 — 4y
Ad