minigames = game.Lighting.Minigames:GetChildren()
h = Instance.new("Hint", game.Workspace)
while true do
if game.Players.NumPlayers > 1 then
h.Text = "Choosing Minigame"
wait(5)
rangame = math.random(1, #minigames)
gameChosen = minigames[rangame]
h.Text = "Minigame: " .. gameChosen.Name
wait(12)
gameChosenClone = gameChosen:Clone()
gameChosenClone.Parent = game.Workspace
wait(3)
--Tele to map
spawns = gameChosenClone.Spawns
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
check:MoveTo(spawns[i].Position)
end
end
end
for i = 3, 1, -1 do
h.Text = "Game Begins In: " .. i
wait(1)
end
--Countdown till next game ends
for i = 120, 1, -1 do
h.Text = "Time Left: " .. i
wait(1)
end
h.Text = "Game Ended!"
wait(4)
gameChosenClone:Destroy()
else
h.Text = "1 More Player To Start"
end
wait(1)
end
and it says 1 is not a valid member of Model how did i fix it? the script is for running a minigame randomize it etc

5 comments
You need more information!
We have no idea where the error is occuring. We have no idea what you're trying to accomplish. We have no idea what your script is actually doing.
it is running a minigame
You're still giving us little to go off of. What line does the error state it's occuring? What exactly are you trying to accomplish with this script? Edit your question to include these answers.
didnt even bother to post the output...