im trying to make a sword fighting game but When i try to teleport players to a spawnpoint in the map i get this error any help?
character:SetPrimaryPartCFrame()("HumanoidRootPart").CFrame = AvailableSpawnPoints[1].CFrame table.remove(AvailableSpawnPoints,1)

3 comments
So would it be character:modelSetPrimaryPartCFrame(AvailableSpawnPoints[1].CFrame) = AvailableSpawnPoints[1].CFrame table.remove(AvailableSpawnPoints,1)
SetPrimaryPartCFrame sets the CFrame of model to the given argument. You passed the first element within AvailableSpawnPoints. You cannot use an = operator afterwards, nor ever with this scenario as it does not compile the way you think it does. The code provided above, is your answer.
Now it just gives me CFrame is not a valid memeber of weld