Ok, so I have a script in Workspace that jhas this text:
h=Instance.new("Hint")
h.Parent=game.Workspace
while wait(1) do
h=Instance.new("Hint")
h.Parent=game.Workspace
script.StarterMusic:Play()
--variables
h.Text=""
--round starts
if game.Players.NumPlayers<=0 then
while game.Players.NumPlayers<=0 do
wait(1)
h.Text="Waiting for 2 players..."
end
else
i=5
while wait(1) and i>0 do
h.Text=i.." seconds until the round starts!"
i=i-1
end
h.Text="Choosing a random map..."
local maps = game.ServerStorage["Maps"]:GetChildren()
wait(3)
map = maps[math.random(1, #maps)]
h.Text=map
wait(1)
end
end
What happens is the script freezes after it chooses the map. The only error I ever get is 06:09:49.080 - String expected. I think it's the way I' choosing the map. If so, how do I fix it? If not, what is it? Please help. Thanx.
-ds

5 comments
Wow, I get downed twice, even though I'm correct.
Wasn't me:P
Scammer?
Thanx!
Thanks community for bringing my points back to the original state! @dsboy55 You should Accept Goul's answer, since he elaborated more.