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

Whats wrong with target? I am trying to teleport everyone to a place

Asked by 10 years ago

This is what i have

target = CFrame.new(-181.9, 74.5, 93) for i, player in ipairs(game.Players:GetChildren()) do if player.Character and player.Character:FindFirstChild("Torso") then player.Character.Torso.CFrame = target + Vector3.new(0, i * 5, 0) end end

it says there is something wrong with "Target" in line 4. Im trying to teleport everyone to a place.

1
Can you please highlight the code then click on the blue button on top. So it would highlight the code. Mauvn 100 — 10y
0
You say that you want to have everyone to teleport to a place, but it looks like you're making them teleport to a different position. Redbullusa 1580 — 10y

1 answer

Log in to vote
0
Answered by 10 years ago

for target try vector3.new, not cframe.new...

Ad

Answer this question