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