Previewing character with the mouse

Sorry if the title if a bit vague
I’m trying to have a 3D preview of a character like this one

And this is what I have

It does not keep the last position and just jumps right back to the mouse

local Last =,Mouse.Y);
	if process then return end;
	if input.UserInputType == Enum.UserInputType.MouseMovement and UIS:IsMouseButtonPressed(Enum.UserInputType.MouseButton1) then
		local MousePos =,Mouse.Y)
		local Change = (MousePos - Last)/5;
		Last = MousePos;
		workspace.Preview.PrimaryPart.Orientation =,0,0);

Not sure what’s going on in the videos because they are 0.5 fps, but it might have to do with this line

workspace.Preview.PrimaryPart.Orientation =,0,0);

Why are you resetting the orientation every time the model turns?

1 Like