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 disappear an brick and make a sound when touched ?

Hello I'm reposting this because I still don't have any awnsers :/

I'm trying to make something DISAPPEAR and when the brick is touched it has to make a noise (sound id) , somebody did this script for me but it's not like I want , it's not making sound , it's not making it disappear , it's unanchoring it


function x(hit)
script.Parent.Anchored = false
script.Parent.GlassSound:Play()
script:Destroy()
end
	 
script.Parent.Touched:connect(x)

Hope somebody can help me :/ Thanks

2 comments

0

You should not repost questions as they will be moderated as duplicated.

0

You want the scripts parent to be destroyed since this is the part.

1 answer

function x(hit)
script.Parent.Anchored = false
script.Parent.GlassSound:Play()
script.Parent:Destroy()
end

script.Parent.Touched:connect(x)

thats the script you need (look at the comments tho)

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