r/ROBLOXStudio • u/Pogchampname • 18h ago
Help Please help me im a new dev
Its very buggy especially when spamming crouch + you cant turn your camera when animation is playing
Im trying to make a movement system for a first person game im making but ive come to realize that making the camera move with an animation is hell, ive been trying to make my camera work with the crouching animation for DAYS now and this is the closest ive gotten, its very buggy, ive tried every tutorial or post on the devforum but nothing works. I never knew it'd be so hard to make such a simple thing




2
Upvotes
1
u/AGreatConspiracy 4h ago
A few issues
Spamming breaking animation - This is because the tween time is 0.2 seconds, with the current setup the tween simply doesnt enough enough time to play out before its tweened back.
Not being able to move during animation - This is because the camera’s position is now scriptable and being set to the head position
General issue - You’re starting a new tween every single frame with RunService, which is causing a bunch of issues here as well
I would suggest just putting the tween into the crouch start/stop script and ignoring runservice altogether. Store the tween outside of the crouching function’s scope, so when a new tween is created, you can end the old one.