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

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

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

2 answers

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

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)

1 comment

0

I know how the proximity prompt working but i need without proximity prompt door system like Granny

This discussion is preserved as it was. New answers, comments, and votes are closed.