Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How can I create smooth motion?

I am currently working on an FPS with the guns in first person view. I have made the guns point around to where the player is looking. I have tried setting the CFrame every rendersteppe or heartbeat. However, these methods create jittery motion that is most certainly unbearable to look at. I am basing the guns positions off of the camera. I have also tried tweening, I do not believe this can be applied for what I am trying to do. How should I fix this? What advice do you have for me?

2 comments

0

originally i was gonna say "use tweening my friend" and link to the tweening article of developer.roblox.com but uhm... this is much more advanced than i can handle

1 answer

I am unsure of what I did, but I have fixed my problem. I tried waiting in ticks, only to get the same result. Than after returning to RenderStepped my script started working as intended.

This discussion is preserved as it was. New answers, comments, and votes are closed.