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

how to check if videoframe finished video?

Asked by 3 years ago

how do you check if the video is finished?

2 answers

Log in to vote
0
Answered by 3 years ago
wait(length of video)
print("Video is finished!")
Ad
Log in to vote
0
Answered by 3 years ago
local videoFrame = pathtovideoframe

videoFrame:GetPropertyChangedSignal("TimePosition"):Connect(function()
    if videoFrame.TimePosition >= videoFrame.TimeLength then
        print('Video Finished')
    end
end)

Answer this question