mouse.Move:connect(function()
if mouse.Target then
if mouse.Target.Name ~= "floorpart" then
while wait() do
workspace.Desk1:SetPrimaryPartCFrame(CFrame.new(mouse.Hit.p.X-mouse.Hit.p.X%1,1.5,mouse.Hit.p.Z-mouse.Hit.p.Z%1))
end
end
end
end)
When I move the mouse, the object starts to shake. wherein. Although if you move the mouse very close to the player, then everything is okay. Whats wrong?

3 comments
mouse.TargetFilter isn't set so mouse.Target will see the desk which would cause your shaking thing I believe.
maybe it's that it isn't anchored (i never experimented in the mouse section, only with MouseButton)
btw lower case C in :connect is deprecated and will work in Studio but not the actual game.