Help to make the side camera like this. Where the camera is sideways but follows your character wherever you turn. Please help
I believe a good way to recreate this effect would follow these steps.
- Find the Vector3 Position of both players and then use those to find the middle position in-between each player. This would probably look like:
local centerPosition = (player1Position + player2Position)/2
-
Then position the camera to have a left or right offset from the
centerPosition
and useCFrame.lookAt
to make the Camera look at thecenterPosition
. For this you can either use:Lerp()
orTweenService
to make the camera have a smoothing effect like in the GIF you displayed, or just set the CFrame normally. -
Finally, use
RunService:BindToRenderStep
to make the camera manipulation function loop every RenderStep.
1 Like