I need help when hold e on part it add +1 to gui

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to make it so when i hold e on a part it will go +1 to backpack gui and after it will respawn.

  2. What is the issue? Include screenshots / videos if possible!
    I don t know how to do it.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I m new to scripting and searched on youtube,dev and other sites and i have not found.

1 Like

wdym by add +1 to backpack gui? you mean add a tool?

1 Like

I mean like in mining simulator when break the core it goes in backpack

1 Like

Well i’ve never played mining simulator but you could use a ProximityPrompt to hold E on the part

you can detect if it was triggered by using the .Triggered event

local ProximityPrompt = script.Parent.ProximityPrompt
ProximityPrompt.Triggered:Connect(function(Player_That_Triggered)
    --add item to player's backpack
end)
1 Like