Hello! So, recently I’ve been working on a custom item drop and pickup system. The script works like this:
Once the player presses backspace, the parts attached to the “Handle” are cloned and parented to workspace then their position is changed to the Player’s LeftFoot, that way the item drops near the player.
Everything works fine, except when I drop the item, the parts just clip through the ground. The parts are unanchored, otherwise if I anchored them then the tool would be broken and once the player drops the item the parts would be floating. I’m looking for a way to fix this; here’s the (not all of the script) part of the script that handles the dropping:
local function copy() local pp = Instance.new("ProximityPrompt") pp.Parent = handle handle:Clone().Parent = workspace handle.Position = Vector3.new(character:WaitForChild("LeftFoot")) folder:Clone().Parent = workspace folder:MoveTo(Vector3.new(character:WaitForChild("LeftFoot"))) Tool:Destroy() print("copied") end uis.InputBegan:Connect(function(input) if input.KeyCode == Enum.KeyCode.Backspace then if is_equipped == true then copy() end end end)
Here’s a link to the video: https://streamable.com/3gy267