local player = [Link].
LocalPlayer
local mouse = player:GetMouse()
local down
local mtarget
clickmoveon = true
function clickObj()
if [Link] ~= nil then
mtarget = [Link]
down = true
[Link] = mtarget
end
end
mouse.Button1Down:connect(clickObj)
function mouseMove()
if down and mtarget then
local posX,posY,posZ = [Link].X, [Link].Y, [Link].Z
if clickmoveon then
[Link] = [Link](posX,posY,posZ)
end
end
end
[Link]:connect(mouseMove)
function mouseDown()
down = false
[Link] = nil
end
mouse.Button1Up:connect(mouseDown)