Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

[SOLVED]How do I detect this line of code after its done?

if true then
	
	if game.Players.NumPlayers < 1 then
	while true do
	for i = TIME, 1, -1 do
		status.Value = 'Intermission '..i
		wait(1)
	end
	wait(1)
	break
		end

How would I connect this piece of code to activate another piece of code?

1 answer

✓ Accepted answer

I'm not sure what you mean by another piece of code so a few examples:

if true then
	if game.Players.NumPlayers < 1 then
		for i = TIME,1,-1 do
			status.Value = 'Intermission'..i
			wait(1)
		end
		wait(1)
		SpawnPlayers()--this would call on another function
	end
end
if true then
	if game.Players.NumPlayers < 1 then
		for i = TIME,1,-1 do
			status.Value = 'Intermission'..i
			wait(1)
		end
		wait(1)
		workspace.GameScript.Disabled = false--activating another script
	end
end
if true then
	if game.Players.NumPlayers < 1 then
		for i = TIME,1,-1 do
			status.Value = 'Intermission'..i
			wait(1)
		end
		wait(1)
		for _,v in pairs(game.Players:GetPlayers()) do--just going right onto the next thing
			v.Character:MoveTo(Vector3.new(0,0,0))
		end
	end
end

1 comment

0

Thank you very much

This discussion is preserved as it was. New answers, comments, and votes are closed.