How could i make a model "wobble" when moved

It’s a little confusing to wrap your head around, but I’ll sum it up:

  1. What do you want to achieve? I want to make it so whenever you move your mouse, the model follows it and “reacts” to the movement.

  2. What is the issue? I’m not sure how to achieve this effect. I’ve provided a video from another game did what I want the model to do (wobble) :

  3. What solutions have you tried so far? I’ve tried using different tweens like bounce, elastic and back, but they have not worked.

Here’s the part of the code where I want the wobbling to happen. (under the tween.)

	local NewCFrame = CFrame.new(result.Position.X, result.Position.Y + 1.7, result.Position.Z)
	
	TweenService:Create(workspace.lvl0.PrimaryPart,TweenInfo.new(.1,Enum.EasingStyle.Sine),{CFrame = NewCFrame}):Play()

(By the way, lvl0 is a placeholder for now.)

If anyone could help me achieve this wobbling effect, please respond to this topic.

Thanks!

2 Likes