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

Can a bindable event use the wait method?

Asked by 10 years ago

I tried using the wait method on this event,so I can tell if this countdown is finished but I got an error.

wait is not a valid member of BindableEvent

Can you use the wait method on Bindable events,if you can how?

function Countdown (Start,End,Property)
    local event = script.CountdownFinished
    for i = Start,End do
        if Property == "None" then
            wait(1)
            print(i)
        else
            wait(1)
            Property = i
        end
        if i == End then
            event:Fire()
        end
    end
end

Countdown (1,10,"None")
script.CountdownFinished:wait()
print("Done")

1
Apparently it can't. Looks like you'll have to have a local variable in this script to check for. Tkdriverx 514 — 10y

Answer this question