I think this is preventing my script from advanncing… In my output it said - ScriptNavigationHandler : No script currently available. Here the place were it says that
game.ReplicatedStorage.Vote.OnServerEvent:Connect(function(player, previous, chosen)
local votes = game.ReplicatedStorage[chosen]
votes.Value = votes.Value + 1
if previous ~= nil then
local prev = game.ReplicatedStorage[previous]
prev.Value = prev.Value - 1
end
end)
for i = 2,1,-1 do
game.ReplicatedStorage.VotingStatus.Value = i .." seconds to vote"
wait(1)
end
local votes = {game.ReplicatedStorage.Classic, game.ReplicatedStorage.Teams}
table.sort(votes, function(a,b)
return a.Value > b.Value
end)
local chosen = votes[1].Name
if chosen == "Classic" then
print("Classic") -- that is were it says that
game.ReplicatedStorage.WhichGamemode:Invoke(chosen)
else
print("Teams")
game.ReplicatedStorage.WhichGamemode:Invoke(chosen)
end