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

Can I make a player teleport to a model?

click.Character:MoveTo(Vector3.new(game.Workspace.Model))

I just used this as an example above!

1 answer

✓ Accepted answer

Using Model:MoveTo() is inconvenient. Instead, assign a PrimaryPart to the model, and use Model:SetPrimaryPartCFrame()

And the Vector3.new() function takes 3 numbers as an argument, X, Y, and Z.

But here we won’t be using Vector3.

local model= game.Workspace.Model

Character:SetPrimaryPartCFrame(
    CFrame.new(model:FindFirstChildWhichIsA("BasePart").CFrame)
)

1 comment

0

Thank you!

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