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.