Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make a script within a tool delete an equipped tool from player model?

Title says it all. Help? I tried a simple script.Parent:Destroy() but that did not work.

1 comment

0

There could be multiple times when you want the tool deleted, what's yours'? When the player equips the tool? After a round is over?

1 answer

Put a ServerScript inside the tool. Put these lines inside it:

--Enter previous lines of code here
function blarb() --You can call this function whatever you want :P
	script.Parent:Destroy()
end

script.Parent.Equipped:connect(blarb) --Change blarb to the name of function

Sorry if this is wrong. Again, it depends on the script and when it'll run, etc. Hopefully it works :3

2 comments

0

Sorry for the lack of elaboration. I want the script to delete the tool after some lines of code within the script run. The script will run when the tool is equipped.

0

I edited my answer

This discussion is preserved as it was. New answers, comments, and votes are closed.