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

Disappear part someone?

Can someone give me a link to a part that when you touch it disappear(?)

1 comment

1

This isn't a request site. If you want to make requests, go to ROBLOX and post on LMAD forum, and put up a money reward.

2 answers

✓ Accepted answer

If you want to make the part invisible when you touch it, use this:

function onTouched(part)
	script.Parent.Transparency = 1
end

script.Parent.Touched:connect(onTouched)

If you want to remove the part, you can do this:

function onTouched(part)
	script.Parent:remove()
end

script.Parent.Touched:connect(onTouched)

while true do script.Parent.Touched:connect(function(hit) script.Parent.Transparency = "1" if script.Parent.Transparency = "1" then script.Parent.Transparency = "0" wait(1) end) end

-- put this script into a brick.

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