Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My Wait() functions won't activate the rest of the function. How can I fix this?

Asked by 6 years ago

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.

0
Does it work without the wait() JinxedJord_n 15 — 6y
0
full script? AltNature 169 — 6y
0
It works without the wait() and no it isn't the full script. UnluckyTW 0 — 6y
0
Can I see the full script please? LostInDelaware 0 — 6y

Answer this question