Pickup

A pickup system lets players pick up different kinds of objects.

Add a Part and rename it PickupPart.

Add a Script and rename it PickupPartScript

In this script, when the Humanoid touches the part, it will disappear and reappear.

Make sure the part is anchored otherwise this script will not work.

local pickup = script.Parent
local db = true
pickup.Touched:Connect(function(hit)
local char = hit.Parent -- any parts making contact
local hum = char:FindFirstChild("Humanoid")
if db and hum then
db = false
pickup.Transparency = 1 -- this makes the part disappear
pickup.CanCollide = false -- turn off can collide with part
print("collided")
wait(2)
print("stopped waiting")
pickup.Transparency = 0 -- this makes the part reappear
pickup.CanCollide = true -- turn on collide with part
db = true
end
end)