so im making a game where a script teleport's players to another game after a certain time, it would also only teleport them if there playing value (a bool value) is true, but im not so sure how to do that ._. here is the script i have so far for main script (i already maid a counting script):
while wait() do
if game.Workspace:WaitForChild("PlayerPlaying").Value >= 1 then
if script.Parent.Parent:WaitForChild("Time").Value > 0 then
script.Parent.Text = script.Parent.Parent:WaitForChild("Time").Value
elseif script.Parent.Parent:WaitForChild("Time").Value == 0 then
script.Parent.Text = "0"
wait(1)
script.Parent.Text = "Teleporting Players!"
wait(2)
-- this is where it would check if the players bool value "Playing" is true
-- this is where the script would teleport the players, but im not sure how to do that :/
end
else
script.Parent.Text = "Not Enough Players!"
end
end

2 comments
This will make your life a whole lot easier: http://wiki.roblox.com/index.php?title=Teleporting_Between_Places
oof, thanks!