this is the script i have
bool = script.Parent.Parent.Value
door = script.Parent.Parent
function openclose()
bool.Value = true
door.Transparency = 0.5
wait()
door.CanCollide = false
print("lol")
wait()
while bool.Value == true do
door.Transparency = 1
door.CanCollide = true
bool.Value = false
print("lol2")
end
script.Parent.ClickDetector.MouseClick:Connect(openclose)
do i need a bool value or another value? i'm confused help if you want.

3 comments
Check that you're referencing the bool and door correctly. If script.Parent.Parent is a BoolValue, then bool is correct and door isn't, and vice versa
thank you that helped
also your missing an end