Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Round Activation does not work when numbers goes above 3?

Asked by 8 years ago

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

0
Try removing the 'return' on line 4 and moving the 'end' on line 5 down to line 7.. return will discontinue functions. Goulstem 8144 — 8y
0
Okay. Will try. Syntax_404 37 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

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.

Ad

Answer this question