#Get specific Position/CFrame in game from a model

1 messages · Page 1 of 1 (latest)

bright eagle
#

So I have this part currently acts as a 'Camera' that I make a script position the players camera to when something is enabled.

I'm trying to avoid having to rely on a part to act as a camera and instead just use math to decide where the players camera should tween too. The issue is I don't really know the exact math I should be doing to calculate where the CFrame/Position of the camera should be based on the position of the NPC Model.

Can anyone help me out with this?

analog iron
#

Would probably use something like? object.Cframe:ToWorldSpace(offset)

#

And can also use
camera.CFrame = CFrame.lookat(camera.CFrame.Position, object.Position)

upper depot
#

you could directly set cframe of the camera but in your case i dont think you can tween a cframe directly

#

either keep the part or use a cframevalue