How do i make the camera shake more the closer you are to an entity?

The title pretty much says it. I am working on a horror game and i want to add that the camera shakes more when closer to an entity and less when far away.

You could do a distance check between the player’s character and the entity’s position using runservice.renderstepped.

then use tweenservice to make the camera shake. If the distance hits below a certain threshold, lower the tween time in TweenInfo to make it shake faster

Thanks. Pretty obvious, don’t know why i didn’t think of it sooner.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.