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

If I look at the door and press the letter 'E' something happens! Can anyone help me?

Asked by 2 years ago
Edited 2 years ago

If I look at the door and press the letter 'E' something happens! Can anyone help me?

2 answers

Log in to vote
0
Answered by 2 years ago

Make a part in the workspace named door and insert a proximity prompt in it. Insert a script in the proximity prompt and copy and paste this in the script:

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Prompt = script.Parent
local Door = Prompt.Parent
local debounce = false

Prompt.Triggered:Connect(function()
if debounce == false then
debounce = true
end
Door.Parent = ReplicatedStorage
wait(5)
Door.Parent = game.Workspace
debounce = false

end)

-- READ ME You can get rid of wait(5) and Door.Parent = game.Workspace if you want to because thats just make it visible and interactable again

Ad
Log in to vote
0
Answered by 2 years ago
Edited 2 years ago

Insert a proximity prompt inside of the door and add a script inside of the proximity prompt with this code:

local Prompt = script.Parent

Prompt.Triggered:Connect(function(Player)

Whatever you want the script to do

end)

0
I know how the proximity prompt working but i need without proximity prompt door system like Granny horvathmf 10 — 2y

Answer this question