--calls

caf.Call1.Changed:Connect(function()
	if vaf.Moving.Value == true then
	else
		if vaf.IsOnFirstFloor.Value == true then
			caf.Call1.Value = false
		else
			caf.Call1.Value = false
			vaf.Moving.Value = true
			--
			door2.Close:Fire()
			wait(sef.DoorMoveTime.Value)
			wait(sef.StartMovingDelayTime.Value)
			elev2.SoundBrick.Brick.MoveSound:Play()
			elev1.SoundBrick.Brick.MoveSound:Play()
			elev1.SoundBrick.Brick.MoveSound.Volume = 0
			wait(sef.TravelTime.Value)
			elev2.TeleportBrick.CanTouch = true
			wait(0.2)
			elev2.TeleportBrick.CanTouch = false
			elev2.SoundBrick.Brick.MoveSound:Stop()
			elev1.SoundBrick.Brick.MoveSound.Volume = sef.DefaultMoveSoundLoudness.Value
			wait(sef.DoorDelayTime.Value)
			door1.Open:Fire()
			--
			vaf.Moving.Value = false
			vaf.IsOnFirstFloor.Value = true
		end
	end
end)

caf.Call2.Changed:Connect(function()
	if vaf.Moving.Value == true then
	else
		if vaf.IsOnFirstFloor.Value == false then
			caf.Call2.Value = false
		else
			caf.Call2.Value = false
			vaf.Moving.Value = true
			--
			door1.Close:Fire()
			wait(sef.DoorMoveTime.Value)
			wait(sef.StartMovingDelayTime.Value)
			elev1.SoundBrick.Brick.MoveSound:Play()
			elev2.SoundBrick.Brick.MoveSound:Play()
			elev2.SoundBrick.Brick.MoveSound.Volume = 0
			vaf.Moving.Value = true
			wait(sef.TravelTime.Value)
			elev1.TeleportBrick.CanTouch = true
			wait(0.2)
			elev1.TeleportBrick.CanTouch = false
			elev1.SoundBrick.Brick.MoveSound:Stop()
			elev2.SoundBrick.Brick.MoveSound.Volume = sef.DefaultMoveSoundLoudness.Value
			wait(sef.DoorDelayTime.Value)
			door2.Open:Fire()
			--
			vaf.Moving.Value = false
			vaf.IsOnFirstFloor.Value = false
		end
	end
end)
