I need help with a button that makes a certain tool removes from inventory. What is the function?
Here is that I've scripted so far.
script.Parent.MouseClick(function()
--???
0
You will probably want to use a ClickDetector which passes the player who clicked it as an argument. using the player you can the find and remove the tool.User#542317— 7y
0
Okay, whats the script which remove the certain tool?MelvinHjx2— 7y
0
How are you identifying this tool? has it got a different nameUser#542317— 7y
Then you can find the players backpack in the player and use the function FindFirstChild('Case') which will return the child named 'Case' or nil.User#542317— 7y
0
You will also need to check the players model as when a tool is equipped it moved from the backpack to the characters modelUser#542317— 7y
0
Okay? Can you tell how to script everything in textbox? I am not the best scripter.MelvinHjx2— 7y