nix102on
(YFDragonHunter67)
February 15, 2025, 12:46pm
#1
I search the devforum but couldn’t really find anything useful. I also saw camera service and a couple of other modules, but they didn’t work like I wanted. I just need a simple camera script that bobs the camera upwards when jumped and downwards when landed. (I’m not really good at manipulating cameras.)
Here’s an example:
2 Likes
Could you provide an example image or video?
meediaman
(mediaformat)
February 15, 2025, 1:22pm
#3
you could modify the humanoid offset based off if the player is jumping, flying, or landed! and to make it smoother you could use tweenservice ^^
nix102on
(YFDragonHunter67)
February 16, 2025, 6:51am
#4
I’ve updated the topic with an example video.
I’m using character controllers so I can’t know if the player has landed from a jump.
How is the Character Controllers structured?
meediaman
(mediaformat)
February 16, 2025, 8:22am
#6
then I would say perhaps check the character’s velocity maybe? and then make camera adjustments based off that
nix102on
(YFDragonHunter67)
February 16, 2025, 8:28am
#7
Wdym? The normal running speed is 100s/s.
I got the script from here.
meediaman
(mediaformat)
February 16, 2025, 9:32am
#8
their velocity will increase if they’re falling from a height. that’s how most fall damage scripts do it I think
nix102on
(YFDragonHunter67)
February 16, 2025, 9:39am
#9
Does it really have to do anything with my problem?
meediaman
(mediaformat)
February 16, 2025, 9:42am
#10
if you want to detect if the player is mid air, to make the camera effect… wouldn’t want to know if they are midair? haha
nix102on
(YFDragonHunter67)
February 16, 2025, 9:44am
#11
Bro, I know when the jump happened then maybe I can check the ground controller to see if I’ve landed. Just help me with the camera bro.
meediaman
(mediaformat)
February 16, 2025, 9:46am
#12
sorry I thought the overall problem was both the camera & detecting when to shove the camera
if you know when the jump is then just use tweenservice to move the camera if the humanoidoffset is not eligible. you could also use springmodule which I think might fit this better ^^
1 Like
nix102on
(YFDragonHunter67)
February 16, 2025, 9:47am
#13
I’m not good in doing stuff with cameras and I don’t know wth is the springmodule.
meediaman
(mediaformat)
February 16, 2025, 9:50am
#14
you could always find a tutorial to help with modifying the camera! this tutorial should help you know a bit more about modifying the camera
also here’s a link to the springmodule forum post!
Introduction
I’ve created a module that allows you to create a realistic spring object that acts in one direction. This module creates a general solution to a second order differential equation given some inputs. It’s simple to use and is very useful in creating recoil systems, realistic spring systems, and anything else you can imagine a spring is useful for. This spring module is able to accurately replicate real springs. I included the full explanation of the math in this post, and I also in…
1 Like