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 any block that is clicked on disappear?

I want to make it so any object that is clicked on with a tool disappear. Can someone please tell me how to do this...

2 comments

1

Use a ClickDetector inside of a part. See robloxdev.com for documentation. This site is not a place for free scripts. Please post an attempt for help.

0

Check out the tool and mouse articles on the wiki.

1 answer

dont know if this will be any help but I think it is

local mouse = game.Players.LocalPlayer:GetMouse()
mouse.Button1Down:connect(function()
local obj = mouse.Target
obj:Remove()
end)

1 comment

0

Don't spoon feed code without an explanation. Less for those who don't attempt at a request.

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