I tried this code, but it doesn't work and I think it's wrong anyway.
1 | f 1 = game.Workspace.f 1 |
2 | function hit(f 1 ) |
3 | f 1. Anchored = false |
4 | end |
5 | script.Parent.Touched:connect(hit) |
I want it so that when this part hits a part named f1, the part named f1 unanchors. Any help?
If you want to unanchor a part when hit with f1
, you need a check to make hit see if it's "f1".
1 | script.Parent.Touched:connect( function (hit) |
2 | if hit.Name = = "f1" then |
3 | hit.Anchored = false |
4 | end |
5 | end ) |