Problem with IsA:

change that to

if v:IsA("BasePart") then
1 Like