How do I make it so when you hold E on something you get multiple tools instead of one and they don’t disappear upon grabbing?
It depends. You could make it so that the tools were in a folder which could be moved to the player’s backpack when they press e.
ProximityPrompt.Triggered:Connect(function(player)
tool:Clone().Parent = player.Backpack
tool1:Clone().Parent = player.Backpack
-- make sure to define your own variables, you could also use a table for this
end)
- Make a part in the workspace.
- Then add a ProximityPrompt to the part using the plus icon.
- Next add a script to the ProximityPrompt.
- After this we will place your tools in the ServerStorage.
Your layout should look like this:
Once that has been done edit the script that you created to: (Change Tool1/2/3 to the names of your tools)
script.Parent.Triggered:Connect(function(player)
game.ServerStorage.Tool1:Clone().Parent = player.Backpack
game.ServerStorage.Tool2:Clone().Parent = player.Backpack
game.ServerStorage.Tool3:Clone().Parent = player.Backpack
end)
Hope I could help.
ICrann
