The local script is in clickdetector.
local log = game.Workspace.Model
local clickD = script.Parent
local player = game.Players.LocalPlayers
local function MoveToInv()
local copylog = log:Clone()
copylog.Parent = player.Backpack
end
clickD.MouseClick:connect(MoveToInv)
This do not work, I don't know why...
I tried making this work in a local script but I could not do that but this does work in a normal script inside a click detector
local ObjectToPickUp = game.Workspace.Item -- Change item to the name of your item script.Parent.MouseClick:connect(function() ObjectToPickUp:Clone() ObjectToPickUp.Parent = game.Players.LocalPlayer.Backpack end)