Im trying to make a puzzle room where you are small and need to pick up parts by holding down your mouse on them and dragging them to form a staircase, but i dont know how to do an item pickup script like that, since i dont want it to become a tool that you get.
✓ ANSWER ACCEPTED
How do I add an item pickup script? (not like a tool)
1 answer
✓ Accepted answer
Add a ProximityPrompt into your part and then duplicate it, convert it into a tool, store them in ServerStorage. Create a script inside the ProximityPrompt thing and paste the following code in it:
local proxi = script.Parent
local part = script.Parent.Parent
local clonepart = game.ServerStorage["Your Clone's Name"]
local player = game.Players.LocalPlayer
proxi.Triggered:Connect(function()
part:Destroy()
clonepart.Parent = player.Backpack
end)
Hope it works
P/s : My English is bad so yea
2 comments
0
Lemme try that
0
Few questions, when you say them, do you mean both parts and two do i do this to both parts
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
You want it to float on the air in mouse position or you want it to became attached to your hands?
i want it to float in the spot of the players mouse position