local allPlayers = {}
for a,v in pairs(game.Players:Getchildren()) do
table.insert(allPlayers,v)
end
local plrAmount = game.Players.Numplayers
local val1 = math.random(plrAmount)
local val2
repeat
val2 - math.random(plrAmount)
wait(20)
until val2 ~=val1
allPlayers[val1].Character.Torso.CFrame = CFrame.new(0,0,0)
allplayers[val2].Character.Torso.CFrame = CFrame.new(665.995,7.1,-115.005)
math.randomseed(os.time())
it says Workspace.Script:9: '=' expected near '-' im not sure what to do

3 comments
Post as Lua Code and try again. I don't know what line is what because it is unformatted.
would i put val2 = val2 - math.random(plrAmount) on the 7th line?
Notice that "val2" is nil on line 7.