script.Parent.ClickDetector.MouseClick:Connect(function()
script.Parent.Transparency = script.Parent.Transparency + 0.25
if script.Parent.Transparency == 1 then
script.Parent:Destroy()
end
end)
Everything works except when it comes to "if script.Parent..." It supposed to destroy the part when the transparency reaches 1.
When the part is transparent it is still there for some reason.
I hope you can understand the script ;)
Thanks

5 comments
trying using >= 1 instead of ==1
Try to add a debounce
Thanks for the comments, I found the error :)
why would a debounce matter.
please mark title as [Solved]