i followed a tutorial and i changed a little bit on the script and i wanted to make a part fall aka unanchored if i touch the part that will let the other part fall. so here is what i did i am very basic
local function OnTouch(hit)
if hit then
else
game.Workspace.trap.Anchored = false
end
end
script.Parent.Touched:Connect(OnTouch)
and tell me whats wrong / what i did wrong (i was doing this cause i was inspired by a horror game "Roses".)

3 comments
Try removing the if function and only include the = false line
Remove the "else"
Also make sure the part you want to unanchor is named "trap", and it's in the workspace. Else your script won't work