You simply use PivotTo()
local XVector = Vector3.new(-1, 0, 0)
local YVector = Vector3.new(0, 1, 0)
local ZVector = Vector3.new(0, 0, -1)
function onTouched(hit)
local human = hit.Parent
if human then
human:PivotTo(CFrame.fromMatrix(workspace.Ends.End1.Position, XVector, YVector, ZVector))
end
end
script.Parent.Touched:Connect(onTouched)