I've tried watching tutorials and reading post's on this website but i just 1, can't rap my head around it and making the script work towards what my game is or 2, it just doesn't work properly when i put in the code. Any ideas? Clarifications: when i walk over the item it disappears, also in the game im making we would use said items to upgrade our current Dummy (i dont have a name for it yet), so i would also like help understanding/coding how i would implement that "Upgrading" of your Dummy thing.
Try using this script, it will simply clone a tool to the player's backpack once walked on using the OnTouched() function. (Edit tool to the tools name, and you will likely need to edit this to match with your game.)
local db = true --Debounce game.Players.PlayerAdded:Connect(function(player) -- gets local player script.Parent.Touched:Connect(function() if db == true then script.Parent.Tool:Clone().Parent = player:WaitForChild('Backpack') db = false wait(3) db = true end end) end)