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()
--???
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()
--???
This discussion is preserved as it was. New answers, comments, and votes are closed.
13 comments
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.
Okay, whats the script which remove the certain tool?
How are you identifying this tool? has it got a different name
Yep
"Case"
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.
You will also need to check the players model as when a tool is equipped it moved from the backpack to the characters model
Okay? Can you tell how to script everything in textbox? I am not the best scripter.
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
I'm confused.
I would need to explain this is the sh chat
How? What chat?
Nevermind