Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

scripting help please, tool remover! Is that possible?

Asked by 7 years ago

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#5423 17 — 7y
0
Okay, whats the script which remove the certain tool? MelvinHjx 2 — 7y
0
How are you identifying this tool? has it got a different name User#5423 17 — 7y
0
Yep MelvinHjx 2 — 7y
View all comments (9 more)
0
"Case" MelvinHjx 2 — 7y
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. User#5423 17 — 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 model User#5423 17 — 7y
0
Okay? Can you tell how to script everything in textbox? I am not the best scripter. MelvinHjx 2 — 7y
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 User#5423 17 — 7y
0
I'm confused. MelvinHjx 2 — 7y
0
I would need to explain this is the sh chat User#5423 17 — 7y
0
How? What chat? MelvinHjx 2 — 7y
0
Nevermind MelvinHjx 2 — 7y

Answer this question