My points script won't work for my minigames, can anyone repost a fixed one?
minigames = game.Lighting.Minigames:GetChildren() h = Instance.new("Hint", game.Workspace) while true do if game.Players.NumPlayers > 1 then h.Text = "Deciding what game to play" wait (3) ranGame = math.random(1, #minigames) gameChosen = minigames [ranGame] h.Text = "Minigames chosen " .. gameChosen.Name wait (3) gameChosenClone = gameChosen:Clone() gameChosenClone.Parent = game.Workspace wait (3) -- Teleporting people to the map spawns = gameChosenClone.Spawns:GetChildren() for i,v in pairs(game.Players:GetPlayers()) do name = v.Name check = game.Workspace:FindFirstChild(name) if check then checkHumanoid = check:FindFirstChild("Humanoid") if checkHumanoid then v.Character:MoveTo(spawns[i].Position) end end end for i = 3, 1, -1 do h.Text = "Game begins in: " .. i wait(1) end -- Countdown till game ends for i = 10, 1, -1 do h.Text = "Time Left:" .. i wait(1) end h.Text = "Game ended" wait (3) h.Text = "Giving points out to those that won!" for i, v in pairs(game.Players:GetPlayers())do inGame = v:FindFirstChild("InGame") if inGame then if inGame.Value == true then Instance.new ("NumberValue",v.leaderstats).Name = "Points" v.leaderstats.Points.Value = v.leaderstats.Points.Value + 100 end end end wait (3) gameChosenClone:Destroy() else h.Text = "There needs to be 1 more player to start" end wait(1) end