Is there any way to make the part look at the position it’s going to?
I know this module is not being updated anymore, but it is needed in my project.
I’m having an issue playing these tweens on the client. I noticed that if there were two players that creates and plays a bezier tween on the same part, they won’t start at the same time. The player that you have your window focused on will always start first and have the smoother tween.
I don’t know if this only exists while testing on Studio, but this made me worried that it could happen on a live server. It’s important that these tweens start and finish at roughly the same time because I create consecutive bezier tweens. If not, the other player will experience jittering issues.
If anyone can confirm this or find a work around let me know!
I know this post is old, but I would like to add this for anyone who wants to use this with models.
at Line 100 of the BezierTweens Module change this
self.Instance.Position = graphPoint(alpha, unpack(self.TweenInfo.Waypoints))
to this
if self.Instance:IsA("BasePart") then
self.Instance.Position = graphPoint(alpha, unpack(self.TweenInfo.Waypoints))
elseif self.Instance:IsA("Model") then
self.Instance:PivotTo(CFrame.new(graphPoint(alpha, unpack(self.TweenInfo.Waypoints))))
end
This should allow you to tween models as long as you are tweening the position of the primary part of the model
Edit: Changed SetPrimaryPartCFrame() to PivotTo() as @pankii_kust said SetPrimaryPartCFrame is unoptimized
PivotTo exists,.,.,…,.,.,
SetPrimaryPartCFrame is so unoptimized here, it uses more network data
Thanks for letting me know, I changed it now and tested it. It works for me