of     1   

strangehaxer
#175516540Sunday, October 04, 2015 2:39 PM GMT

I don't know what i did wrong... D1 = script.parent.parent.Door1 D2 = script.parent.parent.Door2 W1 = script.parent.parent.Window1 W2 = script.parent.parent.Window2 W3 = script.parent.parent.Window3 W4 = script.parent.parent.Window4 function onC() if D1.Transparency==1 then D1.Transparency=0 if D2.Transparency==1 then D2.Transparency=0 if W1.Transparency==1 then W1.Transparency=0 if W2.Transparency==1 then W2.Transparency=0 if W3.Transparency==1 then W3.Transparency=0 if W4.Transparency==1 then W4.Transparency=0 if D1.cancollide==false then D1.cancollide=true if D2.cancollide==false then D2.cancollide=true Wait (1) if D1.Transparency==0 then D1.Transparency=1 if D2.Transparency==0 then D2.Transparency=1 if W1.Transparency==0 then W1.Transparency=1 if W2.Transparency==0 then W2.Transparency=1 if W3.Transparency==0 then W3.Transparency=1 if W4.Transparency==0 then W4.Transparency=1 if D1.cancollide==true then D1.cancollide=false if D2.cancollide==true then D2.cancollide=false end script.Parent.ClickDetector.MouseClick:connect(onC)
strangehaxer
#175516851Sunday, October 04, 2015 2:44 PM GMT

This is my best guess... D1 = script.parent.parent.Door1 D2 = script.parent.parent.Door2 W1 = script.parent.parent.Window1 W2 = script.parent.parent.Window2 W3 = script.parent.parent.Window3 W4 = script.parent.parent.Window4 function onC() if D1.Transparency==1 then D1.Transparency=0 end if D2.Transparency==1 then D2.Transparency=0 end if W1.Transparency==1 then W1.Transparency=0 end if W2.Transparency==1 then W2.Transparency=0 end if W3.Transparency==1 then W3.Transparency=0 end if W4.Transparency==1 then W4.Transparency=0 end if D1.cancollide==false then D1.cancollide=true end if D2.cancollide==false then D2.cancollide=true end Wait (1) if D1.Transparency==0 then D1.Transparency=1 end if D2.Transparency==0 then D2.Transparency=1 end if W1.Transparency==0 then W1.Transparency=1 end if W2.Transparency==0 then W2.Transparency=1 end if W3.Transparency==0 then W3.Transparency=1 end if W4.Transparency==0 then W4.Transparency=1 end if D1.cancollide==true then D1.cancollide=false end if D2.cancollide==true then D2.cancollide=false end script.Parent.ClickDetector.MouseClick:connect(onC)
Kinnis97
#175517562Sunday, October 04, 2015 2:56 PM GMT

function onC() for i,k in pairs(script.Parent.Parent:GetChildren()) do if string.find(k.Name,"Window") then if k.Transparency == 1 then k.Transparency = 0 end end if string.find(k.Name,"Door") then if k.Transparency == 1 then k.Transparency = 0 end if k.CanCollide == false then k.CanCollide = true end end end wait(1) for i,k in pairs(script.Parent.Parent:GetChildren()) do if string.find(k.Name,"Window") then if k.Transparency == 0 then k.Transparency = 1 end end if string.find(k.Name,"Door") then if k.Transparency == 0 then k.Transparency = 1 end if k.CanCollide == true then k.CanCollide = false end end end end script.Parent.Parent.ClickDetector.MouseClick:connect(onC)
Rockenite
#175517721Sunday, October 04, 2015 2:59 PM GMT

Why didn't you try my script and make a new forum.... its rude when I am trying to help... function onC() for i,v in pairs(script.Parent.Parent:GetChildren()) do if string.sub(v.Name,1,5) == "Door" then v.CanCollide = true else v.Transparency = 0 end end wait(2) for i,v in pairs(script.Parent.Parent:GetChildren()) do if string.sub(v.Name,1,5) == "Door" then v.CanCollide = false else v.Transparency = 1 end end end script.Parent.ClickDetector.MouseClick:connect(onC)
strangehaxer
#175669581Tuesday, October 06, 2015 8:15 PM GMT

I'm trying it now
strangehaxer
#175670166Tuesday, October 06, 2015 8:24 PM GMT

RockandGreen, It does work but the cancollide part doesn't work.

    of     1