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

Round Activation does not work when numbers goes above 3?

I wonder why that my script doesn't work when the round should begin. Here's the source of code:

local num = game:GetService("Players")

if num.NumPlayers > 3 then
	return
	end
	workspace.RoundActivationKey.Value = true

	
if num.NumPlayers < 3 then
	local hint = Instance.new("Hint", workspace)
	hint.Text = "Players not enough. Needs at least 3 players to begin."
	

while true do wait(1)
	if num.NumPlayers > 3 then
		workspace.RoundActivationKey = true
workspace["CORE OF ROUND - DO NOT DELETE!!! OR WE WILL BE BLOXINGTON BABY!"].Disabled = false --lmao this name is ***
hint:Destroy()
break


end

	end
end  





So basically what I want to do, is to make the round start when the number of players goes above 3, but doesn't work. Someone help? Thanks. -Midnight

2 comments

0

Try removing the 'return' on line 4 and moving the 'end' on line 5 down to line 7.. return will discontinue functions.

0

Okay. Will try.

1 answer

Here I go.

local num = game:GetService("Players")
02
 
03
if num.NumPlayers > 3 then
04
05
    
06
    workspace.RoundActivationKey.Value = true
07  end

 
08
 
09
if num.NumPlayers < 3 then
10
    local hint = Instance.new("Hint", workspace)
11
    hint.Text = "Players not enough. Needs at least 3 players to begin."
12
 
13
 
14
while true do wait(1)
15
    if num.NumPlayers > 3 then

Thanks for answering.

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