Anyone fix this plz?
I know what's wrong. But I seem cant fix it.
------------------------------------
------------------------------------
---------TRIVIA SCRIPT---------
------------------------------------
------------------------------------
--BY LIGHTEDROBLOX
quiz = {"Who discovered ROBLOX?", "What is Telamon's real name?"}
while true do
local answergui = game.Lighting.AnswerNow
local h = Instance.new("Hint")
h.Parent = nil
wait(5)
h.Parent = game.Workspace
h.Text = "Next Trivia start in: 10"
wait(1)
h.Text = "Next Trivia start in: 9"
wait(1)
h.Text = "Next Trivia start in: 8"
wait(1)
h.Text = "Next Trivia start in: 7"
wait(1)
h.Text = "Next Trivia start in: 6"
wait(1)
h.Text = "Next Trivia start in: 5"
wait(1)
h.Text = "Next Trivia start in: 4"
wait(1)
h.Text = "Next Trivia start in: 3"
wait(1)
h.Text = "Next Trivia start in: 2"
wait(1)
h.Text = "Next Trivia start in: 1"
wait(1)
h.Text = "Get ready for TRIVIA!"
wait(1)
h.Parent = nil
--------------------------------------------------- HERE'S where script broke. =\
for _, v in pairs(game.Players:GetChildren()) do
pcall(function()
game.Lighting.AnswerNow.Question.Text = randomQuestion = quiz[math.random(1, #quiz)]
print(randomQuestion)
-------------------------------------------------------------
game.Lighting.AnswerNow:Clone().Parent = v.PlayerGui
end)
end
wait(0.5)
end |