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

Why does this script teleport players in to mid air... [closed]

Asked by
Link43758 175
10 years ago

As opposed to a random block in a specific model?

function spawn(obj)
        local spawnPoints = workspace.gameMap.Spawns:GetChildren()
        local chosenSpawn = spawnPoints[math.random(1, #spawnPoints)]
        table.remove(spawnPoints, spawnPoints[chosenSpawn])
        obj.CFrame = CFrame.new(Vector3.new(chosenSpawn.Position))
end

Closed as Not Constructive by evaera

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?