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

How can i chance killer's Position/CFrame to killerspawn what is just a part in workspace?

Asked by
tykoone -8
6 years ago

this is the while true do loop what im useing if you want to help you can try to teleport all players in the team this script has too the team color

while true do

    wait(5)

    local killerspawn = game.Workspace:WaitForChild("KillerSpawn")
    local killer = game.Players:GetPlayers()[math.random(1,#game.Players:GetPlayers())]
        killer.TeamColor = BrickColor.new("Maroon")
        wait(1)
        --here teleport

end

if you dont want to help you can send me links what could help me Thank you!

1 answer

Log in to vote
0
Answered by 6 years ago

I kinda don't get what you're trying to do..

So you want all people with the team color of maroon to be teleported to some brick?

local Players = game.Players:GetChildren()

for i = 1, #Players do
if Players[i].TeamColor == BrickColor.new("Maroon") then
local Character = Players[i].Character
Character:MoveTo(killerspawn.Position)
end
Ad

Answer this question