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

How can I make a brick appear by touching a different brick?

This is like my last post, but I want to know how I can make a brick appear instead.

Example: We have two bricks, A and B.

When I touch A, B will appear.

If you need more information, please make a comment and I'll try to answer as soon as possible. Any help is appreciated.

1 comment

0

Attempt anything and post the code.

1 answer

✓ Accepted answer

change the brick 'B's transparency when brick A's touched event is called:

touchBrick = game.Workspace.A
appearingBrick= game.Workspace.B

touchBrick.Touched:Connect(function()
	appearingBrick.Transparency = 0
end)

6 comments

0

I believe he wanted it to change when a player touches it rather than just any part

1

y r u doing it for him and for the love of christ, stop teaching people to use global variables for everything.

0

I forgot completely about transparency. Thanks.

0

what should i have done instead?

0

only used variables to make it easier to understand obv shouldn't use variables for every last thing

0

This is a more simple way of doing what I wanted to do. I just added edited this a little and added cancollide and set it to true, I made B an invisible wall at first that has cancollide set at false, and when someone touches A the wall just appears. Exactly how I wanted this to end up. Thanks.

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