so, i made a script that the part should follow the mouse. but it doesent
its in a local script btw
local script:
local part = script.Parent
local player = game.Players.LocalPlayer
function movePartToMouse(part, player)
local mouse = player:GetMouse()
part.CFrame = CFrame.new(part.Position, mouse.Hit.p)
end
game:GetService("RunService").RenderStepped:Connect(function()
movePartToMouse(part, player)
end)