sp = script.Parent uaf = sp.uaf r=sp.Raid m=sp.Main p=sp.Mid t=sp.Time sc=false numcode = math.random(100,9999) oa=math.random(1,99) oo=math.random(1,9) code = "R"..oa.."N"..oo.."4LU"..numcode.."" sp.Code.Value = code game.Players.PlayerAdded:connect(function(player) if player:IsInGroup(80738) then uaf.Value = uaf.Value + 1 end end) script.Parent.Main.Changed:connect(function() if m.Value == false and uaf.Value >= 5 then t.Value = 0 while t.Value < 1500 and t.Value >= 0 and sc == false do wait(1) t.Value = t.Value + 1 end else t.Value = 0 end end) script.Parent.Mid.Changed:connect(function() if (r.Value) and (p.Value) and uaf.Value >= 5 then print 'Counting Down half way' hw=(sp.Time.Value/2) sc=true while t.Value > hw and r.Value == true and p.Value == true do wait(1) t.Value = t.Value - 1 end sc = false end end) script.Parent.Raid.Changed:connect(function() if (r.Value) and (p.Value) and uaf.Value >= 5 then print 'Counting Down half way' hw=(sp.Time.Value/2) sc=true while t.Value > hw and r.Value == true and p.Value == true do wait(1) t.Value = t.Value - 1 end sc = false end end)