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 = Vector2.new(Mouse.X,Mouse.Y);
UIS.InputChanged:Connect(function(input,process)
if process then return end;
if input.UserInputType == Enum.UserInputType.MouseMovement and UIS:IsMouseButtonPressed(Enum.UserInputType.MouseButton1) then
local MousePos = Vector2.new(Mouse.X,Mouse.Y)
local Change = (MousePos - Last)/5;
workspace.Preview:SetPrimaryPartCFrame(workspace.Preview:GetPrimaryPartCFrame()*CFrame.Angles(0,math.rad(Change.X),0));
Last = MousePos;
workspace.Preview.PrimaryPart.Orientation = Vector3.new(0,0,0);
end
end)