Hello developers
(Please excuse the poor code, I am currently trying to learn it from basics…)
I have started on making the idea of a murder mystery type game a few minutes ago, and scripted this. For some reason is is not outputting these basic commands. Is you need more info to help me, the script is located in ScreenGui, because I wanted to alter the TextLabel with this script. It is also just a normal script… Here is it below
local plrs = game.Players
local ready = false
while true do
local num = plrs:GetChildren()
if num > 1 then
local ready = true
else
local ready = false
end
end
if ready == true then
script.Parent.TextLabel.Text = "Enough players!"
wait(1)
script.Parent.TextLabel.Text = "Enough players! Starting in 3..."
wait(1)
script.Parent.TextLabel.Text = "Enough players! Starting in 2..."
wait(1)
script.Parent.TextLabel.Text = "Enough players! Starting in 1..."
wait(1)
script.Parent.TextLabel.Text = "Round starting."
wait(0.5)
script.Parent.TextLabel.Text = "Round starting.."
wait(0.5)
script.Parent.TextLabel.Text = "Round starting..."
wait(0.5)
script.Parent.TextLabel.Text = "Round starting."
wait(0.5)
script.Parent.TextLabel.Text = "Round starting.."
wait(0.5)
script.Parent.TextLabel.Text = "Round starting..."
wait(0.5)
script.Parent.TextLabel.Text = "Round starting."
wait(0.5)
script.Parent.TextLabel.Text = "Round starting.."
end
if ready == false then
repeat
script.Parent.TextLabel.Text = "Wait for more players."
wait(1)
script.Parent.TextLabel.Text = "Wait for more players.."
wait(1)
script.Parent.TextLabel.Text = "Wait for more players..."
wait(1)
until ready == true
end
So sorry if this is me being annoying, and this is obvious I was also thinking, maybe it might be that the script is positioned in ScreenGui