script.Parent.CardReader2.Scanner.Touched:Connect(function(hit)
if hit.Parent.Name == "O5 Keycard" then
tween:Play()
debouce = true
wait(3.5)
debouce = false
end
end
script.Parent.CardReader.Scanner.Touched:Connect(function(hit)
if hit.Parent.Name == "O5 Keycard" then
tween:Play()
debouce = true
wait(3.5)
debouce = false
end
end)
The first script on the second block of code comes up with an error whenever I try to run the script. The first block works fine, but for some reason the second block won't. Anyone able to help?

5 comments
By the way, this is the same script. Both blocks are in the same script.
Any errors? Also use another debounce for the second script.
Still got a red line underneath that script
Also got this error https://cdn.discordapp.com/attachments/721001817584042106/739882262639804506/unknown.png
try putting a parenthesis after at last end of the first block