I’m trying to make a checkout register for a supermarket and for that once someone scans an item, a value will be off so it doesn’t start beeping when the user leaves the building, when I touch the part with the tool nothing happens, the code is below.
script.Parent.Touched:Connect(function(item)
if item.Parent:IsA("Tool") then
item.EAS_Active.Value = false
script.Parent.Color = Color3.new(0.333333, 1, 0)
wait(.2)
script.Parent.Color = Color3.new(1, 0, 0)
end
end)