Trying to make a model in a viewportframe face the cursor

I got the script from another post and trying to make it work, not sure how.

while wait() do
	local v = script.Parent.ViewportFrame1.Noob:SetPrimaryPartCFrame(script.Parent.ViewportFrame1.Noob.PrimaryPart)
	local x,y,z = CFrame.new(Vector3.new(9,0,0),Vector3.new(game.Players.LocalPlayer:GetMouse().X,-game.Players.LocalPlayer:GetMouse().Y,1000)):ToOrientation()
	game:GetService("TweenService"):Create(v,TweenInfo.new(.4,Enum.EasingStyle.Quint),{Orientation = Vector3.new(x*25,-(100-((y*125)/5)),z)}):Play()
end

(This is my second post, sorry if I got anything wrong.)