Hey I am currently making a disappearing block when touched but I can’t seem to realize what’s wrong with my script... can someone help me? Please?
local block = script.Parent
local debounce = true
block:Connect(function(hit)
local humanoid = hit.Parent:FindFirstChildWhichIsA(‘Humanoid’)
if humanoid and debounce == true then
debounce = false
block.Transparency = 0.5
wait(1)
block.Transparency = 1
block.CanCollide = false
wait(3)
block.Transparency = 0
block.CanCollide = true
debounce = true
end)

4 comments
Where?
I did it for you, just copy the script lol
Also, I added it to the block:Connect() to make block.Touched:Connect()
Oh! Thanks you so much!