local Interior = false
game.Workspace.AirportInterior.Parent = game.Workspace.CurrentCamera
game.Workspace.AirportWindows.Parent = game.Workspace.CurrentCamera
game.Workspace.LoadPart.Touched:connect(function(hit)
if hit.Parent:FindFirstChild('Humanoid') then
Interior = true
if Interior == true then
for i,v in pairs(game.ReplicatedStorage.AirportInterior:GetChildren()) do
v.Parent = game.Workspace.CurrentCamera.AirportInterior
end
for i,v in pairs(game.Workspace.CurrentCamera.AirportWindows:GetChildren()) do
v.Transparency = 0.6
v.Reflectance = 0
v.Material = "Neon"
v.BrickColor = BrickColor.new("Black")
end
end
end
end)
game.Workspace.LoadPart.TouchEnded:connect(function(hit)
if hit.Parent:FindFirstChild('Humanoid') then
if Interior == true then
for i,v in pairs(game.Workspace.CurrentCamera.AirportInterior:GetChildren()) do
v.Parent = game.ReplicatedStorage.AirportInterior
end
for i,v in pairs(game.Workspace.CurrentCamera.AirportWindows:GetChildren()) do
v.Transparency = 0
v.Reflectance = 0.3
v.Material = "SmoothPlastic"
v.BrickColor = BrickColor.new("Really black")
end
Interior = false
end
end
end) |