character:FindFirstChild("HumanoidRootPart").CFrame = AvailableSpawnPoints[1].CFrame + Vector3.new(0,10,0)
table.remove(AvailableSpawnPoints,1)
character is defined as player.Character
When it tries to teleport, it gives the error CFrame is not a valid member of model
I edited this script a bit, so it is not mine and I am new to programming. Can anyone please help?

5 comments
Thanks for your answer, but AvalableSpawnPoints is a list, and 1 is the first item on it. This script is part of a loop that goes through all the spawnpoints to make sure that players don't spawn in the same place.
Is the first item on your list a model or a part or something else?
A part
and the error is on line 1?
Yes