Answered by
4 years ago Edited 4 years ago
From what I understand you're making a door where you make the closed position invisible and make the open one visible. You're forgetting to set CanCollide = false on the closed position doors since you don't move them away.
02 | local LeftDoor = workspace.Ticket_Scanner.Left_Door |
03 | local RightDoor = workspace.Ticket_Scanner.Right_Door |
04 | local LeftOpen = workspace.Ticket_Scanner.Left_Door_Open |
05 | local RightOpen = workspace.Ticket_Scanner.Right_Door_Open |
06 | local Scanner = workspace.Ticket_Scanner.Scanner.Scanner_Display |
07 | local Assest = 5976807639 |
08 | local Ready = 5976807535 |
13 | workspace.Ticket_Scanner.Scanning_Area.Touched:Connect( function (hit) |
14 | if hit.Scanning_Area.Name = = "TicketPlaceHolder" then |
15 | LeftDoor.Transparency = 1 |
16 | RightDoor.Transparency = 1 |
17 | RightOpen.Transparency = 0.3 |
18 | LeftOpen.Transparency = 0.3 |
20 | LeftDoor.CanCollide = false |
21 | RightDoor.CanCollide = false |
22 | Instance.new( "Decal" , Scanner) |
23 | Scanner.Decal.Texture = Assest |
25 | Scanner.Decal.Texture = Ready |
26 | LeftDoor.Transparency = 0.3 |
27 | RightDoor.Transparency = 0.3 |
28 | RightOpen.Transparency = 1 |
29 | LeftOpen.Transparency = 1 |
31 | LeftDoor.CanCollide = true |
32 | RightDoor.CanCollide = true |
Hope this code works for what you're making.