This scripts uses a proximity prompt and is SS
the script
local SoundService = game:GetService("SoundService")
local prompt = script.Parent
local Vent = game.Workspace.MainVent.Vent
local knock = SoundService.Knock
local fall = SoundService.VentFall
local function typewrite(object, text)
for i = 1, #text,1 do
object.Text = string.sub(text,1,i)
wait(0.0227272727) -- how long it takes to type the sentence
end
end
prompt.Triggered:Connect(function()
typewrite(game.StarterGui.Inputs.TextLabel, "You knock on the door, but hear no response.")
knock:Play()
wait(2)
fall:Play()
Vent.Anchored = false
game.StarterGui.Inputs.TextLabel.Text = ""
end)
for some reason it shows no errors but doesnt work
