So basically, I have a part that is welded to another part, and when I want to tween it, I anchor it, remove the weld, tween in, re-add the weld, and then unanchor it again. For some reason, for only one specific part, whenever it is tweened it is offset a tiny bit right before
hard to tell what the specific problem could be in this case, here are some things to possibly look into
-
Sometimes welds have funky behavior where they offset objects when messed with; occurs very often with accessories on characters. Maybe try using
WeldConstraints
if you aren’t -
I suppose it’s possible you don’t need to get rid of the weld if the objects are going to be anchored anyway
-
It’s possible that network ownership change is the result of the offset: like if you’re anchoring & tweening the object on the server, anchoring it then* automatically gives ownership to the server (I believe)
-
Maybe try saving the position/CFrame/whatever before deleting the weld/anchoring it and then resetting it before the tween starts (feels like a bit of a provisional more than a solution)
Sorry, this was pretty vague. The most probable issue would be the network ownership, but the weird thing is, it is only for a very specific part. This is all part of a complex animation for a door, and the way run it is by going through an array that stores all of the tweens to be completed in order, and the only one that is ever affected is the one that is run third.
Edit: weldConstraints made it worse
Can you elaborate on this since I am not really sure what you mean by anchoring it automatically
Edit: moved the tweening and anchoring to client side and it works now, tysm i have been trying to fix this for like 6 hours
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.