So I'm trying to make an axe that will enable a value (to break said part) but when the tool touches a part with a child named "Broken" inside of it, it won't enable that value. The script knows it hit a part with the child "Broken" inside of it but it just won't enable the boolvalue. Please help!
script.Parent.Handle.axeblunt.Touched:Connect(function(hit)
if hit:FindFirstChild('Broken') then -- checking if the hit part has the value
hit.Broken.Value = true
print("Touched")
end
end)

1 comment
Thanks! It was really simple i just has to make it a script instead of a local script lol.