So... Im trying to make a script but it doesnt work (Failed with no result)
Basicly, if a part A gets touched,then the part B gets invisible, but the part A is still visible! How to make that happen?
Please help, thanks!
Try this:
1 | game.Workspace.PartA.Touched:connect( function () |
2 | game.Workspace.PartB.Transparency = 1 |
3 | end |
I tried to make a script (when part "TouchMe" gets touched, the Arrow fades away) and it looks like this...
01 | wait(. 2 ) |
02 | local a = game.Workspace.Arrow 1. Arrow |
03 | TouchMe = script.Parent |
04 | function onTouch(Touched) |
05 | if script.Parent:findFirstChild( "Humanoid" ) then |
06 | for i = 1 , 50 do |
07 | script.Parent.Transparency = a.Transparency- 0.2 |
08 | wait( 1 ) |
09 | end |
10 | end |
11 | end |
12 | script.Parent.Touched:connect(onTouch) |
..but that doesnt work! Please help!