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

Can you please help me figure out what is wrong with this line of code?

Asked by 10 years ago
while wait(2) do
            if game.Workspace.Start.Value == true then
                announce(game.Workspace.Players.Winner.Value.." is the Winner!")
                local wins = game.Players:FindFirstChild(game.Workspace.Players.Winner.Value).leaderstats.Wins --Says there is a nil value
                wins.Value = wins.Value + 1
                GuiFadeIn()
                wait(3)
                TeleportPlayers(game.Workspace["Lobby thingie"].Teleporter,"Last")
                game.Workspace:FindFirstChild(currentMap.Value):Destroy()
            break
            end

Answer this question