I tried making the trigger part do their function and stuff, after .97 seconds, the script doesn't destroy itself, but the functions came in. I wonder what I have done wrong at this point?
script.Parent.Touched:connect(function(hit)
script.Sound:Play()
script.Parent.Parent.DoorClose.Union.Transparency = 0
script.Parent.Parent.DoorClose.Union.Part.PointLight.Enabled = true
script.Parent.Parent.DoorClose.Union.Part.Transparency = 0
script.Parent.Parent.DoorOpen.Union:Destroy()
script.Parent.Parent.DoorOpen.Union.Part:Destroy()
wait(.97)
script:Destroy()
end)

2 comments
why destroy the script when u can simply disable it or use a debounce to disable the script without disabling or destroying the script?
I'm new to script so. I wouldn't understand that much. Thing is, this is a trigger part. So once its touched and done it's functions, it can be disabled or destroy. However, it doesn't do these things.