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

How to delete a part on mouse click?

I am trying to make a tool that deletes a part on click and I failed so help, Please.

3 comments

0

maybe u can use raycasting

0

Scripting Helpers is not a request site and is a site about debugging your code. Please make sure all future posts abide by this rule.

0

Also, funboy ray casting has nothing to do with this whatsoever.

1 answer

In order to do this you must insert a script inside of the part and do the following:

tool = script.Parent -- The location of the tool
handle = tool:WaitForChild'Handle' -- The tools handle
Part = workspace.PARTNAME -- Put the name of the part here

tool.Activated:connect(function()
	Part:Destroy()
end)

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