-------------------------
-- Picks random killer --
-------------------------
players = game.Players:GetChildren()
randomp = players[math.random(#players)]
print(randomp.Name .. " is killer")
for i,v in pairs(players) do
if v.Name ~= randomp.Name then
print(v.Name .. " is runner")
end
end
---------------------------------
-- Teleport players to the map --
---------------------------------
spawns = mapChosenClone.Spawns:GetChildren()
for i,v in pairs(game.Players:GetChildren()) do
name = v.Name
check = game.Workspace:FindFirstChild(name)
if check then
checkHumanoid = check:FindFirstChild("Humanoid")
if checkHumanoid then
check:MoveTo(spawns[i].Position)
end
end
end
Ok so what I have the script do is pick 1 random player to be a killer and the rest are runners. I need the Teleport part of the script to teleport the runners to a certain brick and the killer to another brick, like deathrun. Could I insert a BoolValue or stringvalue, that when the Killer is chosen they get a boolvalue and then tps the killer to a certain block within the map. Anyone know what I am doing wrong?

2 comments
That works, but its like deathrun. I need it so when the killer is chosen it asks if player is killer then change teamcolor to red. Then I need if teamcolor = red then MoveTo(RedSpawn) thats what I need, not coordenates
Also line 25 "name" == v.Name