so instead of moving very smoothly and nice it like moves every 0.05 seconds to reduce lag
If I understand correctly, you want to pause the tween and un-pause it every 0.05 seconds?
If so, there is a function to pause a tween while it is playing:
https://developer.roblox.com/en-us/api-reference/class/Tween
I want the tween to be less smooth and more choppy. Basically I have a lot of Vector3Value which I tween to a hit.position. And it updates it too frequently which causing too much lag, but I don’t need the Vector3Value to be so precise and smoothly tweened.
So you want to animate something so that it moves from a bunch of positions rapidly, but don’t want to tween it?
Im not trying to animate anything. You know how a tween smoothly moves something from point a to point b. How can I do to exact opposite and make it look like a slideshow
I don’t think that is possible without constantly teleporting an object, which could cause a lot of lag.
Other than tweening, I don’t think any other method would not cause a ton of lag with the 0.05 second times.
Simply:
- Increment the tweens time position by the desired amount
- Play the tween and instantly pause it to update the characters pose
- Yield for a little bit
Repeat until the end of the tween .
wdym how would that look like in psuedo code
I’m using a Vector3Value not a CFrame. I don’t have a part.