I scripted the rest myself, but I have no clue how to loop?
I scripted the rest myself, but I have no clue how to loop?
2 Likes
Well, there are a couple of loops you can use such as
while ___ true do
for_, i do
just to name a few, you can use these around your script to loop it, For this it looks like you would want a while loop
1 Like
You can write
while true do
*ur script*
end
1 Like
local videoIsPlaying = true
while videoIsPlaying == true do
--play videos
end
This way you can stop it if you don’t want the videos to play via a remoteEvent or something of the sort.
1 Like
Also to make sure your pc does not crash using the while do statement. Directly after the while do statement, use wait().
2 Likes