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

How do I make something dissapear when a certain block touches it?

I am making a rube goldberg machine and I want a ball to roll into something then it dissapears but when I add dissapearing on touch scripts they just dissapear before they get touched by the ball. Please help my dudes

3 comments

0

ok, can you at least try at first, then post you attempt, if it doesn't work post what is erroring/ wrong with your script and we'll see if we can help, and I feel this is brought up a lot but, this isn't a request site, its not "scriptingrequesters"

0

Scripting Helpers is NOT a request Site!!!!

0

Read the rules please C;

2 answers

script.Parent.Touched:Connect(function(touch)
touch:Destroy()
end)

If I understand you, you want a brick that destroys a ball.

Here is an easy code:

local DestroyingBrick = game.Workspace.DestroyingBrick --Our destroying brick that detroys balls
local NormalBall = game.Workspace.NormalBall --Our normal ball that gets destroyed

script.Parent.Touched:connect(function() --something touches the destroying brick
	Ball:Destroy() --Ball gets destroyed :D
end)

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