Hi, I want to make the player see the animation play in first person however the camera stays on the HRP and I want it to connect to the head and look around with the head. I have tried changing the CFrame to the head and it also did not work.
If you’re wanting to make the camera move relative to where the head is, couldn’t you just get the LookVector
of the Mouse
?
Well, the game is in first person. Also I want the camera to move with the head moving in the animation
Couldn’t you just loop through a RenderStepped
event in a LocalScript
if you haven’t tried that?
local RunService = game:GetService("RunService")
local Cam = workspace.CurrentCamera
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Head = Character:WaitForChild("Head")
RunService.RenderStepped:Connect(function()
Cam.CFrame = Head.CFrame
end)
1 Like
It actually works, thank you very much!
1 Like