I have a problem with dragging stuff around. The output appears nothing when I even try to click it. Can someone help me with this? Used LocalScript.
local part = game.Workspace.Log1
local mouse = game.Players.LocalPlayer:GetMouse()
function onClicked(mouse)
part.Position = Vector3.new(mouse.hit.p.X, mouse.hit.p.Y, mouse.hit.p.Z)
end
part.ClickDetector.MouseClick:connect(onClicked)
I'm just a beginner. Thank you.

1 comment
Every frame (using renderstepped) try to place the part where the mouse is currently at.