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?

21 comments
Tried that script, didn't work. Played with it a bit, didn't work. I am starting to wonder if this can even be done.
I works. I just did it wrong. Now try.
Yeah, I fixed that in my script... didn't work. Is it just me? Should I reinstall?
Is it exactly like what I put? It should work. --And I was typing fast before and I had other things in my mind so I completely failed it.
This script should work perfectly fine. TealTeam, there has to be something wrong with a different part of your script, so if you could, it would probably help Rethiux if you posted your entire script.
I can do more than that. Here's a video: https://www.youtube.com/watch?v=qKF4_GKpoZw&feature=youtu.be
For some reason, the video is taking forever... Anyways, it appears that it works when I change it to destroy everything it touches. It destroys me when I walk into the brick, but not the part! Maybe that will help.
I think the problem might be how you have that big brick moving towards it. The Touched event isn't firing correctly or something...Post your script thats making that brick move, and i'll see what I can do.
Where is the script located?
Its located inside the big red brick. The script making the brick move is
Ok, let me get this straight... If what part touches what, what get's unanchored?
while true do script.Parent.Position=script.Parent.Position+Vector3.new(0,0,.5) wait(.1) end
When the big moving red part touches that grey brick, the grey brick needs to unanchor.
The names of each part? Red = what grey = what?
Red is just Part, doesn't need a name. Grey is f1.
It doesn't work because it checks to see if it touches itself....
Put the script in the RED brick and try. I edited it. DO NOT CHANGE.
How is it checking if its touching itself if its checking for f1?
No, the script is in the red one to check if it's touched Rethiux. It's fine that way. The Touched event isn't firing correctly. Anyways TealTeam, I'll post an answer, and try the script I provide in place of the other one that moves the brick.
No worky. Is it even possible to do this?
"This event does not fire if the part is being CFramed through something." Always check the wiki.