I'm trying to make a door with Cframe and I have everything about that figured out, but when I try to add a wait function to make a certain action take longer, nothing after the Wait in the function will work. Here is my code:
switch.MouseClick:Connect(function(Out)
tween1open:Play()
if toggled == true then
beep:Play()
wait(0.60)
noise:Play()
blink1.BrickColor = BrickColor.new("Really red")
blink2.BrickColor = BrickColor.new("Really red")
end
toggled = false
end)
Everything after "wait(0.60)" will not happen. Thanks in advance.

4 comments
Does it work without the wait()
full script?
It works without the wait() and no it isn't the full script.
Can I see the full script please?