I want to make a script go back to the beginning after it has run through all the functions and waited. I would assume you would use a while loop but I'm not sure how to make it go to the beginning if this script is true:
function waitforwinner()
if #getTeam(Game.Teams.Survivors) == 0 then
m = Instance.new("Message",Workspace)
m.Text = "The final survivor has been infected. Infected win!"
wait(3)
m:Destroy()
--Put reset part here
end
end
Thanks!

1 comment
No it is only a snippet with the if statement that is making it tricky .The entire script is about 100 lines long