01 local scripty = script.Parent.otherlogic 02 function display(text) 03 local text2 = game.ServerStorage.text.Value 04 text2 = text 05 wait(3) 06 text2 = "" 07 end 08 09 while true do 10 repeat wait() until scripty.Name == "ready" 11 12 local try = coroutine.create(function() 13 repeat wait() until _G.Team2Player.Character.ingame.WalkSpeed == 0 14 wait(3) 15 if game.ServerStorage.try2isdone.Value == false then 16 game.ServerStorage.try1isdone.Value = true 17 coroutine.yield(try2) 18 for i,v in pairs(game.Players:GetChildren()) do 19 if v.TeamColor == "Bright blue" then 20 v.leaderstats.Wins.Value = v.leaderstats.Wins.Value + 1 21 end 22 end 23 24 display("Red captain has been frozen! Blue team wins!") 25 elseif game.ServerStorage.try2isdone.Value == true then return end 26 end) 27 28 local try2 = coroutine.create(function() 29 repeat wait() until _G.Team1Player.Character.ingame.WalkSpeed == 0 30 wait(3) 31 if game.ServerStorage.try1isdone.Value == false then 32 game.ServerStorage.try2isdone.Value = true 33 coroutine.yield(try) 34 for i,v in pairs(game.Players:GetChildren()) do 35 if v.TeamColor == "Bright red" then 36 v.leaderstats.Wins.Value = v.leaderstats.Wins.Value + 1 37 end 38 end 39 40 display("Blue captain has been frozen! Red team wins!") 41 elseif game.ServerStorage.try1isdone.Value == true then return end 42 end) 43 44 coroutine.resume(try) 45 coroutine.resume(try2) 46 end
It doesn't work, and there are no errors in the output.
Closed as Too Broad by samfun123, adark, and Articulating
This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.
Why was this question closed?