this script is supossed to change the material of what touches it (part AND player.) for some reason when 1 part touches it all unanchored parts become the desired material, while i only need the part that touches it to change material
workspace["Neon"].Touched:Connect(function(touch)
local Childrens = touch.Parent:GetDescendants()-- Get the children
for i,v in ipairs(Childrens) do -- For loop through the Children
if v:IsA("BasePart") then -- If v or value is a basepart (basepart is basically a superclass of all types of parts)
v.Material = Enum.Material["Neon"] -- change the Material of v which is the part.
touch.Material = Enum.Material["Neon"]
end
end
end)