#how to make a npc constantly look at the player

7 messages · Page 1 of 1 (latest)

hardy remnant
#

cframes, tweens

#

thats off the top of my head ig

frozen quarry
#

Check out CFrame.lookAt()

zinc bane
#

im not sure if thats legal to send links to yt videos here but i guess i found the video you want
https://www.youtube.com/watch?v=RwhwbPiBMnc

In this tutorial I'll be showing you how to make a NPC, that will look at the nearest player. Enjoy!

! WARNING !
I didn't mention that on the video, but the model does not work when its orientation is different from 0,0,0. To fix this, change the line
neck.C0 = cframe0 * CFrame.new(Vector3.new(0, 0, 0), unit)
to
neck.C0 = cframe0 * CFrame.new(V...

▶ Play video
#

i think even if its not what you exaclty wanted its still gonna help

terse micaBOT
#

studio** You are now Level 4! **studio

frozen quarry