Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.