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

Why is the # in contestants underlined red?

Asked by 3 years ago

I am trying to make a hide and seek game. I am trying to make it so when the seeker leaves the game or gets disconnected, then the round is over and the contestants is 0. But for some reason when I add the hashtag its underlined red. Here is the code:

function playerLeaving(player)
        if player.Name == seeker.Name then
            #contestants = 0
            end
        end
    end

    game.Players.PlayerRemoving:Connect(playerLeaving)
0
is there a contestants variable anywhere? CodeWon 181 — 3y
0
Yes, but I didn't include the whole script. Here is the link to the same question but with the full script: https://scriptinghelpers.org/questions/122135/why-is-the-in-contestants-underlined-red aiden66362 0 — 3y

Answer this question