Please note this is a old post, so the time when I posted this I was a young kid and a noob, please don't complain
GIF preview are not public due to private issues.
local part = script.Parent
local ceiling = workspace.ce
debounce = false
function ontouched()
debounce = true
ceiling.Transparency = 1
debounce = false
end
function touchedended()
debounce = true
ceiling.Transparency = 0
debounce = false
end
script.Parent.Touched:Connect(function(ontouched)
print("Touching")
end)
script.Parent.TouchEnded:Connect(function(touchedended)
print("Touch Ended")
end)
Does anything blocks the debounce to work?
There no error at all, every help is appreciated.

1 comment
Sorry that the GIF was abit of lagging.