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

How To Make Rig Teleport And Face A Certain Direction?

2 answers

use CFrame you can use the look vector function then inputting the vector to the look vector, to make it look at a part do

part.CFrame.LookVector  = playercharacter.Head.Vector3

to make it continously look at a part do

while true do
	parthere.CFrame.LookVector = playercharacter.Head.Vector3
	wait(0.01)
end

though if it causes lag change the wait time

This is not a request site, but I'll help you out.

You can teleport a rig by setting the CFrame of the rig's PrimaryPart (usually the HumanoidRootPart or Head)

You can make the rig face the part by using CFrame.lookAt()

part = workspace:WaitForChild("Part") -- change this to your Part
rig = workspace:WaitForChild("R6") -- change this to your rig

-- teleport
rig.PrimaryPart.CFrame = part.CFrame

-- turn
rig.PrimaryPart.CFrame = CFrame.lookAt(rig.PrimaryPart.Position, Vector3.new(part.Position.X, rig.PrimaryPart.Position.Y, part.Position.Z)

I typed everything on mobile so let me know if there's any errors

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