I tried this code, but it doesn't work and I think it's wrong anyway.
f1=game.Workspace.f1 function hit(f1) f1.Anchored=false end 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".
script.Parent.Touched:connect(function(hit) if hit.Name == "f1" then hit.Anchored = false end end)