local part1 = game.Workspace.LookAtMouseTest
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
mouse.Move:Connect(function()
part1.CFrame = CFrame.lookAt(part1.Position, mouse.Hit.p)
end)
I want the part not to spaz out when the mouse touches it, but I’m not exactly sure how to stop that from happening.
Oh, and I attached a video of what the problem is, it should clear up the main problem.
local part1 = game.Workspace.LookPart
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local RS = game:GetService("RunService")
RS.RenderStepped:Connect(function()
mouse.TargetFilter = part1
part1.CFrame = part1.CFrame:lerp(CFrame.lookAt(part1.Position,mouse.Hit.p),0.05)
end)
Use RenderStepped because it might be a little weird with :lerp