I'm trying to make a system that moves parts, the only problem is that I want to use it without buttongui's, tools, or mousedetectors. (i.e Miner's Haven)
My script (1'st line I don't know how to use the connection line, so I guessed :p)
local mouse = game.Players.LocalPlayer:GetMouse() -- I COULD USE HELP HERE ._.
mouse.MouseClick:connect(function()
position = mouse.hit.p
game.Workspace.Part.Position = position
end
I will accept your answer if it is successful!

4 comments
Oh, sorry. I just saw that mouseclick was wrong so i fixed it, but you basically had the right connection line.
EDIT: It's not working (tried both script types)
It worked perfectly for me. I use a local script, and also make sure to change the line 5 for the right position of the part
I'm just going to use a tool ;-;