i'm making a sort of castle defend game where i have to use a intermission/round script. but everytime i try to test it. it won't work. please help!
print("Intermission/Rounds are online")
print("If all goes well. These will all run. Right?")
print(":)")
local playercount = script.plrs.Value
local roundtime = 120
local winners = "?"
function onPlayerAdded(player)
playercount.Value = playercount.Value + 1
end
if playercount.Value >= 1 then
script.Parent.Text = "Intermission - 3"
wait(1)
script.Parent.Text = "Intermission - 2"
wait(1)
script.Parent.Text = "Intermission - 1"
wait(1.5)
script.Parent.Text = "Round starting..."
wait(3)
script.Parent.Text = "Round time left: roundtime"
wait(roundtime)
script.Parent.Text = "GAME OVER!"
wait(1.5)
script.Parent.Text = "winners win!"
end

8 comments
is this the full script?
yes.
Read my bio.
hahahahaha
not really helping. :I
The onPlayerAdded function won't work because it's not connected, should be game.Players.PlayerAdded:connect(function() end)
There is a very well put together tutorial on Youtube from Alvinbloxx, its a five part series, it goes over round scripts, I highly recommend it - https://www.youtube.com/watch?v=xgeUbOFQ8sc
READ MY DAMN BIO AND INDENT PROPERLY