for some reason when i make a local script in roblox studio and put the touched even whenever i print the hit part it only prints the player character parts such as “Left Leg”
but when the part touches an another part nothing prints
heres the script
local Part = script.Parent
Part.Touched:Connect(function(hit)
print(hit) -- this is a raw print without any if statements so it should print without any problems
if hit:GetAttribute("NoCollide") == true then
Part.BrickColor = BrickColor.new("Really red")
else
Part.BrickColor = BrickColor.new("Dark green")
end
end)