local TagService = game:GetService("CollectionService")
local PushTag = TagService:GetTagged("ClickedColorChange")
local Debounce = false
for _,parts in pairs(PushTag) do
local partColor = parts.Color
local TouchInterest = parts:WaitForChild("TouchColorChange")
if TouchInterest then
TouchInterest.MouseClick:Connect(function()
if Debounce == false then
Debounce = true
task.delay(7.2,function() -- Wait to use the button again
Debounce = false
TouchInterest.MaxActivationDistance = 32
end)
parts.Color = Color3.new(0.560784, 0, 0) -- Color
TouchInterest.MaxActivationDistance = 0
task.wait(2) -- Wait to turn color
parts.Color = partColor -- Start Color
end
end)
end
end
So I want to make the MaxActivationDistance set to 32/0 to all parts when I click to just one part