player = game.Players.LocalPlayer
function SpawnPlayer()
local spawns = Workspace["Spawn Players"]:WaitForChild("Spawnz"):GetChildren()
for _, player in pairs[contestants] do
if player and player.Character and #spawns > 0 then
torso = player.Character:WaitForChild("Torso")
local spawnedIndex = math.random(1, #spawns)
local spawn = spawns[spawnIndex]
if spawn and torso then
table.remove(spawns, spawnedIndex)
torso.CFrame = CFrame.new(spawn.Position = Vector3.new(0,3,0))
end
if player ~= nil then
player.Character.Humanoid.Died:connect(SpawnPlayer)
else
game.Players.PlayerAdded:connect(SpawnPlayer)
end
Where It Says torso.CFrame = CFrame.new(spawn.Position = Vector3.new(0,3,0)) the = sign keep going on red Idk why plus I get an error, can anyone of you pro scripters Help?

2 comments
This isn't to answer your question but putitng (lua) is not needed this entire site is for lua
Ok :C Meh didn't know that but thank doe. :D