Should this be right? When the BoolValue is checked then it opens my doors.
if script.Parent.openvalue.Value == true then
script.Parent.Door.ld.CanCollide = false
script.Parent.Door.rd.CanCollide = false
script.Parent.DoorStatus2.SurfaceGui.TextLabel.Text = ("Open")
script.Parent.SO2.SurfaceGui.TextLabel.Text = ("Open")
if script.Parent.openvalue.Value == false then
script.Parent.Door.ld.CanCollide = false
script.Parent.Door.rd.CanCollide = false
script.Parent.DoorStatus2.SurfaceGui.TextLabel.Text = ("Closed")
script.Parent.SO2.SurfaceGui.TextLabel.Text = ("Closed")
end
end

1 comment
This isn't wrong, but a more efficient method would be to use the Changed event