I am currently working on a horror game. What i am trying to achieve is when the character is in the monsters range the camera will turn to where the monster is (similar to The Rake and Forgotten Memories) to give the player a heads up that the monster is chasing him. Ive tried using .lookAt() and it did not work, any pointers?
local pCam = workspace.CurrentCamera
local Monster = workspace["R6 Dummy"]
local tweenService = game:GetService("TweenService")
local monsterTween = tweenService:Create(p_Cam, TweenInfo.new(2), {CFrame = CFrame.lookAt(p_Cam.CFrame.Position, Monster.HumanoidRootPart.Position)})
The “R6 Dummy” is replaced with the monster in your game, just detect when the monster is close enough and call “monsterTween()” and the camera will slowly pan over to it before snapping back.
1 Like
Try changing this

1 Like
It worked, thanks! Was struggling for a while lol
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.