Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I create smooth motion?

Asked by 4 years ago
Edited 4 years ago

This question has been solved by the original poster.

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?

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 User#25069 0 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

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.

Ad

Answer this question