Hi all, I’ve been trying to get CFrame.lookAt() to work using some tutorials, but I can’t.
Is there anything wrong with the code? The script compiler doesn’t say anything with errors, nor does the output, but the lookPart still doesn’t look at the other part (part).
local lookPart = script.Parent
local part = workspace.Part
while true do
local lookAt = lookPart.CFrame:PointToWorldSpace(Vector3.new(0,0,-3)):Lerp(part.Position,.1)
lookPart.CFrame = CFrame.lookAt(lookPart.Position, lookAt, lookPart.CFrame.UpVector)
wait(0)
end
what do I do? I’ve been stuck on this all morning? Please help.