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()
--???

13 comments

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.

0

Okay, whats the script which remove the certain tool?

0

How are you identifying this tool? has it got a different name

0

Yep

0

"Case"

0

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.

0

You will also need to check the players model as when a tool is equipped it moved from the backpack to the characters model

0

Okay? Can you tell how to script everything in textbox? I am not the best scripter.

0

Ohh this is a gui, this complicates thins a bit more. Since you cannot remove a tool in a local script with Filtering Enabled. First setup a remote event http://wiki.roblox.com/index.php?title=Remote_Events_and_Functions

0

I'm confused.

0

I would need to explain this is the sh chat

0

How? What chat?

0

Nevermind