So I'm making a border game and I'm currently making it so clicking a passport or permit causes it to go in your inventory. I started off with the permit and it oddly won't work, the permit is a model so I don't get confused or something stupid and it's three parts. If it's the script then please help me fix that.
Script:
local Permit = script.Parent local click = Permit.ClickDetector
local function pickup(player) local newTool = Instance.new('Tool') newTool.Name = 'Permit' local handle = part:Clone() handle.Name = 'Handle' handle.Parent = newTool handle.Script:Desroy() newTool.Parent = game.Workspace:FindFirstChild(player.Name) end
click.Mouseclick:Connect(pickup())

1 comment
Study the fundamentals. You clearly lack basic scripting knowledge and it shows.