If I look at the door and press the letter 'E' something happens! Can anyone help me?
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)