Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make this a global script? the brawl starts at different times to other players in the game

Asked by 3 years ago
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

Answer this question