How to make falling part?

How do I make it so the part falls only when you touch it and then comes back?

script.Parent.Touched:Connect(function()
script.Parent.Anchored = false
end)
local Part = ["your Parts Path"]
local Pos = Part.Position

Part.Touched:Connect(function()
       Part.Anchored = false
       task.wait(2)
       Part.Anchored = true
       Part.Position = Pos
end)

I think this should work

2 Likes

Thanks It’s works this actually helped me alot.