Egg Hatching Animation?

So I’ve been trying to make an egg hatching simulator with runservice, an animtion editor and tween service, but I cant seem to get an egg(I have a box) on the screen and get it shaking and then do that for the pet to can someone please help me I also dont know how to do the CFrame math?

I myself am facing this problem too. I’ve figured out that you can make the egg stay in the center of the screen even if the player moves around by doing a RunService loop.

RunService.RenderStepped:Connect(function()
	EggModel.CFrame = workspace.CurrentCamera:GetRenderCFrame() * CFrame.new(0, 0, -8)
end)

As to how you’re supposed to rotate it while having this loop is still a question to me.

Have a ViewportFrame in the centre of the screen and use that to render the egg.

ViewportFrames are UI objects used to render 3D objects.

ViewportFrames don’t allow you to use ParticleEmitters though. They also look lower quality imo.

Since you want to have the effects maintained, why not use this module:

This is basically a module that represents a viewportframe but is easier AND allows for effects to render