local brawlPopup = script.Parent.Parent
local brawlFrame = script.Parent.Parent.Frame
local text = script.Parent.Timer

while true do
wait(5) -- Timer for popup
print("Brawl Started")


brawlFrame.Visible = true

text.Text = 5
wait(1.5)
text.Text = 4
wait(1.5)
text.Text = 3
wait(1.5)
text.Text = 2
wait(1.5)
text.Text = 1
wait(1)
text.Text = 0

brawlFrame.Visible = false
	
print("BrawlFrame Closed")
	
end

how do i make this a global script? At the moment it only does it every 5 seconds but if another player joins at a different time the brawl starts at another time