Tween glitching

I used tween service to create a moving part, however it’s glitching, can someone please help identify the error?

e2775b1ce19ebccafb4bcd1ede708a58

robloxapp-20200920-1412058.wmv (130.4 KB)

You are using InOut, and it is a very jaggy easing direction. Try using In instead if you want a regular, not too smooth tween.

1 Like

The problem is when the part goes back to it’s original position it goes like 10 studs down or so.

I know I’m doing something wrong, but I’m not sure what.

Hello,
Make sure your part is anchored, and not unanchored.
Since the Linear easing style is always at a constant speed rate, using InOut wouldn’t specifically do anything, but I am unsure what InOut does to it. Out would make sure there isn’t any jaggedy movement, too.

The reason it goes back is due to that “true” boolean.


Make sure you set this to false.

I would suggest you not mention top contributors or anyone of the sorts for a simple problem that only takes some patience to solve, so be wary!

2 Likes

If the part is anchored, it won’t even play the tween?

That’s not how TweenService works. It tweens if it is anchored.

1 Like

The bool reverses isn’t particularly the main issue, the problem is that when the part returns back to its original position before any tween changes were made it gets moved back down a certain amount of studs unintentionally.

1 Like

Oh yea! I set it to anchored and it worked! I thought you can’t anchor parts when tweening! Also sorry for pinging Top Contributors, you are right! Thank you so much for your help!

I believe this is where the issue of it “reversing” came from, so I answered that question aswell. This may just be me taking context differently due to me being tired.

1 Like

The problem was that it was un-anchored making the part go down every loop! :sweat_smile:

Reversing wasn’t the issue, I made the part anchored which was the issue! :sweat_smile:

1 Like

So basically gravity? You could have worded it different like “it falling down every time”, I was confused, haha.

1 Like

Thank you! I didn’t know that! :sweat_smile:

I’m sorry! Thank you so much for your help!

One more question, when I jump on the part my character doesn’t go with it’s velocity if that makes sense, how do I make my character go with the part, like in obby games and such?

Should I use body position instead?