Recently I’ve been making a first person horror game and I want to make some first person animations and export them to play them in-game. So far I have tried setting the camera’s cframe to the head’s cframe in a loop but it did not work as expected. I also used tweens to make the transition of camera cframe to head cframe but that did not work as well. Any help is appreciated!
8 Likes
Make sure the camera isn’t being used by another localscript first, then try snapping it using RunService! Using RunService is tricky, you’ll need to account for every possible camera motion while the loop will constantly be prepared to alter the camera.
4 Likes
Can you show me an example? Because currently all I did was this but it just spins the camera and character really fast
enabled = true
RunService.RenderStepped:Connect(function()
if enabled == true then
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = head.CFrame
end
end)
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.