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

Test is not a vaild member of test?

Hello, helper, can you help me make a remove script for me where if you click on it and it will remove the thing click on it was it like something

Tree = game.Workspace.Tree

script.Parent.MouseButton1Down:connect(function()
tree.Destory()
end

1 answer

You need to insert a click detector into the brick you have the script in.

script.Parent.ClickDetector.MouseClick:connect(function(plr)
	script.Parent:Destroy()
end)

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