#pass an object through :connect

14 messages · Page 1 of 1 (latest)

jade tulipBOT
#

studio** You are now Level 1! **studio

dense field
#

what you could try is putting the parts in a folder and using a for loop on the folder and get something like this:

for i,v in pairs(workspace.Folder:GetChildren()) do
    v.Touched:Connect(function(hit)
        if hit.Parent:FindFirstChild("Humanoid") then
            v.Anchored =  false
        end
    end
end
heavy imp
#

ohhh

#

thats neat

#

thanks dude

heavy imp
dense field
#

hit is the thing that touched the part#

#

in the code I sent I assumed u only wanted it to fall if players touched it?

heavy imp
#

ohhh

#

yeye

#

how do i close this btw

#

!close

#

uhh

dense field
#

Try the dots in the top right and click delete