Trying to make a script where you click a brick, it follows your mouse. But I don't understand how to find who clicked it
Normal script inside of a Click Detector inside of a brick that's in a model
script.Parent.MouseClick:connect(function(player)
local Mouse = player.Mouse
script.Parent.CFrame = CFrame.new(-0.02,Mouse.X,-0.05,Mouse.Y)
end)
Thank you.

1 comment
You can't get a mouse through a server script. I think you can Adornee ClickDetectors to a part through a localscript.