So I'm making a game, and I want it to check the value of a Value after a certain amount of time, and display Map Chosen: [Whatever Value] but if the value was equal to nothing, meaning no one voted, it would restart the cycle, but I have 0 clue on how to do this. This is what im attempting:
while true do
local val = game:GetService("ReplicatedStorage"):WaitForChild("MapChosen")
print("Voting For Map...")
wait(16)
if MapChosen.Value == "" then
print("No one voting... re-voting")
wait(3)
print("Voting For Map...")
-- Here's where I have the issue. I don't know how to make it restart the loop from here. I want it to go back to line 4, but since there's no 'goto' commands, I have 0 clue how to.
end
else
print("Map Chosen: "..MapChosen.Value")
end
Any Help will be appreciated.
