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.