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

How do I make this door script E to open while facing the door? [closed]

Asked by 5 years ago

I've been working at this for a while and haven't come up with a solution. This door script teleport the player to a part and i am trying to make it E to open but only making the GUI pop up while the mouse is facing the door and now i'm back to square one.

I Would really love some help. Thank you in advance

01local plr = game.Players.LocalPlayer
02 
03local teleports = workspace:WaitForChild("Teleports")
04local enterButton = script.Parent.enterButton
05 
06local range = 5
07local exitPart
08 
09enterButton.MouseButton1Click:connect(function()
10 
11    if exitPart then
12 
13        local hrp = plr.Character:FindFirstChild("HumanoidRootPart")
14 
15        if hrp then
View all 49 lines...
0
You want open the door when the client click on the keycode E on the keyboard? NiniBlackJackQc 1562 — 5y

Closed as Not Constructive by hiimgoodpack and raid6n

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?