#Getting NAN for CFrame.LookAt()

1 messages · Page 1 of 1 (latest)

dim maple
#

Never had this issue with CFrames before, I know what NAN is but I don't know how to stop it from happening?

tired lily
#

nan means you tried to divide by 0

#

trace what happens to troot.position and root.position and look for places where you use divisions

echo crystal
#

ctrl+F, input /0

tired lily
#

can also be an occasional result of math, not necessarily a direct /0

#

prints help to find the 0